bug-bash
[Top][All Lists]
Advanced

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

Re: null word list in for loops in bash-2.05.8 not allowed


From: Paul Jarc
Subject: Re: null word list in for loops in bash-2.05.8 not allowed
Date: Sun, 18 Nov 2001 20:24:16 -0500
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/20.7 (i386-redhat-linux-gnu)

Carlos Puchol <address@hidden> wrote:
> --- Paul Jarc <address@hidden> wrote:
>> Assuming SOMETHING doesn't contain single quotes:
>> var='$(SOMETHING)'; for i in $var; do ...; done
>
> does not work. the loop is issued once, with $i
> having the empty string.

No, that would happen if $var were double-quoted.  But it isn't.


paul



reply via email to

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