delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/14/12:09:04

X-Recipient: archive-cygwin AT delorie DOT 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
MIME-Version: 1.0
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 AT phx DOT gbl> <786EBDA1AC46254B813E200779E7AD361E7155 AT srv1163ex1 DOT flightsafety DOT com> <COL102-W36A1C2FFDB14671C1D0B1FB5230 AT phx DOT gbl>
From: "Thrall, Bryan" <bryan DOT thrall AT flightsafety DOT com>
To: "Karl M" <karlm30 AT hotmail DOT com>
Cc: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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 DOT thrall AT flightsafety DOT 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019