bash 2.0.2 backquoted text includes final carriage return

Bill Kelly
Tue May 4 07:35:00 GMT 1999

Normally the replacement text in bash for something like `hostname` would
exclude any
final line ending characters, but in bash 2.0.2 this appears not to be the
When I tried including the hostname in filenames in bash, I ended up with
returns in the filenames.

bash-2.02$ bash -version
GNU bash, version 2.02.1(2)-release (i586-pc-cygwin32)
Copyright 1998 Free Software Foundation, Inc.

bash-2.02$ echo -n `hostname` | od -c
0000000   b   o   r   s  \r

* Bill Kelly           
* SoftWired AG         
* Technoparkstrasse 1  *  CH-8005 Zurich  *  +41-1-445 23 70 

Want to unsubscribe from this list?
Send a message to

More information about the Cygwin mailing list