mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Add comment in documentation for set builtin about not allowing switches after non-switches
darcs-hash:20060128021933-ac50b-db340075e9a57b41a91d6b64d56d9b5579185254.gz
This commit is contained in:
parent
78ae6d3bea
commit
1505cc3d81
1 changed files with 8 additions and 2 deletions
|
@ -27,8 +27,14 @@ If a variable is set to more than one value, the variable will be an
|
||||||
array with the specified elements. If a variable is set to zero
|
array with the specified elements. If a variable is set to zero
|
||||||
elements, it will become an array with zero elements.
|
elements, it will become an array with zero elements.
|
||||||
|
|
||||||
If the variable name is one or more array elements, such as <code>PATH[1
|
If the variable name is one or more array elements, such as
|
||||||
3 7]</code>, only those array elements specified will be changed.
|
<code>PATH[1 3 7]</code>, only those array elements specified will be
|
||||||
|
changed.
|
||||||
|
|
||||||
|
The set command requires all switch arguments to come before any
|
||||||
|
non-switch arguments. For example, <code>set flags -l</code> will have
|
||||||
|
the effect of setting the value of the variable <code>flags</code> to
|
||||||
|
'-l', not making the variable local.
|
||||||
|
|
||||||
\subsection set-example Example
|
\subsection set-example Example
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue