bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: sed3.02 win32


From: Andreas Schwab
Subject: Re: sed3.02 win32
Date: 12 Sep 2001 15:56:46 +0200
User-agent: Gnus/5.090003 (Oort Gnus v0.03) Emacs/21.0.106

"Eli Zaretskii" <address@hidden> writes:

|> > From: "Christoph SIEBERT" <address@hidden>
|> > Date: Wed, 12 Sep 2001 12:37:03 +0200
|> > 
|> > FYI:
|> > It appears that there is still a problem with the newline "\n" in the sed 
version 3.02 for win32.
|> > The command I tried to run is
|> > cmd> set | grep -i "^PATH=" | sed -e s/;/\n/
|> > but a newline could not be inserted where the semicolon separator was 
found.
|> 
|> Sed doesn't support the \n notation.  I'm guessing that on Unix, the
|> shell converts that into a literal newline character.

The Bourne shell does not do that either.  If you want a newline you have
to insert it literally (directly or via variable substitution).

Andreas.

-- 
Andreas Schwab                                  "And now for something
address@hidden                          completely different."
SuSE Labs, SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5



reply via email to

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