mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 21:18:53 +00:00
Mention that for
variables are local.
This is the current behaviour, documentation can be updated if this behaviour changes, assuming it can, because it's an incompatible change.
This commit is contained in:
parent
d7ba6e4a1d
commit
b5d9e366ad
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ 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. On each iteration, the environment variable specified by `VARNAME` is assigned a new value from `VALUES`. If `VALUES` is empty, `COMMANDS` will not be executed at all.
|
||||
`for` is a loop construct. It will perform the commands specified by `COMMANDS` multiple times. On each iteration, the local variable specified by `VARNAME` is assigned a new value from `VALUES`. If `VALUES` is empty, `COMMANDS` will not be executed at all.
|
||||
|
||||
\subsection for-example Example
|
||||
|
||||
|
|
Loading…
Reference in a new issue