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

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



A short time ago, at a computer terminal far, far away, Phil Pennock wrote:
>> -/^XXNAMES XXSIG[A-Z][A-Z0-9]* [1-9][0-9]*/ {
>> +/^XXNAMES XXSIG[A-Z][A-Z0-9]* *[1-9][0-9]*/ {
>
>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]*/ {

Hmm, yeah, that's really what you want.

>Could the pattern matched theoretically contain horizontal tabs there
>too?

I've no idea what kind of output different variants of cpp produce, or
what's considered correct, but it probably wouldn't be a bad idea to
match one or more tabs/spaces.  Perhaps:
   /XXNAMES XXSIG[A-Z][A-Z0-9]*[ \t]+[1-9][0-9]*/

-- 
Will Day     <PGP mail preferred>     OIT / O&E / Technical Support
willday@xxxxxxxxxxxxxxxxxx            Georgia Tech, Atlanta 30332-0715
  -> Opinions expressed are mine alone and do not reflect OIT policy <-
Those who would give up essential Liberty, to purchase a little temporary
Safety, deserve neither Liberty nor Safety.
    Benjamin Franklin, Pennsylvania Assembly, Nov. 11, 1755

Attachment: pgp9iVH23L4Hk.pgp
Description: PGP signature



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