diff --git a/doc_src/tutorial.hdr b/doc_src/tutorial.hdr index 74d48ec47..829e13e9c 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: entry: /usr/local/bin \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 +1a 2a 3a 1b 2b 3b 1c 2c 3c +\endfish \section tut_command_substitutions Command Substitutions