X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 	tests=AWL,BAYES_00,J_CHICKENPOX_56
X-Spam-Check-By: sourceware.org
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Subject: RE: ls and wildcards
Date: Tue, 14 Jul 2009 11:08:41 -0500
Message-ID: <786EBDA1AC46254B813E200779E7AD361E7185@srv1163ex1.flightsafety.com>
In-Reply-To: <COL102-W36A1C2FFDB14671C1D0B1FB5230@phx.gbl>
References: <COL102-W1198ECFD60B8E49747914B5230@phx.gbl> <786EBDA1AC46254B813E200779E7AD361E7155@srv1163ex1.flightsafety.com> <COL102-W36A1C2FFDB14671C1D0B1FB5230@phx.gbl>
From: "Thrall, Bryan" <bryan.thrall@flightsafety.com>
To: "Karl M" <karlm30@hotmail.com>
Cc: <cygwin@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

http://cygwin.com/acronyms/#PPIOSPE

Karl M wrote on Tuesday, July 14, 2009 10:37 AM:

>> Subject: RE: ls and wildcards
>> Date: Tue, 14 Jul 2009 10:26:19 -0500
>> From: bryan.thrall
>>=20
>> Karl M wrote on Tuesday, July 14, 2009 10:17 AM:
>>=20
>>> Hi All...
>>>=20
>>> I just noticed while looking around after updating dash that "ls
/bin/*sh"
>>> does not find bash and dash, but it does on my Fedora core 6 machine
at
>>> work. I see the issue in both 1.5 and 1.7, attached is an example in
cygwin
>>> 1.7.=20
>>>=20
>>> Thanks,
>>>=20
>>> ...Karl
>>=20
>> I can reproduce this (for bash, anyway; I don't have dash installed),
plus:
>>=20
>> $ ls /bin/*sh.exe
>> /bin/ash.exe /bin/ksh.exe /bin/ppmflash.exe /bin/sh.exe
/bin/tclsh.exe
>> /bin/bash.exe /bin/pdksh.exe /bin/rsh.exe /bin/ssh.exe /bin/wish.exe
>>=20
> So it is an issue with the exe magic and ls. The .exe files are not
found.
>=20
> Is the intended behavior?

See Eric and Corinna's replies to the mailing list; apparently, it is a
deficiency in glob() and fnmatch().

--=20
Bryan Thrall
FlightSafety International
bryan.thrall@flightsafety.com

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

