X-Spam-Check-By: sourceware.org From: "Dave Korn" To: 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/