mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
parent
31c75e747c
commit
a02d4dc27c
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue