Strange character behavior in bash

Reimundo Heluani rheluani at gmail.com
Sat Aug 29 21:53:17 CEST 2015


Hello list, I am having a strange issue that I am not sure if its 
related to rxvt and/or its interaction with Bash or not:

Using /bin/sh I get the right behavior:
$ echo "hello\nworld"
hello\nworld
$ echo -e "hello\nworld"
hello
world
$	

However in bash I get this weird behaviour:
 $ echo "hello\nworld"

 world"hello\nworld
 $ echo -e "hello\nworld"

 world"hello
 world
 $	

 However, redirecting the output to a file works fine
 Code:	$ echo -e "hello\nworld" > hello.txt && cat hello.txt

 world" > hello.txthello
 world
 $	

Using xterm I don't have any problems.  Does anyone know what's going 
on?

Sincerely, 

R. 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.schmorp.de/pipermail/rxvt-unicode/attachments/20150829/0ece0d73/attachment.sig>


More information about the rxvt-unicode mailing list