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

Re: Bug in cron postinst



On Wed, Sep 03, 2003 at 01:40:51PM -0700, John H. Robinson, IV wrote:

> Matt Zimmerman wrote:
> > there:[~] /bin/bash
> > mdz@there:~$ foo="a b"
> > mdz@there:~$ for x in $foo; do echo "$x"; done
>                         ^^^^
> > a
> > b
> 
> $ foo="a  b"; for x in "$foo"; do echo "$x" : $x; done
> a  b : a b

That misses the whole point, which was to iterate over a list of items, some
of which could contain whitespace.

-- 
 - mdz



Reply to: