clone 522844 -1 retitle -1 posh: Accepts non-POSIX "for" syntax reassign -1 posh 0.8.6 severity 522844 wishlist tags 522844 + wontfix quit
Reuben Thomas wrote: > dash accepts the following syntax: > > for i; do... > > but this is not correct POSIX syntax, as documented here: > http://www.opengroup.org/onlinepubs/000095399/utilities/xcu_chap02.html#tag_02 [...] > Note that a semi-colon is required by the list syntax "word..." if an > "in" clause is used, but is not required, or indeed permitted, > otherwise. > > Accepting this syntax is nice for those of us used to bash, as it > accepts this syntax, and its man page incorrectly says that the > semi-colon is mandatory; but it is less good for those of us who rely > on dash to catch POSIX compliance failures! (This bit me with /bin/sh > on a Solaris system.) Catching buggy, nonportable scripts is not a design goal for dash. But it is a design goal for posh, which exhibits the same behavior, so cloning. Thanks, Jonathan -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org