Subject: Re: "for" behaviour in /bin/sh
To: None <current-users@NetBSD.ORG>
From: Wolfgang Solfrank <email@example.com>
Date: 07/13/1998 19:10:52
> BTW: one place that this notation occurs is in automake generated makefiles
> if you have "no" SUBDIRS. I.e:
> if you omit the variable, then automake doesn't produce the for loop at
Note that there is a difference between:
for i in
for in in $LIST
The former will not work on "traditional" shells (like e.g. Suns), but the
latter does indeed work as expected.
So one might argue that the fact that our /bin/sh accepts the former is a bug,
but I doubt that any spec has anything to say about it.
ws@TooLs.DE (Wolfgang Solfrank, TooLs GmbH) +49-228-985800