From 474d2cdd444ea4cb1f1f028ac8faecc1abae35f9 Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Tue, 25 Sep 2007 22:47:25 +0800 Subject: [MAN] Clarify syntax of the for command Document that in a for loop 'in word ...' is optional, and if omitted, 'in "$@"' is used. Lars Wilke noticed this, and reported through http://bugs.debian.org/387441 --- src/dash.1 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/dash.1 b/src/dash.1 index 3aefe21..9b8ab0e 100644 --- a/src/dash.1 +++ b/src/dash.1 @@ -640,17 +640,20 @@ repeat until the exit status of the first list is zero. .Pp The syntax of the for command is .Bd -literal -offset indent -for variable in word ... +for variable [ in [ word ... ] ] do list done .Ed .Pp -The words are expanded, and then the list is executed repeatedly with the +The words following +.Pa in +are expanded, and then the list is executed repeatedly with the variable set to each word in turn. do and done may be replaced with .Dq { and .Dq } . +Omitting in word ... is equivalent to in "$@". .Pp The syntax of the break and continue command is .Bd -literal -offset indent -- cgit 1.4.1 >summary refs log tree commit diff
path: root/filters/html-converters/md2html (unfollow)
Commit message (Expand)Author
2015-08-13Makefile: include Git's config.mak.unameJohn Keeping
2015-08-13tests: allow shell to be overriddenJohn Keeping
2015-08-13redirect: cleanlinessJason A. Donenfeld
2015-08-13redirect: be more careful for different cgi setupsJason A. Donenfeld
2015-08-12ui-log: fix double countingJohn Keeping
2015-08-12log: allow users to follow a fileJohn Keeping
2015-08-12shared: make cgit_diff_tree_cb publicJohn Keeping
2015-08-12t0110: Chain together using &&Jason A. Donenfeld
2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld
2015-08-12filters: apply HTML escapingLazaros Koromilas
2015-08-12git: update to v2.5.0Christian Hesse
2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt