Ralf Wildenhues wrote: > * Dave Korn wrote on Wed, Aug 26, 2009 at 12:38:50PM CEST:
>> Ralf, have we discovered a new item for the autoconf man page "portable >> shell" >> chapter? > > Not really: > > Patterns should not include the separator (unless escaped), even > as part of a character class. In conformance with Posix, the Cray > `sed' rejects `s/[^/]*$//': use `s,[^/]*$,,'. > [...] > Portable `sed' regular expressions should use `\' only to escape > characters in the string `$()*.0123456789[\^n{}'. Ah, I didn't read those two conditions as applying simultaneously. Since the second condition essentially says that you must only ever escape a special character to make it non-meaningful or a normal character to make it special, maybe the first condition say something a bit more like ... > Patterns should not include the separator (not even escaped, unless > you fancy having to use a semantically significant metacharacter for > your separator), even as part of a ... ... shouldn't it? > Sorry for not catching this. NP, all fixed now :) cheers, DaveK