Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: zsh-3.1.5-pws-11: signames2.awk



Typing away merrily, Will Day produced the immortal words:
> The signames2.awk script wasn't finding any signals, due to the extra
> space generated by sun's cc -E (solaris 2.6, Sun WorkShop Compiler C
> 4.2), so I added a "*" to match extra spaces.

> --- zsh-3.1.5-pws-11/Src/signames2.awk.orig	Tue Feb  9 08:28:41 1999
> +++ zsh-3.1.5-pws-11/Src/signames2.awk	Tue Mar  9 19:55:52 1999
> @@ -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]* *[1-9][0-9]*/ {
>      sigindex = index($0, "SIG")
>      sigtail = substr($0, sigindex, 80)
>      split(sigtail, tmp)

Is that 'correct'?  Shouldn't it be "  *" rather than " *" to force at
least one space?

Thus:
/^XXNAMES XXSIG[A-Z][A-Z0-9]*  *[1-9][0-9]*/ {

Could the pattern matched theoretically contain horizontal tabs there
too?
-- 
--> Phil Pennock ; GAT d- s+:+ a23 C++(++++) UL++++/I+++/S+++/B++/H+$ P++@$
L+++ E-@ W(+) N>++ o !K w--- O>+ M V !PS PE Y+ PGP+ t-- 5++ X+ R !tv b++>+++
DI+ D+ G+ e+ h* r y?



Messages sorted by: Reverse Date, Date, Thread, Author