This is the mail archive of the
cygwin
mailing list for the Cygwin project.
RE: bash shell globbing not working anymore
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <cygwin at cygwin dot com>
- Date: Wed, 4 Oct 2006 17:10:40 +0100
- Subject: RE: bash shell globbing not working anymore
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/