Hello!
I would appreciate if bash could optionally
(some option – on by default when histexpand is set)
store the command line *before* history expansion
additionally to expanded line.
Regards,
Hans
On Thu, Jul 23, 2015 at 11:01:46AM -0400, Greg Wooledge wrote:
echo 2>"c\nd"
Did you intend to write the number "2" to a file, or did you intend to
redirect stderr?
...
The space after the 2 is extremely significant, and $'...' is how you
create strings (filenames, etc.) with control characters
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-g