mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 13:53:10 +00:00
Update docs for multi-erase in abbr and set
[ci skip]
This commit is contained in:
parent
468c6ff0f8
commit
194f4f3734
2 changed files with 5 additions and 5 deletions
|
@ -9,7 +9,7 @@ Synopsis
|
|||
::
|
||||
|
||||
abbr --add [SCOPE] WORD EXPANSION
|
||||
abbr --erase WORD
|
||||
abbr --erase WORD...
|
||||
abbr --rename [SCOPE] OLD_WORD NEW_WORD
|
||||
abbr --show
|
||||
abbr --list
|
||||
|
@ -35,7 +35,7 @@ The following options are available:
|
|||
|
||||
- ``-l`` or ``--list`` Lists all abbreviated words.
|
||||
|
||||
- ``-e WORD`` or ``--erase WORD`` Erase the abbreviation WORD.
|
||||
- ``-e WORD`` or ``--erase WORD...`` Erase the given abbreviations.
|
||||
|
||||
- ``-q`` or ``--query`` Return 0 (true) if one of the WORDs is an abbreviation.
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ Synopsis
|
|||
set [OPTIONS] VARIABLE_NAME VALUES...
|
||||
set [OPTIONS] VARIABLE_NAME[INDICES]... VALUES...
|
||||
set ( -q | --query ) [SCOPE_OPTIONS] VARIABLE_NAMES...
|
||||
set ( -e | --erase ) [SCOPE_OPTIONS] VARIABLE_NAME
|
||||
set ( -e | --erase ) [SCOPE_OPTIONS] VARIABLE_NAME...
|
||||
set ( -e | --erase ) [SCOPE_OPTIONS] VARIABLE_NAME[INDICES]...
|
||||
set ( -S | --show ) [VARIABLE_NAME]...
|
||||
|
||||
|
@ -47,7 +47,7 @@ The following options control variable scope:
|
|||
|
||||
The following options are available:
|
||||
|
||||
- ``-e`` or ``--erase`` causes the specified shell variable to be erased
|
||||
- ``-e`` or ``--erase`` causes the specified shell variables to be erased
|
||||
|
||||
- ``-q`` or ``--query`` test if the specified variable names are defined. Does not output anything, but the builtins exit status is the number of variables specified that were not defined.
|
||||
|
||||
|
@ -86,7 +86,7 @@ In erase mode, if variable indices are specified, only the specified slices of t
|
|||
|
||||
``set`` requires all options to come before any other arguments. For example, ``set flags -l`` will have the effect of setting the value of the variable ``flags`` to '-l', not making the variable local.
|
||||
|
||||
In assignment mode, ``set`` does not modify the exit status. This allows simultaneous capture of the output and exit status of a subcommand, e.g. ``if set output (command)``. In query mode, the exit status is the number of variables that were not found. In erase mode, ``set`` exits with a zero exit status in case of success, with a non-zero exit status if the commandline was invalid, if the variable was write-protected or if the variable did not exist.
|
||||
In assignment mode, ``set`` does not modify the exit status. This allows simultaneous capture of the output and exit status of a subcommand, e.g. ``if set output (command)``. In query mode, the exit status is the number of variables that were not found. In erase mode, ``set`` exits with a zero exit status in case of success, with a non-zero exit status if the commandline was invalid, if any of the variable was write-protected or if any of the variable did not exist.
|
||||
|
||||
|
||||
Examples
|
||||
|
|
Loading…
Reference in a new issue