delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/04/13/12:39:37

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <38F60611.8ECAB25A@deadbeets.com>
Date: Thu, 13 Apr 2000 12:38:25 -0500
From: Jason Dufair <jase AT deadbeets DOT com>
Reply-To: jase AT deadbeets DOT com
X-Mailer: Mozilla 4.72 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: dwsharp AT iee DOT org
CC: gnuwin32 <cygwin AT sourceware DOT cygnus DOT com>
Subject: Re: bash expansion question
References: <3 DOT 0 DOT 5 DOT 32 DOT 20000412235451 DOT 00939d30 AT pop DOT ma DOT ultranet DOT com> <38F5E02C DOT B11CF6B1 AT deadbeets DOT com> <38F60553 DOT D8389930 AT dddandr DOT octacon DOT co DOT uk>

Hmm.  My last note must not have made it to the whole list.  Indeed, my
/bin/sh was indeed ash.  I replaced it with a symlink to bash and all is
well!  I would still think this would be odd for ash, but I know nothing
about ash, so maybe it's normal or not defined.

Thanks all for help and suggestions.

Don Sharp wrote:
> 
> I remember "sh" giving this trouble (short selection) when it is "ash".
> Are you sure "sh" == "bash" ?
> 
> Cheers
> 
> Don
> 
> Jason Dufair wrote:
> >
> > "Larry Hall (RFK Partners Inc)" wrote:
> > >
> > > At 09:28 PM 4/12/00 -0500, you wrote:
> > > >Hello -
> > > >
> > > >I have cygwin b20 running on WinNT SP6
> > > >
> > > >at the command line I get the following:
> > > >
> > > >$ foo=bar/baz
> > > >$ echo ${foo%%/*}
> > > >foo
> > > >
> > > >However, if I have the following in a script:
> > > >
> > > >foo=bar/baz
> > > >echo ${foo%%/*}
> > > >
> > > >and then run it, I get
> > > >$ test.sh
> > > >ba
> > > >
> > > >It seems to be dropping one too many characters.  It seems I've either
> > > >found an expansion bug or I'm misunderstanding something.  Testing this
> > > >on my linux box (bash 1.14.7), it works as expected.  Can someone
> > > >clarify this for me?  Thanks a lot.
> > > >
> > >
> > > Sounds like a text/binary thing to me.  Try setting adding "binmode" to
> > > your CYGWIN environment variable and restarting bash...
> >
> > Thanks for the suggestion, Larry.  I tried it and it seems to have had
> > no effect.  Can anyone duplicate this by chance?
> >
> > --
> > Jason Dufair - jase AT deadbeets DOT com - PGP key on keyservers
> > "So many ways to understand
> > One for every woman and man
> > Been that way since the world began" - Bruce Cockburn
> >
> > --
> > Want to unsubscribe from this list?
> > Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

-- 
Jason Dufair - jase AT deadbeets DOT com - PGP key on keyservers
"So many ways to understand
One for every woman and man
Been that way since the world began" - Bruce Cockburn

--
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