From 7ddecde54372c25fcf526e2d24807c5dac9800aa Mon Sep 17 00:00:00 2001 From: axel Date: Tue, 20 Sep 2005 23:31:55 +1000 Subject: Add subdirectories darcs-hash:20050920133155-ac50b-9a14c6c664dd03afbe8e15e7c7998fcfb5c3c750.gz --- doc_src/for.txt | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 doc_src/for.txt (limited to 'doc_src/for.txt') diff --git a/doc_src/for.txt b/doc_src/for.txt new file mode 100644 index 00000000..83fee0dc --- /dev/null +++ b/doc_src/for.txt @@ -0,0 +1,23 @@ + +\section for for - perform a set of commands multiple times. + +\subsection for-synopsis Synopsis +for VARNAME in [VALUES...]; [COMMANDS...]; end + +\subsection for-description Description +for is a loop construct. It will perform the commands specified +by COMMANDS multiple times. Each time the environment variable +specified by VARNAME is assigned a new value from VALUES. + +\subsection for-example Example + +The command + +for i in foo bar baz; echo $i; end + +would output: + +
foo
+bar
+baz
+ -- cgit v1.2.3