X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave.korn@artimi.com>
To: <cygwin@cygwin.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
Content-Type: text/plain; 	charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Mailer: Microsoft Office Outlook 11
In-Reply-To: <20061004154700.96124.qmail@web90304.mail.mud.yahoo.com>
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
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

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/

