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` ? -mike