Paul Eggert <[EMAIL PROTECTED]> writes:

> > From: Akim Demaille <[EMAIL PROTECTED]>

> > Do you mean `s,[^/]*$,,' would work here?  

Yes.

> Just for the record, Cray is correct: POSIX does not allow
> `s/[^/]*$//'.  `s,[^/]*$,,' is required to work, though.

How does POSIX differ from Single UNIX in this respect? From the
latter I can possibly deduce that it's undefined.

> I've had good luck with strings like `/foo[\/]bar/' in cases where I
> already know from context that the matched string can't contain `\'.
> That's portable, as it works with both the traditional and the POSIX
> interpretation.

I'm not sure I get it. Do you mean as in "s/foo[\/]bar/xxx/"? If so,
this isn't allowed by SUS ([\/] means backslash or slash, not just
slash).

Anyway, the solution in this case is simple, just change autoheader.

/Johan

Reply via email to