aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src
diff options
context:
space:
mode:
authorGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-15 17:04:49 +0200
committerGravatar Fabian Homborg <FHomborg@gmail.com>2015-09-15 17:05:35 +0200
commita02d4dc27cea0d89fd4c7aea3c65e9d7c06cf52c (patch)
treec821537b35544039c1b82d2b31660ea1135747a5 /doc_src
parent31c75e747cdf59e3077c2eca8a5f6b810a2d5f74 (diff)
Document cross-product
At least in tutorial for now. Fixes #2341
Diffstat (limited to 'doc_src')
-rw-r--r--doc_src/tutorial.hdr7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc_src/tutorial.hdr b/doc_src/tutorial.hdr
index 74d48ec4..829e13e9 100644
--- a/doc_src/tutorial.hdr
+++ b/doc_src/tutorial.hdr
@@ -348,6 +348,13 @@ You can iterate over a list (or a slice) with a for loop:
<outp>entry: /usr/local/bin</outp>
\endfish
+If you append a list to a string (or to a list), it will build the cross-product:
+\fish{cli-dark}
+>_ set -l a 1 2 3
+>_ set -l 1 a b c
+>_ echo $a$1
+<outp>1a 2a 3a 1b 2b 3b 1c 2c 3c
+\endfish
\section tut_command_substitutions Command Substitutions