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
On Thu, Jul 23, 2015 at 03:41:13PM +0200, Hans Ginzel wrote:
> Hello!
>
> Consider, please, this small script
>
> echo 1
> echo 1>"a b"
> echo 2
> echo 2>"c\nd"
Did you intend to write the number "2" to a file, or did you intend to
redirect stderr?
> Why is there the additional new line between