bash 2.0.2 backquoted text includes final carriage return
Daniel T. Stoelting
Mon May 31 21:10:00 GMT 1999
----- Original Message -----
From: Earnie Boyd <firstname.lastname@example.org>
To: Bill Kelly <email@example.com>; <firstname.lastname@example.org>
Sent: Tuesday, May 04, 1999 11:15 AM
Subject: Re: bash 2.0.2 backquoted text includes final carriage return
> --- Bill Kelly <email@example.com> wrote:
> > Normally the replacement text in bash for something like `hostname`
> > exclude any
> > final line ending characters, but in bash 2.0.2 this appears not to be
> > case.
> By _normally_ do you mean on a UNIX system?
> > When I tried including the hostname in filenames in bash, I ended up
> > carriage
> > returns in the filenames.
> > 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
> 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
Want to unsubscribe from this list?
Send a message to firstname.lastname@example.org
More information about the Cygwin