Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
Message-ID: <38F5E02C.B11CF6B1@deadbeets.com>
Date: Thu, 13 Apr 2000 09:56:44 -0500
From: Jason Dufair <jase@deadbeets.com>
Reply-To: jase@deadbeets.com
X-Mailer: Mozilla 4.72 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "Larry Hall (RFK Partners Inc)" <lhall@rfk.com>,
        cygwin@sourceware.cygnus.com
Subject: Re: bash expansion question
References: <3.0.5.32.20000412235451.00939d30@pop.ma.ultranet.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"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@deadbeets.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@sourceware.cygnus.com

