diff options
Diffstat (limited to 'doc_src/set.txt')
-rw-r--r-- | doc_src/set.txt | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc_src/set.txt b/doc_src/set.txt index eda46da9..d41b514e 100644 --- a/doc_src/set.txt +++ b/doc_src/set.txt @@ -3,6 +3,10 @@ \subsection set-synopsis Synopsis <code>set [OPTIONS] [VARIABLE_NAME [VALUES...]]</code> +or + +<code>set [OPTIONS] [VARIABLE_NAME[INDICES]... [VALUES...]]</code> + The <code>set</code> builtin causes fish to assign the variable <code>VARIABLE_NAME</code> the values <code>VALUES...</code>. \subsection set-description Description @@ -29,7 +33,9 @@ elements, it will become an array with zero elements. If the variable name is one or more array elements, such as <code>PATH[1 3 7]</code>, only those array elements specified will be -changed. +changed. When array indices are specified to set, multiple arguments +may be used to specify additional indexes, e.g. <code>set PATH[1] +PATH[4] /bin /sbin</code>. The set command requires all switch arguments to come before any non-switch arguments. For example, <code>set flags -l</code> will have |