Subject: "for" behaviour in /bin/sh
To: None <current-users@NetBSD.ORG>
From: Johnny Chi-Lung Lam <jlbg+@andrew.cmu.edu>
List: current-users
Date: 07/12/1998 20:31:28
In NetBSD's /bin/sh, the following snippet executes without error:

	for f in ; do echo $f; done

But in /bin/sh on SunOS and HP-UX, I get the following error:

	syntax error: `;' unexpected

Which is the correct behaviour?
--
   Johnny C. Lam
   Department of Statistics                 lamj@stat.cmu.edu
   Carnegie Mellon University               http://www.stat.cmu.edu/~lamj/

                                @>---`---,----