aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/set.txt
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-05-27 23:47:23 +1000
committerGravatar axel <axel@liljencrantz.se>2006-05-27 23:47:23 +1000
commit95ca3d1c69f26b7e0290e02d58b1f990783d4dd5 (patch)
tree26fbba93747830fc5ba8892698ffcc5d4609e0ac /doc_src/set.txt
parentc8b04f70cff103154d37c65c1b013eaf58e38009 (diff)
Minor clarifications for documentation for the set builtin
darcs-hash:20060527134723-ac50b-8ad44bf44a8537f12b45281950fcaf85abbdd8f4.gz
Diffstat (limited to 'doc_src/set.txt')
-rw-r--r--doc_src/set.txt8
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