Just a thought on sed

Nicholas Dille darkyeti at gmx.net
Sun May 5 14:37:27 PDT 2002


On Sun, May 05, 2002 at 12:04:41PM +0200, Matthias Benkmann wrote:
> On Sat, 4 May 2002 21:29:52 +0200 Nicholas Dille <darkyeti at gmx.net> wrote:
> 
> > On Sat, May 04, 2002 at 01:55:25PM -0400, Phil Gendreau wrote:
> > > $ echo "$(sed 's/foo/bar/g' file)" >file
> > 
> > i have tried something similar on log files and it was a complete mess
> > because make uses ` and ' to delimit directories.
> > one could argue that nobody would use those in Makefiles and the like
> > but you never know!
> 
> Huh?  I've used ` and ' in Makefiles without problems. I've also read the
> make documentation and I don't recall any special meaning attached to
> them.

simply using those in Makefiles is not the problem. but using them in
echo statements as the one mentioned above causes trouble.

try the following line:

	# echo "foo`temp'bar"

nic.

-- 
rakshas at quietude / 7793747 / rakshas dot de
-- 
Unsubscribe: send email to listar at linuxfromscratch.org
and put 'unsubscribe lfs-dev' in the subject header of the message



More information about the lfs-dev mailing list