diff --git a/doc_src/cmds/abbr.rst b/doc_src/cmds/abbr.rst index b749dd463..22e9e1da9 100644 --- a/doc_src/cmds/abbr.rst +++ b/doc_src/cmds/abbr.rst @@ -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. diff --git a/doc_src/cmds/set.rst b/doc_src/cmds/set.rst index 699e0095e..fb0dc71ce 100644 --- a/doc_src/cmds/set.rst +++ b/doc_src/cmds/set.rst @@ -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