Re: [PATCH] Add test case for ls-files --with-head
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Oct 3, 2007, 21:39 UTC
- Message-ID
- <Pine.LNX.4.64.0710032238080.28395@racer.site>
- In-Reply-To
- <20071003202157.GA28043@coredump.intra.peff.net>
Hi,
On Wed, 3 Oct 2007, Jeff King wrote:
Show 9 quoted lines
> > for i in {1,2,3,4,5}{0,1,2,3,4,5,6,7,8,9}
> > do
> > ...
> > done
>
> $ dash
> $ for i in {1,2,3,4,5}{0,1,2,3,4,5,6,7,8,9}; do echo $i; done
> {1,2,3,4,5}{0,1,2,3,4,5,6,7,8,9}
> $AFAIK this is the same as bash (I thought I was the last one to make that mistake 10 years ago). As long as you do not have _files_ matching the pattern, it does not expand. And besides, this is too complicated anyway: [1-5] is much shorter than {1,2,3,4,5}.
Ciao, Dscho