diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2004-03-03 10:42:57 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-03-03 10:42:57 +0000 |
commit | 6bef4b91bfde12928142102d255e28d40e4fc8d2 (patch) | |
tree | b2ab037f6b5475f5d2fd9e1fd48199c6ff5cf45a | |
parent | 084cbf5ee0f423bba00c6f0bc9ba622286d71f33 (diff) | |
download | zsh-6bef4b91bfde12928142102d255e28d40e4fc8d2.tar.gz zsh-6bef4b91bfde12928142102d255e28d40e4fc8d2.tar.xz zsh-6bef4b91bfde12928142102d255e28d40e4fc8d2.zip |
19532: awk problem on AIX 5
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Src/signames2.awk | 8 |
2 files changed, 11 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index 703292522..f6dbd506f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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: diff --git a/Src/signames2.awk b/Src/signames2.awk index 3aea76ee3..81b1ab3a2 100644 --- a/Src/signames2.awk +++ b/Src/signames2.awk @@ -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++) |