bash 2.0.2 backquoted text includes final carriage return

Bill Kelly kelly@softwired-inc.com
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
case.
When I tried including the hostname in filenames in bash, I ended up with
carriage
returns in the filenames.

Example:
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
0000005

--
* Bill Kelly                     mailto:kelly@softwired-inc.com
* SoftWired AG                   http://www.softwired-inc.com
* Technoparkstrasse 1  *  CH-8005 Zurich  *  +41-1-445 23 70 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list