bug-bash
[Top][All Lists]
Advanced

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

Re: globstar broken again


From: Matt Zyzik
Subject: Re: globstar broken again
Date: Mon, 18 May 2009 22:47:09 -0400
User-agent: Mutt/1.5.16 (2007-06-09)

On Mon, May 18, 2009 at 10:04:06PM -0400, Mike Frysinger wrote:
> 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` ?

It doesn't work.

--Matt




reply via email to

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