Correct set help page. The handling of setting a variable to no value has changed.

darcs-hash:20051207162924-ac50b-3e3c579b8b932b9a5a11546fb4a042d5e2aa85c5.gz
This commit is contained in:
axel 2005-12-08 02:29:24 +10:00
parent 4ba2709452
commit 0a713a7939
2 changed files with 3 additions and 6 deletions

View file

@ -1015,6 +1015,7 @@ g++, javac, java, gcj, lpr, doxygen, whois, find)
version of a POSIX command
- Yanking weird characters from clipboard prints Unicode escapes
If you think you have found a bug not described here, please send a
report to <a href="mailto:axel@liljencrantz.se"> axel@liljencrantz.se
</a>.

View file

@ -18,16 +18,12 @@ The <tt>set</tt> builtin causes fish to assign the variable <tt>VARIABLE_NAME</t
If set is called with no arguments, the names and values of all
environment variables are printed.
If set is called with only one argument, the scope of the variable
with the given name will be changed as specified, but it's value will
remain the same. If the variable did not previously exist, it's value
will be an empty string.
If the \c -e or \c --erase option is specified, the variable
specified by the following arguments will be erased
If a variable is set to more than one value, the variable will be an
array with the specified elements.
array with the specified elements. If a variable is set to zero
elements, it will become an array with zero elements.
If the variable name is one or more array elements, such as <tt>PATH[1
3 7]</tt>, only those array elements specified will be changed.