This is the mail archive of the cygwin@sourceware.cygnus.com
mailing list for the Cygwin project. See the Cygwin
home page for more information.
Re: bash 2.0.2 backquoted text includes final carriage return
- To: <earnie_boyd@yahoo.com>, "Bill Kelly" <kelly@softwired-inc.com>, <cygwin@sourceware.cygnus.com>
- Subject: Re: bash 2.0.2 backquoted text includes final carriage return
- From: "Daniel T. Stoelting" <dstoelt@mindspring.com>
- Date: Tue, 4 May 1999 12:22:30 -0400
- References: <19990504151508.11830.rocketmail@send205.yahoomail.com>
----- Original Message -----
From: Earnie Boyd <earnie_boyd@yahoo.com>
To: Bill Kelly <kelly@softwired-inc.com>; <cygwin@sourceware.cygnus.com>
Sent: Tuesday, May 04, 1999 11:15 AM
Subject: Re: bash 2.0.2 backquoted text includes final carriage return
> --- Bill Kelly <kelly@softwired-inc.com> wrote:
> > 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.
> -8<-
>
> By _normally_ do you mean on a UNIX system?
>
> -8<-
> > When I tried including the hostname in filenames in bash, I ended up
with
> > carriage
> > returns in the filenames.
> -8<-
> > bash-2.02$ echo -n `hostname` | od -c
> > 0000000 b o r s \r
> > 0000005
>
> Expected default. Workaround if necessary only: export CYGWIN=nobinmode.
> Alternate fix would be to set the output of hostname to 0_BINARY mode in
the
> hostname source file(s) and rebuild.
Is nobinmode really necessary? I'm using GNU bash, version 2.03.0(3) and my
CYGWIN is title strip_title binmode glob tty. Output of the above command
does not include a carriage return:
bash-2.02$> echo -n `hostname` | od -c
0000000 d s t o e l t i n g
0000012
-Dan
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com