From 95ca3d1c69f26b7e0290e02d58b1f990783d4dd5 Mon Sep 17 00:00:00 2001 From: axel Date: Sat, 27 May 2006 23:47:23 +1000 Subject: Minor clarifications for documentation for the set builtin darcs-hash:20060527134723-ac50b-8ad44bf44a8537f12b45281950fcaf85abbdd8f4.gz --- doc_src/set.txt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc_src/set.txt') 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 set [OPTIONS] [VARIABLE_NAME [VALUES...]] +or + +set [OPTIONS] [VARIABLE_NAME[INDICES]... [VALUES...]] + The set builtin causes fish to assign the variable VARIABLE_NAME the values VALUES.... \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 PATH[1 3 7], 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. set PATH[1] +PATH[4] /bin /sbin. The set command requires all switch arguments to come before any non-switch arguments. For example, set flags -l will have -- cgit v1.2.3