1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 13:33:52 +01:00

19532: awk problem on AIX 5

This commit is contained in:
Peter Stephenson 2004-03-03 10:42:57 +00:00
parent 084cbf5ee0
commit 6bef4b91bf
2 changed files with 11 additions and 2 deletions

@ -1,3 +1,8 @@
2004-03-03 Peter Stephenson <pws@csr.com>
* 19523: Src/signames2.awk: attempt to work around awk
problem on AIX 5.
2004-03-02 Peter Stephenson <pws@csr.com>
* zsh-users/7100: Completion/Base/Core/_main_complete:

@ -6,7 +6,7 @@
# NB: On SunOS 4.1.3 - user-functions don't work properly, also \" problems
# Without 0 + hacks some nawks compare numbers as strings
#
/^XXNAMES XXSIG[A-Z][A-Z0-9]* [1-9][0-9]*/ {
/^XXNAMES XXSIG[A-Z][A-Z0-9]*[\t ][\t ]*[1-9][0-9]*/ {
sigindex = index($0, "SIG")
sigtail = substr($0, sigindex, 80)
split(sigtail, tmp)
@ -63,7 +63,11 @@ END {
printf "#include %czsh.mdh%c\n", 34, 34
printf "\n"
printf "/**/\n"
printf "char *sigmsg[SIGCOUNT+2] = {\n"
printf "#define sigmsg(sig) ((sig) <= SIGCOUNT ? sig_msg[sig]"
printf " : %c%s%c)", 34, "unknown signal", 34
printf "\n"
printf "/**/\n"
printf "mod_export char *sig_msg[SIGCOUNT+2] = {\n"
printf "\t%c%s%c,\n", 34, "done", 34
for (i = 1; i <= 0 + max; i++)