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:
axel 2006-01-28 12:19:33 +10:00
parent 78ae6d3bea
commit 1505cc3d81

View file

@ -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