Re: FYI: Sed portability (Was: sed usage in autoheader)

2000-11-16 Thread Paul Eggert
> From: Akim Demaille <[EMAIL PROTECTED]> > Date: 16 Nov 2000 10:45:57 +0100 > We do agree `/foo[\/]bar/' is a single pattern which matches the > string `foo/bar', right? Then, why do you use the char class here? Because, if my admittedly fallible memory serves, some older hosts mishandle /foo\

Re: FYI: Sed portability (Was: sed usage in autoheader)

2000-11-16 Thread Johan Danielsson
Akim Demaille <[EMAIL PROTECTED]> writes: > We do agree `/foo[\/]bar/' is a single pattern which matches the > string `foo/bar', right? It matches the strings `foo/bar' and `foo\bar', if you believe in SUS. /Johan

FYI: Sed portability (Was: sed usage in autoheader)

2000-11-16 Thread Akim Demaille
| > From: Akim Demaille <[EMAIL PROTECTED]> | > Date: 15 Nov 2000 16:32:18 +0100 | > | > Do you mean `s,[^/]*$,,' would work here? Man, how can someone write | > something that broken :(. | | Just for the record, Cray is correct: POSIX does not allow | `s/[^/]*$//'. `s,[^/]*$,,' is required t