In message <[EMAIL PROTECTED]> Sheldon Hearn writes:
: On Mon, 06 Mar 2000 00:59:39 PST, Doug Barton wrote:
: 
: > for name [ in word ] 
: > do
: >         compound-list
: > done
: > 
: > the "in word" is optional. Therefore:
: 
: Hmmm, you're right.
: 
: I must admit, though, that if the text is confusing enough to confuse
: me, it's not entirely clear (even if I'm not the hardest person in the
: world to confuse)!

Are you sure that "word" here means one or more tokens, or zero or
more tokens.  If it means zero or more tokens, then 'for i in ; do '
is perfectly legal.  You're not quoting what word means.

The reason that I ask this is that I can't see why
        for i in ; do
would be any different than
        for i in $foo; do
when foo is empty.  They are the same thing from at last my world view
of the shell.

Warner



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to