bug-bash
[Top][All Lists]
Advanced

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

echo redirect additional new line


From: Hans Ginzel
Subject: echo redirect additional new line
Date: Thu, 23 Jul 2015 15:41:13 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

Hello!

Consider, please, this small script

echo 1
echo 1>"a b"
echo 2
echo 2>"c\nd"
echo 3
echo 3>"`echo -e 'e\nf'`"
echo 4

The output is
1
2

3

4

Why is there the additional new line between 2 and 3 or 3 and 4 respectively.

bash --version
GNU bash, version 4.3.11(1)-release (i686-pc-linux-gnu)

Regards
Hans



reply via email to

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