mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 04:30:44 +02:00
commit bash-20100115 snapshot
This commit is contained in:
+24
-24
@@ -129,7 +129,7 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
|
||||
ccaalllleerr [_e_x_p_r]
|
||||
Returns the context of any active subroutine call (a shell func-
|
||||
tion or a script executed with the .. or ssoouurrccee builtins. With-
|
||||
tion or a script executed with the .. or ssoouurrccee builtins). With-
|
||||
out _e_x_p_r, ccaalllleerr displays the line number and source filename of
|
||||
the current subroutine call. If a non-negative integer is sup-
|
||||
plied as _e_x_p_r, ccaalllleerr displays the line number, subroutine name,
|
||||
@@ -282,23 +282,29 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
vvaarriiaabbllee
|
||||
Names of all shell variables. May also be spec-
|
||||
ified as --vv.
|
||||
--CC _c_o_m_m_a_n_d
|
||||
_c_o_m_m_a_n_d is executed in a subshell environment, and its
|
||||
output is used as the possible completions.
|
||||
--FF _f_u_n_c_t_i_o_n
|
||||
The shell function _f_u_n_c_t_i_o_n is executed in the current
|
||||
shell environment. When it finishes, the possible com-
|
||||
pletions are retrieved from the value of the CCOOMMPPRREEPPLLYY
|
||||
array variable.
|
||||
--GG _g_l_o_b_p_a_t
|
||||
The pathname expansion pattern _g_l_o_b_p_a_t is expanded to
|
||||
generate the possible completions.
|
||||
--PP _p_r_e_f_i_x
|
||||
_p_r_e_f_i_x is added at the beginning of each possible com-
|
||||
pletion after all other options have been applied.
|
||||
--SS _s_u_f_f_i_x
|
||||
_s_u_f_f_i_x is appended to each possible completion after all
|
||||
other options have been applied.
|
||||
--WW _w_o_r_d_l_i_s_t
|
||||
The _w_o_r_d_l_i_s_t is split using the characters in the IIFFSS
|
||||
special variable as delimiters, and each resultant word
|
||||
is expanded. The possible completions are the members
|
||||
of the resultant list which match the word being com-
|
||||
pleted.
|
||||
--CC _c_o_m_m_a_n_d
|
||||
_c_o_m_m_a_n_d is executed in a subshell environment, and its
|
||||
output is used as the possible completions.
|
||||
--FF _f_u_n_c_t_i_o_n
|
||||
The shell function _f_u_n_c_t_i_o_n is executed in the current
|
||||
shell environment. When it finishes, the possible com-
|
||||
pletions are retrieved from the value of the CCOOMMPPRREEPPLLYY
|
||||
array variable.
|
||||
--XX _f_i_l_t_e_r_p_a_t
|
||||
_f_i_l_t_e_r_p_a_t is a pattern as used for pathname expansion.
|
||||
It is applied to the list of possible completions gener-
|
||||
@@ -306,12 +312,6 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
completion matching _f_i_l_t_e_r_p_a_t is removed from the list.
|
||||
A leading !! in _f_i_l_t_e_r_p_a_t negates the pattern; in this
|
||||
case, any completion not matching _f_i_l_t_e_r_p_a_t is removed.
|
||||
--PP _p_r_e_f_i_x
|
||||
_p_r_e_f_i_x is added at the beginning of each possible com-
|
||||
pletion after all other options have been applied.
|
||||
--SS _s_u_f_f_i_x
|
||||
_s_u_f_f_i_x is appended to each possible completion after all
|
||||
other options have been applied.
|
||||
|
||||
The return value is true unless an invalid option is supplied,
|
||||
an option other than --pp or --rr is supplied without a _n_a_m_e argu-
|
||||
@@ -321,7 +321,7 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
|
||||
ccoommppoopptt [--oo _o_p_t_i_o_n] [--DDEE] [++oo _o_p_t_i_o_n] [_n_a_m_e]
|
||||
Modify completion options for each _n_a_m_e according to the
|
||||
_o_p_t_i_o_ns, or for the currently-execution completion if no _n_a_m_es
|
||||
_o_p_t_i_o_ns, or for the currently-executing completion if no _n_a_m_es
|
||||
are supplied. If no _o_p_t_i_o_ns are given, display the completion
|
||||
options for each _n_a_m_e or the current completion. The possible
|
||||
values of _o_p_t_i_o_n are those valid for the ccoommpplleettee builtin
|
||||
@@ -332,9 +332,9 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
remaining options should apply to ``empty'' command completion;
|
||||
that is, completion attempted on a blank line.
|
||||
|
||||
The return value is true unless an invalid option is supplied, an
|
||||
attempt is made to modify the options for a _n_a_m_e for which no comple-
|
||||
tion specification exists, or an output error occurs.
|
||||
The return value is true unless an invalid option is supplied,
|
||||
an attempt is made to modify the options for a _n_a_m_e for which no
|
||||
completion specification exists, or an output error occurs.
|
||||
|
||||
ccoonnttiinnuuee [_n]
|
||||
Resume the next iteration of the enclosing ffoorr, wwhhiillee, uunnttiill, or
|
||||
@@ -401,7 +401,7 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
an array variable, or an attempt is made to display a non-exis-
|
||||
tent function with --ff.
|
||||
|
||||
ddiirrss [[++_n]] [[--_n]] [[--ccppllvv]]
|
||||
ddiirrss [[++_n]] [[--_n]] [[--ccllppvv]]
|
||||
Without options, displays the list of currently remembered
|
||||
directories. The default display is on a single line with
|
||||
directory names separated by spaces. Directories are added to
|
||||
@@ -697,10 +697,10 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
The first form lists the active jobs. The options have the fol-
|
||||
lowing meanings:
|
||||
--ll List process IDs in addition to the normal information.
|
||||
--nn Display information only about jobs that have changed
|
||||
status since the user was last notified of their status.
|
||||
--pp List only the process ID of the job's process group
|
||||
leader.
|
||||
--nn Display information only about jobs that have changed
|
||||
status since the user was last notified of their status.
|
||||
--rr Restrict output to running jobs.
|
||||
--ss Restrict output to stopped jobs.
|
||||
|
||||
@@ -1247,7 +1247,7 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
(( _c_o_m_m_a_n_d )) inherit the DDEEBBUUGG and RREETTUURRNN traps.
|
||||
66.. Error tracing is enabled: command substitution,
|
||||
shell functions, and subshells invoked with ((
|
||||
_c_o_m_m_a_n_d )) inherit the EERRRROORR trap.
|
||||
_c_o_m_m_a_n_d )) inherit the EERRRR trap.
|
||||
eexxttgglloobb If set, the extended pattern matching features described
|
||||
above under PPaatthhnnaammee EExxppaannssiioonn are enabled.
|
||||
eexxttqquuoottee
|
||||
@@ -1434,7 +1434,7 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
causes the shell to print a list of signal names and their cor-
|
||||
responding numbers. Each _s_i_g_s_p_e_c is either a signal name
|
||||
defined in <_s_i_g_n_a_l_._h>, or a signal number. Signal names are
|
||||
case insensitive and the SIG prefix is optional.
|
||||
case insensitive and the SSIIGG prefix is optional.
|
||||
|
||||
If a _s_i_g_s_p_e_c is EEXXIITT (0) the command _a_r_g is executed on exit
|
||||
from the shell. If a _s_i_g_s_p_e_c is DDEEBBUUGG, the command _a_r_g is exe-
|
||||
|
||||
Reference in New Issue
Block a user