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:
> A short time ago, at a computer terminal far, far away, Phil Pennock wrote:
> >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]*/

This assumes that all implementations of sed(1) understand \t.  My
understanding, verified by a quick glance at a Solaris manual page, is
that the only special like that which most seds handle is \n, in some
contexts.
-- 
--> 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