> 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\
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
| > 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