Subject: "for" behaviour in /bin/sh
To: None <current-users@NetBSD.ORG>
From: Johnny Chi-Lung Lam <>
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       
   Carnegie Mellon University