delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/05/04/10:36:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-Id: <4.1.19990504163144.00a2b100@pegasus.ii.softwired.ch>
X-Sender: bllklly AT pegasus DOT ii DOT softwired DOT ch
X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1
Date: Tue, 04 May 1999 16:35:44 +0200
To: cygwin AT sourceware DOT cygnus DOT com
From: Bill Kelly <kelly AT softwired-inc DOT com>
Subject: bash 2.0.2 backquoted text includes final carriage return
Mime-Version: 1.0

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 AT softwired-inc DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019