delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/07/14/11:33:13

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Tue, 14 Jul 2009 17:32:47 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: ls and wildcards
Message-ID: <20090714153247.GK27613@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <COL102-W1198ECFD60B8E49747914B5230 AT phx DOT gbl> <786EBDA1AC46254B813E200779E7AD361E7155 AT srv1163ex1 DOT flightsafety DOT com>
MIME-Version: 1.0
In-Reply-To: <786EBDA1AC46254B813E200779E7AD361E7155@srv1163ex1.flightsafety.com>
User-Agent: Mutt/1.5.19 (2009-02-20)
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

On Jul 14 10:26, Thrall, Bryan wrote:
> Karl M wrote on Tuesday, July 14, 2009 10:17 AM:
> 
> > Hi All...
> > 
> > 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.  
> > 
> > Thanks,
> > 
> > ...Karl
> 
> I can reproduce this (for bash, anyway; I don't have dash installed),
> plus:
> 
> $ 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

That's expected behaviour.  bash.exe simply doesn't match *sh, it
only matches *sh.exe.

In theory, what we could do is to drop the .exe suffix in future.
On Windows NT it's not required to run an executable so it would
be safe to drop the suffix as far as Cygwin is concerned.

However, cmd as well as Windows Explorer don't identify executables
using the executability flag.  Both refuse to start executables
missing the .exe suffix.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

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