No brace expansion for ash?

Rich Felker dalias at aerifal.cx
Sun Jul 10 06:30:12 UTC 2011


On Sun, Jul 10, 2011 at 06:09:01AM +0100, Davide wrote:
> Thirdly I somewhat disagree that using for instead of brace
> expansion would make any shell script more readable:
> 
> mkdir -p /usr/local/people/{me,you,others}
> 
> mkdir -p /usr/local/people/me /usr/local/people/you /usr/local/people/others
> 
> for DIR in /usr/local/people/me /usr/local/people/you /usr/local/people/others
> do
>   mkdir -p $DIR
> done

I think you misunderstood.

for x in me you others ; do mkdir -p /usr/local/people/$x ; done

Rich


More information about the busybox mailing list