[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed usage in autoheader
From: |
Bruce Korb |
Subject: |
Re: sed usage in autoheader |
Date: |
Wed, 15 Nov 2000 11:28:00 -0800 |
Paul Eggert wrote:
>
> > Bruce> never, ever use substitution separator
> > Bruce> chars inside of the substitution expressions, period.
>
> 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.
But you are playing in muddy water with no real benefit.
If you can avoid the mud, do so. :-) Of course, if you
are trying to use that expression to address a line of text
(instead of using it in a substitution expression), you
may not be able to avoid mud...