mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-27 16:51:15 -03: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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user