delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/04/12:11:07

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: bash shell globbing not working anymore
Date: Wed, 4 Oct 2006 17:10:40 +0100
Message-ID: <01f001c6e7cf$a591f350$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <20061004154700.96124.qmail@web90304.mail.mud.yahoo.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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 04 October 2006 16:47, Andy Telford wrote:

> Has any experienced this?
> 
> - "ls" works but "ls *" returns "ls: *: No such file or directory"
> - same if I just use the shell builtin "echo *" just returns "*"

  You are in an empty directory.  There is nothing for the '*' to match.

  As glob expansion is handled by the shell, ls ends up actually seeing "*" as
the argument passed to it, rather than a list of filenames.  Since there is no
file called "*" in the directory, there is nothing for it to list; it returns
the same error as any other non-existent filename.

  Contrast the effect of "ls *" against "ls .*".


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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

- Raw text -


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