Subject: Re: "for" behaviour in /bin/sh
To: None <email@example.com>
From: Chet Ramey <firstname.lastname@example.org>
Date: 07/14/1998 10:49:19
> > POSIX.2 says that an empty list following the `in' is a syntax error.
Read the grammar (section 3.10.2). The `for_clause' production requires
either `in wordlist' or nothing following the `for name linebreak'. A
`wordlist' may not be empty. There is no special case listed at the
beginning of the section that would make an empty wordlist acceptable to
the for statement.
The description in 184.108.40.206 assumes that there is a non-empty list of
items following `in', as the grammar guarantees.
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, Case Western Reserve University Internet: chet@po.CWRU.Edu