autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: config.status - robust sed substitutions


From: Robert Anderson
Subject: Re: config.status - robust sed substitutions
Date: 26 Feb 2003 16:40:03 -0800

On Wed, 2003-02-26 at 16:34, Robert Anderson wrote:

> However, note that _any_ new choice of delimiter will not only fail for
> the case of the chosen character, but will also fail for the characters
> '@' and '\' which are always metacharacters on the RHS of a sed
> expression.  I've seen '@' in particular in pathnames out in the wild;
> it's a good prefix to get files to sort to the top of an 'ls'.
> 
> With a preprocessing step, you can solve all three problems
> simultaneously (arbitrary delimiter, '@', and '\').

Gah.  s/@/&/.  Or s/@/\\&/, actually. :)

Bob






reply via email to

[Prev in Thread] Current Thread [Next in Thread]