[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: globstar broken again

From: Mike Frysinger
Subject: Re: globstar broken again
Date: Mon, 18 May 2009 22:04:06 -0400
User-agent: KMail/1.11.3 (Linux/; KDE/4.2.3; x86_64; ; )

On Monday 18 May 2009 21:14:18 Matt Zyzik wrote:
> Previously, the behavior of globstar mimicked that of ksh/zsh for such a
> command: "ls -adl **/*.cs".
> Now I've upgraded to Bash 4.0.24 from Bash 4.0.17 and the behavior is
> different (seemingly incorrect). Previously, the above-mentioned command
> would list all *.cs files in the current directory and all
> subdirectories. With the latest Bash, it only lists *.cs files in
> subdirectories. The *.cs files in the current working directory are
> ignored.
> I think this is a bug. Again, "ls -adl **/*.cs" is now _not_ picking up
> *.cs files in the current working directory.

going by the documentation, this sounds correct to me:
If set, the pattern ** used in a filename expansion context will match a files 
and zero or more directories and subdirectories.  If the pattern is followed 
by a /, only directories and subdirectories match.

what's wrong with using `ls **.cs` ?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]