bug-coreutils
[Top][All Lists]
Advanced

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

Re: Possible bug in echo


From: Andreas Schwab
Subject: Re: Possible bug in echo
Date: Mon, 28 Jul 2003 13:01:39 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Alexander Bedard <address@hidden> writes:

|> This appears to be a bug in echo:
|> 
|> echo `echo` should return 2 line feeds, but it only gives one.

This has nothing to do with echo.  The shell is unconditionally stripping
trailing newlines from command substitutions.  This is a feature, not a
bug.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

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