Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zsh-3.1.5-pws-11: signames2.awk
- X-seq: zsh-workers 5738
- From: Phil Pennock <comet@xxxxxxxx>
- To: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Subject: Re: PATCH: zsh-3.1.5-pws-11: signames2.awk
- Date: Wed, 10 Mar 1999 19:59:42 +0000
- In-reply-to: <19990309225721.D19692@xxxxxxxxxxxxxxxxxx>; from "Will Day" on Tue 9 Mar 1999 (22:57 -0500)
- Mail-followup-to: zsh workers mailing list <zsh-workers@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- Organisation: Organisation? Here? No, over there ---->
- References: <19990309225721.D19692@xxxxxxxxxxxxxxxxxx>
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