|
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 <cpg@rocketmail.com> wrote: > --- Paul Jarc <prj@po.cwru.edu> 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
[Prev in Thread] | Current Thread | [Next in Thread] |