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

Re: wasted disk space



Paul Slootman <paul@murphy.nl> wrote:
> or:

> 	for i in {a,b,c,d,e}; do
> 	    for j in {0,1,2,3,4}; do
> 		echo $i-$j
> 	    done
> 	done

What's the difference between
	for i in {a,b,c,d,e}; do
and
	for i in a b c d e; do
in bash?

> keystrokes isn't that important), however for interactive work
> it's a pretty nifty feature.

Agreed.  If I can get the glob(3) in glibc fixed, ash can support
{} expansions with no extra cost.  Of course, this doesn't mean
that any #!/bin/sh should be allowed to use {} expansions.
-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt



Reply to: