+2000-11-10 Akim Demaille <akim@epita.fr>
+
+ * doc/autoconf.texi (Limitations of Builtins): `for i; do'.
+
2000-11-10 Akim Demaille <akim@epita.fr>
* doc/autoconf.texi (Shellology): Some about /usr/xpg4/bin/sh on
Therefore you should @command{export} again each environment variable
you update.
+@item @command{for}
+@cindex @command{for}
+To loop over positional arguments, use
+
+@example
+for arg
+do
+ echo "$arg"
+done
+@end example
+
+@noindent
+You may @emph{not} leave the @code{do} on the same line as @code{for},
+since some shells improperly grok
+
+@example
+for arg; do
+ echo "$arg"
+done
+@end example
+
+If you want to explicitly refer to the positional arguments, given the
+@samp{$@@} bug (@pxref{Shell Substitutions}), use:
+
+@example
+for arg in ${1+"$@@"}; do
+ echo "$arg"
+done
+
@item @command{if}
@cindex @command{if}
Using @samp{!} is not portable. Instead of