mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-13 05:30:48 +02:00
commit bash-20090226 snapshot
This commit is contained in:
+250
-240
@@ -738,8 +738,8 @@ PPAARRAAMMEETTEERRSS
|
||||
$${{BBAASSHH__LLIINNEENNOO[[_$_i]]}} is the line number in the source file where
|
||||
$${{FFUUNNCCNNAAMMEE[[_$_i]]}} was called (or $${{BBAASSHH__LLIINNEENNOO[[_$_i_-_1]]}} if refer-
|
||||
enced within another shell function). The corresponding source
|
||||
file name is $${{BBAASSHH__SSOOUURRCCEE[[_$_i]]}}.. UUssee LLIINNEENNOO ttoo oobbttaaiinn tthhee ccuurr--
|
||||
rreenntt lliinnee nnuummbbeerr..
|
||||
file name is $${{BBAASSHH__SSOOUURRCCEE[[_$_i]]}}. Use LLIINNEENNOO to obtain the cur-
|
||||
rent line number.
|
||||
BBAASSHH__RREEMMAATTCCHH
|
||||
An array variable whose members are assigned by the ==~~ binary
|
||||
operator to the [[[[ conditional command. The element with index
|
||||
@@ -805,18 +805,18 @@ PPAARRAAMMEETTEERRSS
|
||||
below).
|
||||
|
||||
CCOOMMPP__WWOORRDDBBRREEAAKKSS
|
||||
The set of characters that the Readline library treats as word
|
||||
The set of characters that the rreeaaddlliinnee library treats as word
|
||||
separators when performing word completion. If CCOOMMPP__WWOORRDDBBRREEAAKKSS
|
||||
is unset, it loses its special properties, even if it is subse-
|
||||
quently reset.
|
||||
|
||||
CCOOMMPP__WWOORRDDSS
|
||||
An array variable (see AArrrraayyss below) consisting of the individ-
|
||||
ual words in the current command line. The words are split on
|
||||
shell metacharacters as the shell parser would separate them.
|
||||
This variable is available only in shell functions invoked by
|
||||
the programmable completion facilities (see PPrrooggrraammmmaabbllee CCoommppllee--
|
||||
ttiioonn below).
|
||||
ual words in the current command line. The line is split into
|
||||
words as rreeaaddlliinnee would split it, using CCOOMMPP__WWOORRDDBBRREEAAKKSS as
|
||||
described above. This variable is available only in shell func-
|
||||
tions invoked by the programmable completion facilities (see
|
||||
PPrrooggrraammmmaabbllee CCoommpplleettiioonn below).
|
||||
|
||||
DDIIRRSSTTAACCKK
|
||||
An array variable (see AArrrraayyss below) containing the current con-
|
||||
@@ -1743,8 +1743,8 @@ RREEDDIIRREECCTTIIOONN
|
||||
ls 2>>&&1 >> dirlist
|
||||
|
||||
directs only the standard output to file _d_i_r_l_i_s_t, because the standard
|
||||
error was duplicated as standard output before the standard output was
|
||||
redirected to _d_i_r_l_i_s_t.
|
||||
error was duplicated from the standard output before the standard out-
|
||||
put was redirected to _d_i_r_l_i_s_t.
|
||||
|
||||
BBaasshh handles several filenames specially when they are used in redirec-
|
||||
tions, as described in the following table:
|
||||
@@ -3574,8 +3574,12 @@ HHIISSTTOORRYY EEXXPPAANNSSIIOONN
|
||||
SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
Unless otherwise noted, each builtin command documented in this section
|
||||
as accepting options preceded by -- accepts ---- to signify the end of the
|
||||
options. For example, the ::, ttrruuee, ffaallssee, and tteesstt builtins do not
|
||||
accept options.
|
||||
options. The ::, ttrruuee, ffaallssee, and tteesstt builtins do not accept options
|
||||
and do not treat ---- specially. The eexxiitt, llooggoouutt, bbrreeaakk, ccoonnttiinnuuee, lleett,
|
||||
and sshhiifftt builtins accept and process arguments beginning with -- with-
|
||||
out requiring ----. Other builtins that accept arguments but are not
|
||||
specified as accepting options interpret arguments beginning with -- as
|
||||
invalid options and require ---- to prevent this interpretation.
|
||||
:: [_a_r_g_u_m_e_n_t_s]
|
||||
No effect; the command does nothing beyond expanding _a_r_g_u_m_e_n_t_s
|
||||
and performing any specified redirections. A zero exit code is
|
||||
@@ -4185,7 +4189,7 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
_p_a_t_t_e_r_n; otherwise help for all the builtins and shell control
|
||||
structures is printed.
|
||||
--dd Display a short description of each _p_a_t_t_e_r_n
|
||||
--mm Display the description of each _p_a_t_t_e_r_n in a manpage-like
|
||||
--mm Display the description of each _p_a_t_t_e_r_n in a manpage-like
|
||||
format
|
||||
--ss Display only a short usage synopsis for each _p_a_t_t_e_r_n
|
||||
The return status is 0 unless no command matches _p_a_t_t_e_r_n.
|
||||
@@ -4406,7 +4410,7 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
occurs while reading the name of the current directory or an
|
||||
invalid option is supplied.
|
||||
|
||||
rreeaadd [--eerrss] [--aa _a_n_a_m_e] [--dd _d_e_l_i_m] [-- _t_e_x_t] [--nn _n_c_h_a_r_s] [--pp _p_r_o_m_p_t] [--tt
|
||||
rreeaadd [--eerrss] [--aa _a_n_a_m_e] [--dd _d_e_l_i_m] [--ii _t_e_x_t] [--nn _n_c_h_a_r_s] [--pp _p_r_o_m_p_t] [--tt
|
||||
_t_i_m_e_o_u_t] [--uu _f_d] [_n_a_m_e ...]
|
||||
One line is read from the standard input, or from the file
|
||||
descriptor _f_d supplied as an argument to the --uu option, and the
|
||||
@@ -4511,32 +4515,37 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--bb Report the status of terminated background jobs immedi-
|
||||
ately, rather than before the next primary prompt. This
|
||||
is effective only when job control is enabled.
|
||||
--ee Exit immediately if a _s_i_m_p_l_e _c_o_m_m_a_n_d (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
--ee Exit immediately if a _p_i_p_e_l_i_n_e (which may consist of a
|
||||
single _s_i_m_p_l_e _c_o_m_m_a_n_d), a _s_u_b_s_h_e_l_l command enclosed in
|
||||
parentheses, or one of the commands executed as part of
|
||||
a command list enclosed by braces (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
above) exits with a non-zero status. The shell does not
|
||||
exit if the command that fails is part of the command
|
||||
list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test in an iiff statement, part of a command
|
||||
executed in a &&&& or |||| list, any command in a pipeline
|
||||
but the last, or if the command's return value is being
|
||||
inverted via !!. Failing simple commands that are part
|
||||
of shell functions or command lists enclosed in braces
|
||||
or parentheses satisfying the above conditions do not
|
||||
cause the shell to exit. A trap on EERRRR, if set, is exe-
|
||||
cuted before the shell exits.
|
||||
exit if the command that fails is part of the command
|
||||
list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test following the iiff or eelliiff reserved
|
||||
words, part of any command executed in a &&&& or |||| list
|
||||
except the command following the final &&&& or ||||, any
|
||||
command in a pipeline but the last, or if the command's
|
||||
return value is being inverted with !!. A trap on EERRRR,
|
||||
if set, is executed before the shell exits. This option
|
||||
applies to the shell environment and each subshell envi-
|
||||
ronment separately (see CCOOMMMMAANNDD EEXXEECCUUTTIIOONN EENNVVIIRROONNMMEENNTT
|
||||
above), and may cause subshells to exit before executing
|
||||
all the commands in the subshell.
|
||||
--ff Disable pathname expansion.
|
||||
--hh Remember the location of commands as they are looked up
|
||||
--hh Remember the location of commands as they are looked up
|
||||
for execution. This is enabled by default.
|
||||
--kk All arguments in the form of assignment statements are
|
||||
placed in the environment for a command, not just those
|
||||
--kk All arguments in the form of assignment statements are
|
||||
placed in the environment for a command, not just those
|
||||
that precede the command name.
|
||||
--mm Monitor mode. Job control is enabled. This option is
|
||||
on by default for interactive shells on systems that
|
||||
support it (see JJOOBB CCOONNTTRROOLL above). Background pro-
|
||||
cesses run in a separate process group and a line con-
|
||||
taining their exit status is printed upon their comple-
|
||||
--mm Monitor mode. Job control is enabled. This option is
|
||||
on by default for interactive shells on systems that
|
||||
support it (see JJOOBB CCOONNTTRROOLL above). Background pro-
|
||||
cesses run in a separate process group and a line con-
|
||||
taining their exit status is printed upon their comple-
|
||||
tion.
|
||||
--nn Read commands but do not execute them. This may be used
|
||||
to check a shell script for syntax errors. This is
|
||||
to check a shell script for syntax errors. This is
|
||||
ignored by interactive shells.
|
||||
--oo _o_p_t_i_o_n_-_n_a_m_e
|
||||
The _o_p_t_i_o_n_-_n_a_m_e can be one of the following:
|
||||
@@ -4544,10 +4553,10 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
Same as --aa.
|
||||
bbrraacceeeexxppaanndd
|
||||
Same as --BB.
|
||||
eemmaaccss Use an emacs-style command line editing inter-
|
||||
eemmaaccss Use an emacs-style command line editing inter-
|
||||
face. This is enabled by default when the shell
|
||||
is interactive, unless the shell is started with
|
||||
the ----nnooeeddiittiinngg option. This also affects the
|
||||
the ----nnooeeddiittiinngg option. This also affects the
|
||||
editing interface used for rreeaadd --ee.
|
||||
eerrrrttrraaccee
|
||||
Same as --EE.
|
||||
@@ -4561,8 +4570,8 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
HHIISSTTOORRYY. This option is on by default in inter-
|
||||
active shells.
|
||||
iiggnnoorreeeeooff
|
||||
The effect is as if the shell command
|
||||
``IGNOREEOF=10'' had been executed (see SShheellll
|
||||
The effect is as if the shell command
|
||||
``IGNOREEOF=10'' had been executed (see SShheellll
|
||||
VVaarriiaabblleess above).
|
||||
kkeeyywwoorrdd Same as --kk.
|
||||
mmoonniittoorr Same as --mm.
|
||||
@@ -4577,213 +4586,213 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
pphhyyssiiccaall
|
||||
Same as --PP.
|
||||
ppiippeeffaaiill
|
||||
If set, the return value of a pipeline is the
|
||||
value of the last (rightmost) command to exit
|
||||
with a non-zero status, or zero if all commands
|
||||
in the pipeline exit successfully. This option
|
||||
If set, the return value of a pipeline is the
|
||||
value of the last (rightmost) command to exit
|
||||
with a non-zero status, or zero if all commands
|
||||
in the pipeline exit successfully. This option
|
||||
is disabled by default.
|
||||
ppoossiixx Change the behavior of bbaasshh where the default
|
||||
operation differs from the POSIX standard to
|
||||
ppoossiixx Change the behavior of bbaasshh where the default
|
||||
operation differs from the POSIX standard to
|
||||
match the standard (_p_o_s_i_x _m_o_d_e).
|
||||
pprriivviilleeggeedd
|
||||
Same as --pp.
|
||||
vveerrbboossee Same as --vv.
|
||||
vvii Use a vi-style command line editing interface.
|
||||
vvii Use a vi-style command line editing interface.
|
||||
This also affects the editing interface used for
|
||||
rreeaadd --ee.
|
||||
xxttrraaccee Same as --xx.
|
||||
If --oo is supplied with no _o_p_t_i_o_n_-_n_a_m_e, the values of the
|
||||
current options are printed. If ++oo is supplied with no
|
||||
_o_p_t_i_o_n_-_n_a_m_e, a series of sseett commands to recreate the
|
||||
current option settings is displayed on the standard
|
||||
current options are printed. If ++oo is supplied with no
|
||||
_o_p_t_i_o_n_-_n_a_m_e, a series of sseett commands to recreate the
|
||||
current option settings is displayed on the standard
|
||||
output.
|
||||
--pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and
|
||||
$$BBAASSHH__EENNVV files are not processed, shell functions are
|
||||
not inherited from the environment, and the SSHHEELLLLOOPPTTSS,
|
||||
CCDDPPAATTHH, and GGLLOOBBIIGGNNOORREE variables, if they appear in the
|
||||
environment, are ignored. If the shell is started with
|
||||
--pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and
|
||||
$$BBAASSHH__EENNVV files are not processed, shell functions are
|
||||
not inherited from the environment, and the SSHHEELLLLOOPPTTSS,
|
||||
CCDDPPAATTHH, and GGLLOOBBIIGGNNOORREE variables, if they appear in the
|
||||
environment, are ignored. If the shell is started with
|
||||
the effective user (group) id not equal to the real user
|
||||
(group) id, and the --pp option is not supplied, these
|
||||
actions are taken and the effective user id is set to
|
||||
the real user id. If the --pp option is supplied at
|
||||
startup, the effective user id is not reset. Turning
|
||||
this option off causes the effective user and group ids
|
||||
(group) id, and the --pp option is not supplied, these
|
||||
actions are taken and the effective user id is set to
|
||||
the real user id. If the --pp option is supplied at
|
||||
startup, the effective user id is not reset. Turning
|
||||
this option off causes the effective user and group ids
|
||||
to be set to the real user and group ids.
|
||||
--tt Exit after reading and executing one command.
|
||||
--uu Treat unset variables as an error when performing param-
|
||||
eter expansion. If expansion is attempted on an unset
|
||||
eter expansion. If expansion is attempted on an unset
|
||||
variable, the shell prints an error message, and, if not
|
||||
interactive, exits with a non-zero status.
|
||||
--vv Print shell input lines as they are read.
|
||||
--xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee
|
||||
--xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee
|
||||
command, sseelleecctt command, or arithmetic ffoorr command, dis-
|
||||
play the expanded value of PPSS44, followed by the command
|
||||
play the expanded value of PPSS44, followed by the command
|
||||
and its expanded arguments or associated word list.
|
||||
--BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn
|
||||
--BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn
|
||||
above). This is on by default.
|
||||
--CC If set, bbaasshh does not overwrite an existing file with
|
||||
the >>, >>&&, and <<>> redirection operators. This may be
|
||||
--CC If set, bbaasshh does not overwrite an existing file with
|
||||
the >>, >>&&, and <<>> redirection operators. This may be
|
||||
overridden when creating output files by using the redi-
|
||||
rection operator >>|| instead of >>.
|
||||
--EE If set, any trap on EERRRR is inherited by shell functions,
|
||||
command substitutions, and commands executed in a sub-
|
||||
shell environment. The EERRRR trap is normally not inher-
|
||||
command substitutions, and commands executed in a sub-
|
||||
shell environment. The EERRRR trap is normally not inher-
|
||||
ited in such cases.
|
||||
--HH Enable !! style history substitution. This option is on
|
||||
by default when the shell is interactive.
|
||||
--PP If set, the shell does not follow symbolic links when
|
||||
executing commands such as ccdd that change the current
|
||||
--PP If set, the shell does not follow symbolic links when
|
||||
executing commands such as ccdd that change the current
|
||||
working directory. It uses the physical directory
|
||||
structure instead. By default, bbaasshh follows the logical
|
||||
chain of directories when performing commands which
|
||||
chain of directories when performing commands which
|
||||
change the current directory.
|
||||
--TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by
|
||||
shell functions, command substitutions, and commands
|
||||
executed in a subshell environment. The DDEEBBUUGG and
|
||||
--TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by
|
||||
shell functions, command substitutions, and commands
|
||||
executed in a subshell environment. The DDEEBBUUGG and
|
||||
RREETTUURRNN traps are normally not inherited in such cases.
|
||||
---- If no arguments follow this option, then the positional
|
||||
---- If no arguments follow this option, then the positional
|
||||
parameters are unset. Otherwise, the positional parame-
|
||||
ters are set to the _a_r_gs, even if some of them begin
|
||||
ters are set to the _a_r_gs, even if some of them begin
|
||||
with a --.
|
||||
-- Signal the end of options, cause all remaining _a_r_gs to
|
||||
-- Signal the end of options, cause all remaining _a_r_gs to
|
||||
be assigned to the positional parameters. The --xx and --vv
|
||||
options are turned off. If there are no _a_r_gs, the posi-
|
||||
tional parameters remain unchanged.
|
||||
|
||||
The options are off by default unless otherwise noted. Using +
|
||||
rather than - causes these options to be turned off. The
|
||||
options can also be specified as arguments to an invocation of
|
||||
the shell. The current set of options may be found in $$--. The
|
||||
The options are off by default unless otherwise noted. Using +
|
||||
rather than - causes these options to be turned off. The
|
||||
options can also be specified as arguments to an invocation of
|
||||
the shell. The current set of options may be found in $$--. The
|
||||
return status is always true unless an invalid option is encoun-
|
||||
tered.
|
||||
|
||||
sshhiifftt [_n]
|
||||
The positional parameters from _n+1 ... are renamed to $$11 ........
|
||||
Parameters represented by the numbers $$## down to $$##-_n+1 are
|
||||
unset. _n must be a non-negative number less than or equal to
|
||||
$$##. If _n is 0, no parameters are changed. If _n is not given,
|
||||
it is assumed to be 1. If _n is greater than $$##, the positional
|
||||
parameters are not changed. The return status is greater than
|
||||
The positional parameters from _n+1 ... are renamed to $$11 ........
|
||||
Parameters represented by the numbers $$## down to $$##-_n+1 are
|
||||
unset. _n must be a non-negative number less than or equal to
|
||||
$$##. If _n is 0, no parameters are changed. If _n is not given,
|
||||
it is assumed to be 1. If _n is greater than $$##, the positional
|
||||
parameters are not changed. The return status is greater than
|
||||
zero if _n is greater than $$## or less than zero; otherwise 0.
|
||||
|
||||
sshhoopptt [--ppqqssuu] [--oo] [_o_p_t_n_a_m_e ...]
|
||||
Toggle the values of variables controlling optional shell behav-
|
||||
ior. With no options, or with the --pp option, a list of all set-
|
||||
table options is displayed, with an indication of whether or not
|
||||
each is set. The --pp option causes output to be displayed in a
|
||||
form that may be reused as input. Other options have the fol-
|
||||
each is set. The --pp option causes output to be displayed in a
|
||||
form that may be reused as input. Other options have the fol-
|
||||
lowing meanings:
|
||||
--ss Enable (set) each _o_p_t_n_a_m_e.
|
||||
--uu Disable (unset) each _o_p_t_n_a_m_e.
|
||||
--qq Suppresses normal output (quiet mode); the return status
|
||||
--qq Suppresses normal output (quiet mode); the return status
|
||||
indicates whether the _o_p_t_n_a_m_e is set or unset. If multi-
|
||||
ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta-
|
||||
tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other-
|
||||
ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta-
|
||||
tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other-
|
||||
wise.
|
||||
--oo Restricts the values of _o_p_t_n_a_m_e to be those defined for
|
||||
--oo Restricts the values of _o_p_t_n_a_m_e to be those defined for
|
||||
the --oo option to the sseett builtin.
|
||||
|
||||
If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, the dis-
|
||||
If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, the dis-
|
||||
play is limited to those options which are set or unset, respec-
|
||||
tively. Unless otherwise noted, the sshhoopptt options are disabled
|
||||
tively. Unless otherwise noted, the sshhoopptt options are disabled
|
||||
(unset) by default.
|
||||
|
||||
The return status when listing options is zero if all _o_p_t_n_a_m_e_s
|
||||
are enabled, non-zero otherwise. When setting or unsetting
|
||||
options, the return status is zero unless an _o_p_t_n_a_m_e is not a
|
||||
The return status when listing options is zero if all _o_p_t_n_a_m_e_s
|
||||
are enabled, non-zero otherwise. When setting or unsetting
|
||||
options, the return status is zero unless an _o_p_t_n_a_m_e is not a
|
||||
valid shell option.
|
||||
|
||||
The list of sshhoopptt options is:
|
||||
|
||||
aauuttooccdd If set, a command name that is the name of a directory
|
||||
is executed as if it were the argument to the ccdd com-
|
||||
aauuttooccdd If set, a command name that is the name of a directory
|
||||
is executed as if it were the argument to the ccdd com-
|
||||
mand. This option is only used by interactive shells.
|
||||
ccddaabbllee__vvaarrss
|
||||
If set, an argument to the ccdd builtin command that is
|
||||
not a directory is assumed to be the name of a variable
|
||||
If set, an argument to the ccdd builtin command that is
|
||||
not a directory is assumed to be the name of a variable
|
||||
whose value is the directory to change to.
|
||||
ccddssppeellll If set, minor errors in the spelling of a directory com-
|
||||
ponent in a ccdd command will be corrected. The errors
|
||||
ponent in a ccdd command will be corrected. The errors
|
||||
checked for are transposed characters, a missing charac-
|
||||
ter, and one character too many. If a correction is
|
||||
found, the corrected file name is printed, and the com-
|
||||
mand proceeds. This option is only used by interactive
|
||||
ter, and one character too many. If a correction is
|
||||
found, the corrected file name is printed, and the com-
|
||||
mand proceeds. This option is only used by interactive
|
||||
shells.
|
||||
cchheecckkhhaasshh
|
||||
If set, bbaasshh checks that a command found in the hash ta-
|
||||
ble exists before trying to execute it. If a hashed
|
||||
command no longer exists, a normal path search is per-
|
||||
ble exists before trying to execute it. If a hashed
|
||||
command no longer exists, a normal path search is per-
|
||||
formed.
|
||||
cchheecckkjjoobbss
|
||||
If set, bbaasshh lists the status of any stopped and running
|
||||
jobs before exiting an interactive shell. If any jobs
|
||||
jobs before exiting an interactive shell. If any jobs
|
||||
are running, this causes the exit to be deferred until a
|
||||
second exit is attempted without an intervening command
|
||||
(see JJOOBB CCOONNTTRROOLL above). The shell always postpones
|
||||
second exit is attempted without an intervening command
|
||||
(see JJOOBB CCOONNTTRROOLL above). The shell always postpones
|
||||
exiting if any jobs are stopped.
|
||||
cchheecckkwwiinnssiizzee
|
||||
If set, bbaasshh checks the window size after each command
|
||||
and, if necessary, updates the values of LLIINNEESS and CCOOLL--
|
||||
If set, bbaasshh checks the window size after each command
|
||||
and, if necessary, updates the values of LLIINNEESS and CCOOLL--
|
||||
UUMMNNSS.
|
||||
ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple-
|
||||
line command in the same history entry. This allows
|
||||
ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple-
|
||||
line command in the same history entry. This allows
|
||||
easy re-editing of multi-line commands.
|
||||
ccoommppaatt3311
|
||||
If set, bbaasshh changes its behavior to that of version 3.1
|
||||
with respect to quoted arguments to the conditional com-
|
||||
mand's =~ operator.
|
||||
ddiirrssppeellll
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
tially supplied does not exist.
|
||||
ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in
|
||||
ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in
|
||||
the results of pathname expansion.
|
||||
eexxeeccffaaiill
|
||||
If set, a non-interactive shell will not exit if it can-
|
||||
not execute the file specified as an argument to the
|
||||
eexxeecc builtin command. An interactive shell does not
|
||||
not execute the file specified as an argument to the
|
||||
eexxeecc builtin command. An interactive shell does not
|
||||
exit if eexxeecc fails.
|
||||
eexxppaanndd__aalliiaasseess
|
||||
If set, aliases are expanded as described above under
|
||||
If set, aliases are expanded as described above under
|
||||
AALLIIAASSEESS. This option is enabled by default for interac-
|
||||
tive shells.
|
||||
eexxttddeebbuugg
|
||||
If set, behavior intended for use by debuggers is
|
||||
If set, behavior intended for use by debuggers is
|
||||
enabled:
|
||||
11.. The --FF option to the ddeeccllaarree builtin displays the
|
||||
source file name and line number corresponding to
|
||||
each function name supplied as an argument.
|
||||
22.. If the command run by the DDEEBBUUGG trap returns a
|
||||
non-zero value, the next command is skipped and
|
||||
22.. If the command run by the DDEEBBUUGG trap returns a
|
||||
non-zero value, the next command is skipped and
|
||||
not executed.
|
||||
33.. If the command run by the DDEEBBUUGG trap returns a
|
||||
value of 2, and the shell is executing in a sub-
|
||||
routine (a shell function or a shell script exe-
|
||||
cuted by the .. or ssoouurrccee builtins), a call to
|
||||
33.. If the command run by the DDEEBBUUGG trap returns a
|
||||
value of 2, and the shell is executing in a sub-
|
||||
routine (a shell function or a shell script exe-
|
||||
cuted by the .. or ssoouurrccee builtins), a call to
|
||||
rreettuurrnn is simulated.
|
||||
44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described
|
||||
44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described
|
||||
in their descriptions above.
|
||||
55.. Function tracing is enabled: command substitu-
|
||||
55.. Function tracing is enabled: command substitu-
|
||||
tion, shell functions, and subshells invoked with
|
||||
(( _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 ((
|
||||
66.. Error tracing is enabled: command substitution,
|
||||
shell functions, and subshells invoked with ((
|
||||
_c_o_m_m_a_n_d )) inherit the EERRRROORR trap.
|
||||
eexxttgglloobb If set, the extended pattern matching features described
|
||||
above under PPaatthhnnaammee EExxppaannssiioonn are enabled.
|
||||
eexxttqquuoottee
|
||||
If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed
|
||||
within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double
|
||||
If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed
|
||||
within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double
|
||||
quotes. This option is enabled by default.
|
||||
ffaaiillgglloobb
|
||||
If set, patterns which fail to match filenames during
|
||||
If set, patterns which fail to match filenames during
|
||||
pathname expansion result in an expansion error.
|
||||
ffoorrccee__ffiiggnnoorree
|
||||
If set, the suffixes specified by the FFIIGGNNOORREE shell
|
||||
variable cause words to be ignored when performing word
|
||||
If set, the suffixes specified by the FFIIGGNNOORREE shell
|
||||
variable cause words to be ignored when performing word
|
||||
completion even if the ignored words are the only possi-
|
||||
ble completions. See SSHHEELLLL VVAARRIIAABBLLEESS above for a
|
||||
description of FFIIGGNNOORREE. This option is enabled by
|
||||
description of FFIIGGNNOORREE. This option is enabled by
|
||||
default.
|
||||
gglloobbssttaarr
|
||||
If set, the pattern **** used in a filename expansion con-
|
||||
@@ -4794,58 +4803,58 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
If set, shell error messages are written in the standard
|
||||
GNU error message format.
|
||||
hhiissttaappppeenndd
|
||||
If set, the history list is appended to the file named
|
||||
by the value of the HHIISSTTFFIILLEE variable when the shell
|
||||
If set, the history list is appended to the file named
|
||||
by the value of the HHIISSTTFFIILLEE variable when the shell
|
||||
exits, rather than overwriting the file.
|
||||
hhiissttrreeeeddiitt
|
||||
If set, and rreeaaddlliinnee is being used, a user is given the
|
||||
If set, and rreeaaddlliinnee is being used, a user is given the
|
||||
opportunity to re-edit a failed history substitution.
|
||||
hhiissttvveerriiffyy
|
||||
If set, and rreeaaddlliinnee is being used, the results of his-
|
||||
tory substitution are not immediately passed to the
|
||||
shell parser. Instead, the resulting line is loaded
|
||||
If set, and rreeaaddlliinnee is being used, the results of his-
|
||||
tory substitution are not immediately passed to the
|
||||
shell parser. Instead, the resulting line is loaded
|
||||
into the rreeaaddlliinnee editing buffer, allowing further modi-
|
||||
fication.
|
||||
hhoossttccoommpplleettee
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will attempt to
|
||||
perform hostname completion when a word containing a @@
|
||||
is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE
|
||||
perform hostname completion when a word containing a @@
|
||||
is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE
|
||||
above). This is enabled by default.
|
||||
hhuuppoonneexxiitt
|
||||
If set, bbaasshh will send SSIIGGHHUUPP to all jobs when an inter-
|
||||
active login shell exits.
|
||||
iinntteerraaccttiivvee__ccoommmmeennttss
|
||||
If set, allow a word beginning with ## to cause that word
|
||||
and all remaining characters on that line to be ignored
|
||||
in an interactive shell (see CCOOMMMMEENNTTSS above). This
|
||||
and all remaining characters on that line to be ignored
|
||||
in an interactive shell (see CCOOMMMMEENNTTSS above). This
|
||||
option is enabled by default.
|
||||
lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line
|
||||
lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line
|
||||
commands are saved to the history with embedded newlines
|
||||
rather than using semicolon separators where possible.
|
||||
llooggiinn__sshheellll
|
||||
The shell sets this option if it is started as a login
|
||||
shell (see IINNVVOOCCAATTIIOONN above). The value may not be
|
||||
The shell sets this option if it is started as a login
|
||||
shell (see IINNVVOOCCAATTIIOONN above). The value may not be
|
||||
changed.
|
||||
mmaaiillwwaarrnn
|
||||
If set, and a file that bbaasshh is checking for mail has
|
||||
been accessed since the last time it was checked, the
|
||||
message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis-
|
||||
If set, and a file that bbaasshh is checking for mail has
|
||||
been accessed since the last time it was checked, the
|
||||
message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis-
|
||||
played.
|
||||
nnoo__eemmppttyy__ccmmdd__ccoommpplleettiioonn
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will not
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will not
|
||||
attempt to search the PPAATTHH for possible completions when
|
||||
completion is attempted on an empty line.
|
||||
nnooccaasseegglloobb
|
||||
If set, bbaasshh matches filenames in a case-insensitive
|
||||
If set, bbaasshh matches filenames in a case-insensitive
|
||||
fashion when performing pathname expansion (see PPaatthhnnaammee
|
||||
EExxppaannssiioonn above).
|
||||
nnooccaasseemmaattcchh
|
||||
If set, bbaasshh matches patterns in a case-insensitive
|
||||
If set, bbaasshh matches patterns in a case-insensitive
|
||||
fashion when performing matching while executing ccaassee or
|
||||
[[[[ conditional commands.
|
||||
nnuullllgglloobb
|
||||
If set, bbaasshh allows patterns which match no files (see
|
||||
PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string,
|
||||
If set, bbaasshh allows patterns which match no files (see
|
||||
PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string,
|
||||
rather than themselves.
|
||||
pprrooggccoommpp
|
||||
If set, the programmable completion facilities (see PPrroo--
|
||||
@@ -4853,47 +4862,47 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
enabled by default.
|
||||
pprroommppttvvaarrss
|
||||
If set, prompt strings undergo parameter expansion, com-
|
||||
mand substitution, arithmetic expansion, and quote
|
||||
removal after being expanded as described in PPRROOMMPPTTIINNGG
|
||||
mand substitution, arithmetic expansion, and quote
|
||||
removal after being expanded as described in PPRROOMMPPTTIINNGG
|
||||
above. This option is enabled by default.
|
||||
rreessttrriicctteedd__sshheellll
|
||||
The shell sets this option if it is started in
|
||||
The shell sets this option if it is started in
|
||||
restricted mode (see RREESSTTRRIICCTTEEDD SSHHEELLLL below). The value
|
||||
may not be changed. This is not reset when the startup
|
||||
files are executed, allowing the startup files to dis-
|
||||
may not be changed. This is not reset when the startup
|
||||
files are executed, allowing the startup files to dis-
|
||||
cover whether or not a shell is restricted.
|
||||
sshhiifftt__vveerrbboossee
|
||||
If set, the sshhiifftt builtin prints an error message when
|
||||
If set, the sshhiifftt builtin prints an error message when
|
||||
the shift count exceeds the number of positional parame-
|
||||
ters.
|
||||
ssoouurrcceeppaatthh
|
||||
If set, the ssoouurrccee (..) builtin uses the value of PPAATTHH to
|
||||
find the directory containing the file supplied as an
|
||||
find the directory containing the file supplied as an
|
||||
argument. This option is enabled by default.
|
||||
xxppgg__eecchhoo
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
sequences by default.
|
||||
ssuussppeenndd [--ff]
|
||||
Suspend the execution of this shell until it receives a SSIIGGCCOONNTT
|
||||
Suspend the execution of this shell until it receives a SSIIGGCCOONNTT
|
||||
signal. A login shell cannot be suspended; the --ff option can be
|
||||
used to override this and force the suspension. The return sta-
|
||||
tus is 0 unless the shell is a login shell and --ff is not sup-
|
||||
tus is 0 unless the shell is a login shell and --ff is not sup-
|
||||
plied, or if job control is not enabled.
|
||||
tteesstt _e_x_p_r
|
||||
[[ _e_x_p_r ]]
|
||||
Return a status of 0 or 1 depending on the evaluation of the
|
||||
conditional expression _e_x_p_r. Each operator and operand must be
|
||||
a separate argument. Expressions are composed of the primaries
|
||||
described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS. tteesstt does not
|
||||
Return a status of 0 or 1 depending on the evaluation of the
|
||||
conditional expression _e_x_p_r. Each operator and operand must be
|
||||
a separate argument. Expressions are composed of the primaries
|
||||
described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS. tteesstt does not
|
||||
accept any options, nor does it accept and ignore an argument of
|
||||
---- as signifying the end of options.
|
||||
|
||||
Expressions may be combined using the following operators,
|
||||
Expressions may be combined using the following operators,
|
||||
listed in decreasing order of precedence. The evaluation
|
||||
depends on the number of arguments; see below.
|
||||
!! _e_x_p_r True if _e_x_p_r is false.
|
||||
(( _e_x_p_r ))
|
||||
Returns the value of _e_x_p_r. This may be used to override
|
||||
Returns the value of _e_x_p_r. This may be used to override
|
||||
the normal precedence of operators.
|
||||
_e_x_p_r_1 -aa _e_x_p_r_2
|
||||
True if both _e_x_p_r_1 and _e_x_p_r_2 are true.
|
||||
@@ -4910,108 +4919,108 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
null.
|
||||
2 arguments
|
||||
If the first argument is !!, the expression is true if and
|
||||
only if the second argument is null. If the first argu-
|
||||
ment is one of the unary conditional operators listed
|
||||
above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
|
||||
only if the second argument is null. If the first argu-
|
||||
ment is one of the unary conditional operators listed
|
||||
above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
|
||||
true if the unary test is true. If the first argument is
|
||||
not a valid unary conditional operator, the expression is
|
||||
false.
|
||||
3 arguments
|
||||
If the second argument is one of the binary conditional
|
||||
If the second argument is one of the binary conditional
|
||||
operators listed above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the
|
||||
result of the expression is the result of the binary test
|
||||
using the first and third arguments as operands. The --aa
|
||||
and --oo operators are considered binary operators when
|
||||
there are three arguments. If the first argument is !!,
|
||||
the value is the negation of the two-argument test using
|
||||
using the first and third arguments as operands. The --aa
|
||||
and --oo operators are considered binary operators when
|
||||
there are three arguments. If the first argument is !!,
|
||||
the value is the negation of the two-argument test using
|
||||
the second and third arguments. If the first argument is
|
||||
exactly (( and the third argument is exactly )), the result
|
||||
is the one-argument test of the second argument. Other-
|
||||
is the one-argument test of the second argument. Other-
|
||||
wise, the expression is false.
|
||||
4 arguments
|
||||
If the first argument is !!, the result is the negation of
|
||||
the three-argument expression composed of the remaining
|
||||
the three-argument expression composed of the remaining
|
||||
arguments. Otherwise, the expression is parsed and eval-
|
||||
uated according to precedence using the rules listed
|
||||
uated according to precedence using the rules listed
|
||||
above.
|
||||
5 or more arguments
|
||||
The expression is parsed and evaluated according to
|
||||
The expression is parsed and evaluated according to
|
||||
precedence using the rules listed above.
|
||||
|
||||
ttiimmeess Print the accumulated user and system times for the shell and
|
||||
ttiimmeess Print the accumulated user and system times for the shell and
|
||||
for processes run from the shell. The return status is 0.
|
||||
|
||||
ttrraapp [--llpp] [[_a_r_g] _s_i_g_s_p_e_c ...]
|
||||
The command _a_r_g is to be read and executed when the shell
|
||||
receives signal(s) _s_i_g_s_p_e_c. If _a_r_g is absent (and there is a
|
||||
single _s_i_g_s_p_e_c) or --, each specified signal is reset to its
|
||||
original disposition (the value it had upon entrance to the
|
||||
shell). If _a_r_g is the null string the signal specified by each
|
||||
_s_i_g_s_p_e_c is ignored by the shell and by the commands it invokes.
|
||||
If _a_r_g is not present and --pp has been supplied, then the trap
|
||||
commands associated with each _s_i_g_s_p_e_c are displayed. If no
|
||||
arguments are supplied or if only --pp is given, ttrraapp prints the
|
||||
list of commands associated with each signal. The --ll option
|
||||
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. 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 executed before every
|
||||
The command _a_r_g is to be read and executed when the shell
|
||||
receives signal(s) _s_i_g_s_p_e_c. If _a_r_g is absent (and there is a
|
||||
single _s_i_g_s_p_e_c) or --, each specified signal is reset to its
|
||||
original disposition (the value it had upon entrance to the
|
||||
shell). If _a_r_g is the null string the signal specified by each
|
||||
_s_i_g_s_p_e_c is ignored by the shell and by the commands it invokes.
|
||||
If _a_r_g is not present and --pp has been supplied, then the trap
|
||||
commands associated with each _s_i_g_s_p_e_c are displayed. If no
|
||||
arguments are supplied or if only --pp is given, ttrraapp prints the
|
||||
list of commands associated with each signal. The --ll option
|
||||
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. 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 executed before every
|
||||
_s_i_m_p_l_e _c_o_m_m_a_n_d, _f_o_r command, _c_a_s_e command, _s_e_l_e_c_t command, every
|
||||
arithmetic _f_o_r command, and before the first command executes in
|
||||
a shell function (see SSHHEELLLL GGRRAAMMMMAARR above). Refer to the
|
||||
description of the eexxttddeebbuugg option to the sshhoopptt builtin for
|
||||
details of its effect on the DDEEBBUUGG trap. If a _s_i_g_s_p_e_c is EERRRR,
|
||||
the command _a_r_g is executed whenever a simple command has a
|
||||
non-zero exit status, subject to the following conditions. The
|
||||
EERRRR trap is not executed if the failed command is part of the
|
||||
command list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test in an _i_f statement, part of a command executed
|
||||
in a &&&& or |||| list, or if the command's return value is being
|
||||
inverted via !!. These are the same conditions obeyed by the
|
||||
a shell function (see SSHHEELLLL GGRRAAMMMMAARR above). Refer to the
|
||||
description of the eexxttddeebbuugg option to the sshhoopptt builtin for
|
||||
details of its effect on the DDEEBBUUGG trap. If a _s_i_g_s_p_e_c is EERRRR,
|
||||
the command _a_r_g is executed whenever a simple command has a
|
||||
non-zero exit status, subject to the following conditions. The
|
||||
EERRRR trap is not executed if the failed command is part of the
|
||||
command list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test in an _i_f statement, part of a command executed
|
||||
in a &&&& or |||| list, or if the command's return value is being
|
||||
inverted via !!. These are the same conditions obeyed by the
|
||||
eerrrreexxiitt option. If a _s_i_g_s_p_e_c is RREETTUURRNN, the command _a_r_g is exe-
|
||||
cuted each time a shell function or a script executed with the ..
|
||||
or ssoouurrccee builtins finishes executing. Signals ignored upon
|
||||
entry to the shell cannot be trapped or reset. Trapped signals
|
||||
or ssoouurrccee builtins finishes executing. Signals ignored upon
|
||||
entry to the shell cannot be trapped or reset. Trapped signals
|
||||
that are not being ignored are reset to their original values in
|
||||
a child process when it is created. The return status is false
|
||||
a child process when it is created. The return status is false
|
||||
if any _s_i_g_s_p_e_c is invalid; otherwise ttrraapp returns true.
|
||||
|
||||
ttyyppee [--aaffttppPP] _n_a_m_e [_n_a_m_e ...]
|
||||
With no options, indicate how each _n_a_m_e would be interpreted if
|
||||
With no options, indicate how each _n_a_m_e would be interpreted if
|
||||
used as a command name. If the --tt option is used, ttyyppee prints a
|
||||
string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or
|
||||
_f_i_l_e if _n_a_m_e is an alias, shell reserved word, function,
|
||||
builtin, or disk file, respectively. If the _n_a_m_e is not found,
|
||||
then nothing is printed, and an exit status of false is
|
||||
returned. If the --pp option is used, ttyyppee either returns the
|
||||
string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or
|
||||
_f_i_l_e if _n_a_m_e is an alias, shell reserved word, function,
|
||||
builtin, or disk file, respectively. If the _n_a_m_e is not found,
|
||||
then nothing is printed, and an exit status of false is
|
||||
returned. If the --pp option is used, ttyyppee either returns the
|
||||
name of the disk file that would be executed if _n_a_m_e were speci-
|
||||
fied as a command name, or nothing if ``type -t name'' would not
|
||||
return _f_i_l_e. The --PP option forces a PPAATTHH search for each _n_a_m_e,
|
||||
return _f_i_l_e. The --PP option forces a PPAATTHH search for each _n_a_m_e,
|
||||
even if ``type -t name'' would not return _f_i_l_e. If a command is
|
||||
hashed, --pp and --PP print the hashed value, not necessarily the
|
||||
hashed, --pp and --PP print the hashed value, not necessarily the
|
||||
file that appears first in PPAATTHH. If the --aa option is used, ttyyppee
|
||||
prints all of the places that contain an executable named _n_a_m_e.
|
||||
This includes aliases and functions, if and only if the --pp
|
||||
option is not also used. The table of hashed commands is not
|
||||
consulted when using --aa. The --ff option suppresses shell func-
|
||||
tion lookup, as with the ccoommmmaanndd builtin. ttyyppee returns true if
|
||||
prints all of the places that contain an executable named _n_a_m_e.
|
||||
This includes aliases and functions, if and only if the --pp
|
||||
option is not also used. The table of hashed commands is not
|
||||
consulted when using --aa. The --ff option suppresses shell func-
|
||||
tion lookup, as with the ccoommmmaanndd builtin. ttyyppee returns true if
|
||||
all of the arguments are found, false if any are not found.
|
||||
|
||||
uulliimmiitt [--HHSSTTaabbccddeeffiillmmnnppqqrrssttuuvvxx [_l_i_m_i_t]]
|
||||
Provides control over the resources available to the shell and
|
||||
to processes started by it, on systems that allow such control.
|
||||
Provides control over the resources available to the shell and
|
||||
to processes started by it, on systems that allow such control.
|
||||
The --HH and --SS options specify that the hard or soft limit is set
|
||||
for the given resource. A hard limit cannot be increased by a
|
||||
non-root user once it is set; a soft limit may be increased up
|
||||
to the value of the hard limit. If neither --HH nor --SS is speci-
|
||||
for the given resource. A hard limit cannot be increased by a
|
||||
non-root user once it is set; a soft limit may be increased up
|
||||
to the value of the hard limit. If neither --HH nor --SS is speci-
|
||||
fied, both the soft and hard limits are set. The value of _l_i_m_i_t
|
||||
can be a number in the unit specified for the resource or one of
|
||||
the special values hhaarrdd, ssoofftt, or uunnlliimmiitteedd, which stand for the
|
||||
current hard limit, the current soft limit, and no limit,
|
||||
respectively. If _l_i_m_i_t is omitted, the current value of the
|
||||
soft limit of the resource is printed, unless the --HH option is
|
||||
current hard limit, the current soft limit, and no limit,
|
||||
respectively. If _l_i_m_i_t is omitted, the current value of the
|
||||
soft limit of the resource is printed, unless the --HH option is
|
||||
given. When more than one resource is specified, the limit name
|
||||
and unit are printed before the value. Other options are inter-
|
||||
preted as follows:
|
||||
@@ -5020,11 +5029,12 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--cc The maximum size of core files created
|
||||
--dd The maximum size of a process's data segment
|
||||
--ee The maximum scheduling priority ("nice")
|
||||
--ff The maximum size of files written by the shell and its
|
||||
--ff The maximum size of files written by the shell and its
|
||||
children
|
||||
--ii The maximum number of pending signals
|
||||
--ll The maximum size that may be locked into memory
|
||||
--mm The maximum resident set size
|
||||
--mm The maximum resident set size (many systems do not honor
|
||||
this limit)
|
||||
--nn The maximum number of open file descriptors (most systems
|
||||
do not allow this value to be set)
|
||||
--pp The pipe size in 512-byte blocks (this may not be set)
|
||||
@@ -5163,7 +5173,7 @@ AAUUTTHHOORRSS
|
||||
bfox@gnu.org
|
||||
|
||||
Chet Ramey, Case Western Reserve University
|
||||
chet@po.cwru.edu
|
||||
chet.ramey@case.edu
|
||||
|
||||
BBUUGG RREEPPOORRTTSS
|
||||
If you find a bug in bbaasshh,, you should report it. But first, you should
|
||||
@@ -5214,4 +5224,4 @@ BBUUGGSS
|
||||
|
||||
|
||||
|
||||
GNU Bash-4.0 2008 December 29 BASH(1)
|
||||
GNU Bash-4.0 2009 February 7 BASH(1)
|
||||
|
||||
+9
-3
@@ -6218,8 +6218,14 @@ section as accepting options preceded by
|
||||
accepts
|
||||
.B \-\-
|
||||
to signify the end of the options.
|
||||
For example, the \fB:\fP, \fBtrue\fP, \fBfalse\fP, and \fBtest\fP builtins
|
||||
do not accept options.
|
||||
The \fB:\fP, \fBtrue\fP, \fBfalse\fP, and \fBtest\fP builtins
|
||||
do not accept options and do not treat \fB\-\-\fP specially.
|
||||
The \fBexit\fP, \fBlogout\fP, \fBbreak\fP, \fBcontinue\fP, \fBlet\fP,
|
||||
and \fBshift\fP builtins accept and process arguments beginning with
|
||||
\fB\-\fP without requiring \fB\-\-\fP.
|
||||
Other builtins that accept arguments but are not specified as accepting
|
||||
options interpret arguments beginning with \fB\-\fP as invalid options and
|
||||
require \fB\-\-\fP to prevent this interpretation.
|
||||
.sp .5
|
||||
.PD 0
|
||||
.TP
|
||||
@@ -7407,7 +7413,7 @@ is printed.
|
||||
.B \-d
|
||||
Display a short description of each \fIpattern\fP
|
||||
.TP
|
||||
.B \ -m
|
||||
.B \-m
|
||||
Display the description of each \fIpattern\fP in a manpage-like format
|
||||
.TP
|
||||
.B \-s
|
||||
|
||||
+38
-23
@@ -3,7 +3,7 @@
|
||||
</HEAD>
|
||||
<BODY><TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2008 December 29<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2009 February 7<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<BR><A HREF="#index">Index</A>
|
||||
@@ -1768,8 +1768,8 @@ corresponding to each member of <B>FUNCNAME</B>.
|
||||
file where <B>${FUNCNAME[</B><I>$i</I><B>]}</B> was called
|
||||
(or <B>${BASH_LINENO[</B><I>$i-1</I><B>]}</B> if referenced within another
|
||||
shell function).
|
||||
The corresponding source file name is <B>${BASH_SOURCE[</B><I>$i</I><B>]}.
|
||||
Use LINENO</B> to obtain the current line number.
|
||||
The corresponding source file name is <B>${BASH_SOURCE[</B><I>$i</I><B>]}</B>.
|
||||
Use <B>LINENO</B> to obtain the current line number.
|
||||
<DT><B>BASH_REMATCH</B>
|
||||
|
||||
<DD>
|
||||
@@ -1885,7 +1885,7 @@ below).
|
||||
<DT><B>COMP_WORDBREAKS</B>
|
||||
|
||||
<DD>
|
||||
The set of characters that the Readline library treats as word
|
||||
The set of characters that the <B>readline</B> library treats as word
|
||||
separators when performing word completion.
|
||||
If
|
||||
<FONT SIZE=-1><B>COMP_WORDBREAKS</B>
|
||||
@@ -1898,8 +1898,8 @@ subsequently reset.
|
||||
<DD>
|
||||
An array variable (see <B>Arrays</B> below) consisting of the individual
|
||||
words in the current command line.
|
||||
The words are split on shell metacharacters as the shell parser would
|
||||
separate them.
|
||||
The line is split into words as <B>readline</B> would split it, using
|
||||
<B>COMP_WORDBREAKS</B> as described above.
|
||||
This variable is available only in shell functions invoked by the
|
||||
programmable completion facilities (see <B>Programmable Completion</B>
|
||||
below).
|
||||
@@ -4060,7 +4060,7 @@ ls 2<B>>&</B>1 <B>></B> dirlist
|
||||
directs only the standard output to file
|
||||
<I>dirlist</I>,
|
||||
|
||||
because the standard error was duplicated as standard output
|
||||
because the standard error was duplicated from the standard output
|
||||
before the standard output was redirected to
|
||||
<I>dirlist</I>.
|
||||
|
||||
@@ -8060,8 +8060,14 @@ accepts
|
||||
<B>--</B>
|
||||
|
||||
to signify the end of the options.
|
||||
For example, the <B>:</B>, <B>true</B>, <B>false</B>, and <B>test</B> builtins
|
||||
do not accept options.
|
||||
The <B>:</B>, <B>true</B>, <B>false</B>, and <B>test</B> builtins
|
||||
do not accept options and do not treat <B>--</B> specially.
|
||||
The <B>exit</B>, <B>logout</B>, <B>break</B>, <B>continue</B>, <B>let</B>,
|
||||
and <B>shift</B> builtins accept and process arguments beginning with
|
||||
<B>-</B> without requiring <B>--</B>.
|
||||
Other builtins that accept arguments but are not specified as accepting
|
||||
options interpret arguments beginning with <B>-</B> as invalid options and
|
||||
require <B>--</B> to prevent this interpretation.
|
||||
<P>
|
||||
|
||||
<DL COMPACT>
|
||||
@@ -9516,7 +9522,7 @@ is printed.
|
||||
|
||||
<DD>
|
||||
Display a short description of each <I>pattern</I>
|
||||
<DT><B> -m</B>
|
||||
<DT><B>-m</B>
|
||||
|
||||
<DD>
|
||||
Display the description of each <I>pattern</I> in a manpage-like format
|
||||
@@ -10054,7 +10060,7 @@ option is used, the pathname printed may contain symbolic links.
|
||||
The return status is 0 unless an error occurs while
|
||||
reading the name of the current directory or an
|
||||
invalid option is supplied.
|
||||
<DT><B>read</B> [<B>-ers</B>] [<B>-a</B> <I>aname</I>] [<B>-d</B> <I>delim</I>] [<B>-</B> <I>text</I>] [<B>-n</B> <I>nchars</I>] [<B>-p</B> <I>prompt</I>] [<B>-t</B> <I>timeout</I>] [<B>-u</B> <I>fd</I>] [<I>name</I> ...]<DD>
|
||||
<DT><B>read</B> [<B>-ers</B>] [<B>-a</B> <I>aname</I>] [<B>-d</B> <I>delim</I>] [<B>-i</B> <I>text</I>] [<B>-n</B> <I>nchars</I>] [<B>-p</B> <I>prompt</I>] [<B>-t</B> <I>timeout</I>] [<B>-u</B> <I>fd</I>] [<I>name</I> ...]<DD>
|
||||
One line is read from the standard input, or from the file descriptor
|
||||
<I>fd</I> supplied as an argument to the <B>-u</B> option, and the first word
|
||||
is assigned to the first
|
||||
@@ -10281,7 +10287,10 @@ effective only when job control is enabled.
|
||||
<DT><B>-e</B>
|
||||
|
||||
<DD>
|
||||
Exit immediately if a <I>simple command</I> (see
|
||||
Exit immediately if a <I>pipeline</I> (which may consist of a single
|
||||
<I>simple command</I>), a <I>subshell</I> command enclosed in parentheses,
|
||||
or one of the commands executed as part of a command list enclosed
|
||||
by braces (see
|
||||
<FONT SIZE=-1><B>SHELL GRAMMAR</B>
|
||||
|
||||
</FONT>
|
||||
@@ -10294,25 +10303,31 @@ or
|
||||
<B>until</B>
|
||||
|
||||
keyword,
|
||||
part of the test in an
|
||||
part of the test following the
|
||||
<B>if</B>
|
||||
|
||||
statement, part of a command executed in a
|
||||
or
|
||||
<B>elif</B>
|
||||
|
||||
reserved words, part of any command executed in a
|
||||
<B>&&</B>
|
||||
|
||||
or
|
||||
<B>||</B>
|
||||
|
||||
list,
|
||||
list except the command following the final <B>&&</B> or <B>||</B>,
|
||||
any command in a pipeline but the last,
|
||||
or if the command's return value is
|
||||
being inverted via
|
||||
being inverted with
|
||||
<B>!</B>.
|
||||
|
||||
Failing simple commands that are part of shell functions or command lists
|
||||
enclosed in braces or parentheses satisfying the above conditions do not
|
||||
cause the shell to exit.
|
||||
A trap on <B>ERR</B>, if set, is executed before the shell exits.
|
||||
This option applies to the shell environment and each subshell environment
|
||||
separately (see
|
||||
<B>COMMAND EXECUTION ENVIRONMENT</B>
|
||||
|
||||
above), and may cause
|
||||
subshells to exit before executing all the commands in the subshell.
|
||||
<DT><B>-f</B>
|
||||
|
||||
<DD>
|
||||
@@ -11591,7 +11606,7 @@ The maximum size that may be locked into memory
|
||||
<DT><B>-m</B>
|
||||
|
||||
<DD>
|
||||
The maximum resident set size
|
||||
The maximum resident set size (many systems do not honor this limit)
|
||||
<DT><B>-n</B>
|
||||
|
||||
<DD>
|
||||
@@ -11957,7 +11972,7 @@ Brian Fox, Free Software Foundation
|
||||
Chet Ramey, Case Western Reserve University
|
||||
<BR>
|
||||
|
||||
<A HREF="mailto:chet@po.cwru.edu">chet@po.cwru.edu</A>
|
||||
<A HREF="mailto:chet.ramey@case.edu">chet.ramey@case.edu</A>
|
||||
<A NAME="lbDG"> </A>
|
||||
<H3>BUG REPORTS</H3>
|
||||
|
||||
@@ -12055,7 +12070,7 @@ There may be only one active coprocess at a time.
|
||||
<HR>
|
||||
<TABLE WIDTH=100%>
|
||||
<TR>
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash-4.0<TH ALIGN=CENTER width=33%>2008 December 29<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
<TH ALIGN=LEFT width=33%>GNU Bash-4.0<TH ALIGN=CENTER width=33%>2009 February 7<TH ALIGN=RIGHT width=33%>BASH(1)
|
||||
</TR>
|
||||
</TABLE>
|
||||
<HR>
|
||||
@@ -12161,6 +12176,6 @@ There may be only one active coprocess at a time.
|
||||
</DL>
|
||||
<HR>
|
||||
This document was created by man2html from bash.1.<BR>
|
||||
Time: 05 February 2009 08:05:34 EST
|
||||
Time: 23 February 2009 11:56:09 EST
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
+1320
-1307
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -149,13 +149,13 @@
|
||||
@xrdef{Bash Builtins-pg}{41}
|
||||
@xrdef{Bash Builtins-snt}{Section@tie 4.2}
|
||||
@xrdef{Modifying Shell Behavior-title}{Modifying Shell Behavior}
|
||||
@xrdef{Modifying Shell Behavior-pg}{50}
|
||||
@xrdef{Modifying Shell Behavior-pg}{51}
|
||||
@xrdef{Modifying Shell Behavior-snt}{Section@tie 4.3}
|
||||
@xrdef{The Set Builtin-title}{The Set Builtin}
|
||||
@xrdef{The Set Builtin-pg}{51}
|
||||
@xrdef{The Set Builtin-snt}{Section@tie 4.3.1}
|
||||
@xrdef{The Shopt Builtin-title}{The Shopt Builtin}
|
||||
@xrdef{The Shopt Builtin-pg}{54}
|
||||
@xrdef{The Shopt Builtin-pg}{55}
|
||||
@xrdef{The Shopt Builtin-snt}{Section@tie 4.3.2}
|
||||
@xrdef{Special Builtins-title}{Special Builtins}
|
||||
@xrdef{Special Builtins-pg}{59}
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@
|
||||
\entry{eval}{36}{\code {eval}}
|
||||
\entry{exec}{36}{\code {exec}}
|
||||
\entry{exit}{36}{\code {exit}}
|
||||
\entry{export}{36}{\code {export}}
|
||||
\entry{export}{37}{\code {export}}
|
||||
\entry{getopts}{37}{\code {getopts}}
|
||||
\entry{hash}{37}{\code {hash}}
|
||||
\entry{pwd}{38}{\code {pwd}}
|
||||
@@ -21,7 +21,7 @@
|
||||
\entry{unset}{41}{\code {unset}}
|
||||
\entry{alias}{41}{\code {alias}}
|
||||
\entry{bind}{41}{\code {bind}}
|
||||
\entry{builtin}{42}{\code {builtin}}
|
||||
\entry{builtin}{43}{\code {builtin}}
|
||||
\entry{caller}{43}{\code {caller}}
|
||||
\entry{command}{43}{\code {command}}
|
||||
\entry{declare}{43}{\code {declare}}
|
||||
|
||||
+2
-2
@@ -10,7 +10,7 @@
|
||||
\entry {\code {bg}}{90}
|
||||
\entry {\code {bind}}{41}
|
||||
\entry {\code {break}}{35}
|
||||
\entry {\code {builtin}}{42}
|
||||
\entry {\code {builtin}}{43}
|
||||
\initial {C}
|
||||
\entry {\code {caller}}{43}
|
||||
\entry {\code {cd}}{36}
|
||||
@@ -29,7 +29,7 @@
|
||||
\entry {\code {eval}}{36}
|
||||
\entry {\code {exec}}{36}
|
||||
\entry {\code {exit}}{36}
|
||||
\entry {\code {export}}{36}
|
||||
\entry {\code {export}}{37}
|
||||
\initial {F}
|
||||
\entry {\code {fc}}{122}
|
||||
\entry {\code {fg}}{90}
|
||||
|
||||
Binary file not shown.
+36
-21
@@ -1,6 +1,6 @@
|
||||
<HTML>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<!-- Created on February, 5 2009 by texi2html 1.64 -->
|
||||
<!-- Created on February, 23 2009 by texi2html 1.64 -->
|
||||
<!--
|
||||
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
|
||||
Karl Berry <karl@freefriends.org>
|
||||
@@ -33,10 +33,10 @@ Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
|
||||
<H1>Bash Reference Manual</H1></P><P>
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 4.0, 29 December 2008).
|
||||
the Bash shell (version 4.0, 13 February 2009).
|
||||
</P><P>
|
||||
|
||||
This is Edition 4.0, last updated 29 December 2008,
|
||||
This is Edition 4.0, last updated 13 February 2009,
|
||||
of <CITE>The GNU Bash Reference Manual</CITE>,
|
||||
for <CODE>Bash</CODE>, Version 4.0.
|
||||
</P><P>
|
||||
@@ -2806,7 +2806,7 @@ the command
|
||||
(file descriptor 2) to the file <VAR>dirlist</VAR>, while the command
|
||||
<TABLE><tr><td> </td><td class=example><pre>ls 2>&1 > <VAR>dirlist</VAR>
|
||||
</pre></td></tr></table>directs only the standard output to file <VAR>dirlist</VAR>,
|
||||
because the standard error was duplicated as standard output
|
||||
because the standard error was made a copy of the standard output
|
||||
before the standard output was redirected to <VAR>dirlist</VAR>.
|
||||
</P><P>
|
||||
|
||||
@@ -3785,8 +3785,14 @@ Many of the builtins have been extended by POSIX or Bash.
|
||||
Unless otherwise noted, each builtin command documented as accepting
|
||||
options preceded by <SAMP>`-'</SAMP> accepts <SAMP>`--'</SAMP>
|
||||
to signify the end of the options.
|
||||
For example, the <CODE>:</CODE>, <CODE>true</CODE>, <CODE>false</CODE>, and <CODE>test</CODE>
|
||||
builtins do not accept options.
|
||||
The <CODE>:</CODE>, <CODE>true</CODE>, <CODE>false</CODE>, and <CODE>test</CODE>
|
||||
builtins do not accept options and do not treat <SAMP>`--'</SAMP> specially.
|
||||
The <CODE>exit</CODE>, <CODE>logout</CODE>, <CODE>break</CODE>, <CODE>continue</CODE>, <CODE>let</CODE>,
|
||||
and <CODE>shift</CODE> builtins accept and process arguments beginning
|
||||
with <SAMP>`-'</SAMP> without requiring <SAMP>`--'</SAMP>.
|
||||
Other builtins that accept arguments but are not specified as accepting
|
||||
options interpret arguments beginning with <SAMP>`-'</SAMP> as invalid options and
|
||||
require <SAMP>`--'</SAMP> to prevent this interpretation.
|
||||
</P><P>
|
||||
|
||||
<A NAME="Bourne Shell Builtins"></A>
|
||||
@@ -4215,7 +4221,7 @@ is executed whenever a simple command has a non-zero exit status,
|
||||
subject to the following conditions.
|
||||
The <CODE>ERR</CODE> trap is not executed if the failed command is part of the
|
||||
command list immediately following an <CODE>until</CODE> or <CODE>while</CODE> keyword,
|
||||
part of the test in an <CODE>if</CODE> statement,
|
||||
part of the test following the <CODE>if</CODE> or <CODE>elif</CODE> reserved words,
|
||||
part of a command executed in a <CODE>&&</CODE> or <CODE>||</CODE> list,
|
||||
or if the command's return
|
||||
status is being inverted using <CODE>!</CODE>.
|
||||
@@ -4994,11 +5000,12 @@ option is given, it is interpreted as follows:
|
||||
<P>
|
||||
|
||||
<DT><CODE>-m</CODE>
|
||||
<DD>The maximum resident set size.
|
||||
<DD>The maximum resident set size (many systems do not honor this limit).
|
||||
<P>
|
||||
|
||||
<DT><CODE>-n</CODE>
|
||||
<DD>The maximum number of open file descriptors.
|
||||
<DD>The maximum number of open file descriptors (most systems do not
|
||||
allow this value to be set).
|
||||
<P>
|
||||
|
||||
<DT><CODE>-p</CODE>
|
||||
@@ -5151,19 +5158,27 @@ immediately, rather than before printing the next primary prompt.
|
||||
<P>
|
||||
|
||||
<DT><CODE>-e</CODE>
|
||||
<DD>Exit immediately if a simple command (see section <A HREF="bashref.html#SEC16">3.2.1 Simple Commands</A>) exits
|
||||
with a non-zero status, unless the command that fails is part of the
|
||||
<DD>Exit immediately if a pipeline (see section <A HREF="bashref.html#SEC17">3.2.2 Pipelines</A>), which may consist
|
||||
of a single simple command (see section <A HREF="bashref.html#SEC16">3.2.1 Simple Commands</A>),
|
||||
a subshell command enclosed in parentheses (see section <A HREF="bashref.html#SEC22">3.2.4.3 Grouping Commands</A>),
|
||||
or one of the commands executed as part of a command list enclosed
|
||||
by braces (see section <A HREF="bashref.html#SEC22">3.2.4.3 Grouping Commands</A>)
|
||||
returns a non-zero status.
|
||||
The shell does not exit if the command that fails is part of the
|
||||
command list immediately following a <CODE>while</CODE> or <CODE>until</CODE> keyword,
|
||||
part of the test in an <CODE>if</CODE> statement,
|
||||
part of a command executed in a <CODE>&&</CODE> or <CODE>||b</CODE> list,
|
||||
part of any command executed in a <CODE>&&</CODE> or <CODE>||</CODE> list except
|
||||
the command following the final <CODE>&&</CODE> or <CODE>||</CODE>,
|
||||
any command in a pipeline but the last,
|
||||
or if the command's return status is being inverted using <CODE>!</CODE>.
|
||||
Failing simple commands that are part of shell functions or command lists
|
||||
enclosed in braces or parentheses satisfying the above conditions do not
|
||||
cause the shell to exit.
|
||||
or if the command's return status is being inverted with <CODE>!</CODE>.
|
||||
A trap on <CODE>ERR</CODE>, if set, is executed before the shell exits.
|
||||
<P>
|
||||
|
||||
This option applies to the shell environment and each subshell environment
|
||||
separately (see section <A HREF="bashref.html#SEC53">3.7.3 Command Execution Environment</A>), and may cause
|
||||
subshells to exit before executing all the commands in the subshell.
|
||||
</P><P>
|
||||
|
||||
<DT><CODE>-f</CODE>
|
||||
<DD>Disable file name generation (globbing).
|
||||
<P>
|
||||
@@ -6246,8 +6261,8 @@ even if it is subsequently reset.
|
||||
<DD><A NAME="IDX177"></A>
|
||||
An array variable consisting of the individual
|
||||
words in the current command line.
|
||||
The words are split on shell metacharacters as the shell parser would
|
||||
separate them.
|
||||
The line is split into words as Readline would split it, using
|
||||
<CODE>COMP_WORDBREAKS</CODE> as described above.
|
||||
This variable is available only in shell functions invoked by the
|
||||
programmable completion facilities (see section <A HREF="bashref.html#SEC117">8.6 Programmable Completion</A>).
|
||||
<P>
|
||||
@@ -12894,7 +12909,7 @@ the template it provides for filing a bug report.
|
||||
</P><P>
|
||||
|
||||
Please send all reports concerning this manual to
|
||||
<A HREF="mailto:chet@po.CWRU.Edu">chet@po.CWRU.Edu</A>.
|
||||
<A HREF="mailto:chet.ramey@case.edu">chet.ramey@case.edu</A>.
|
||||
</P><P>
|
||||
|
||||
<A NAME="Major Differences From The Bourne Shell"></A>
|
||||
@@ -15785,7 +15800,7 @@ to permit their use in free software.
|
||||
<TD VALIGN="MIDDLE" ALIGN="LEFT">[<A HREF="bashref.html#SEC_About"> ? </A>]</TD>
|
||||
</TR></TABLE>
|
||||
<H1>About this document</H1>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>February, 5 2009</I>
|
||||
This document was generated by <I>Chet Ramey</I> on <I>February, 23 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
<P></P>
|
||||
@@ -15947,7 +15962,7 @@ the following structure:
|
||||
<BR>
|
||||
<FONT SIZE="-1">
|
||||
This document was generated
|
||||
by <I>Chet Ramey</I> on <I>February, 5 2009</I>
|
||||
by <I>Chet Ramey</I> on <I>February, 23 2009</I>
|
||||
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
|
||||
"><I>texi2html</I></A>
|
||||
|
||||
|
||||
+187
-171
@@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 4.13 from
|
||||
/Users/chet/src/bash/src/doc/bashref.texi.
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 4.0, 29 December 2008).
|
||||
the Bash shell (version 4.0, 13 February 2009).
|
||||
|
||||
This is Edition 4.0, last updated 29 December 2008, of `The GNU Bash
|
||||
This is Edition 4.0, last updated 13 February 2009, of `The GNU Bash
|
||||
Reference Manual', for `Bash', Version 4.0.
|
||||
|
||||
Copyright (C) 1988-2009 Free Software Foundation, Inc.
|
||||
@@ -38,9 +38,9 @@ Bash Features
|
||||
*************
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 4.0, 29 December 2008).
|
||||
the Bash shell (version 4.0, 13 February 2009).
|
||||
|
||||
This is Edition 4.0, last updated 29 December 2008, of `The GNU Bash
|
||||
This is Edition 4.0, last updated 13 February 2009, of `The GNU Bash
|
||||
Reference Manual', for `Bash', Version 4.0.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
@@ -1826,8 +1826,8 @@ the command
|
||||
(file descriptor 2) to the file DIRLIST, while the command
|
||||
ls 2>&1 > DIRLIST
|
||||
directs only the standard output to file DIRLIST, because the
|
||||
standard error was duplicated as standard output before the standard
|
||||
output was redirected to DIRLIST.
|
||||
standard error was made a copy of the standard output before the
|
||||
standard output was redirected to DIRLIST.
|
||||
|
||||
Bash handles several filenames specially when they are used in
|
||||
redirections, as described in the following table:
|
||||
@@ -2399,8 +2399,13 @@ Completion Builtins::).
|
||||
|
||||
Unless otherwise noted, each builtin command documented as accepting
|
||||
options preceded by `-' accepts `--' to signify the end of the options.
|
||||
For example, the `:', `true', `false', and `test' builtins do not
|
||||
accept options.
|
||||
The `:', `true', `false', and `test' builtins do not accept options and
|
||||
do not treat `--' specially. The `exit', `logout', `break',
|
||||
`continue', `let', and `shift' builtins accept and process arguments
|
||||
beginning with `-' without requiring `--'. Other builtins that accept
|
||||
arguments but are not specified as accepting options interpret
|
||||
arguments beginning with `-' as invalid options and require `--' to
|
||||
prevent this interpretation.
|
||||
|
||||
|
||||
File: bashref.info, Node: Bourne Shell Builtins, Next: Bash Builtins, Up: Shell Builtin Commands
|
||||
@@ -2714,12 +2719,12 @@ standard.
|
||||
subject to the following conditions. The `ERR' trap is not
|
||||
executed if the failed command is part of the command list
|
||||
immediately following an `until' or `while' keyword, part of the
|
||||
test in an `if' statement, part of a command executed in a `&&' or
|
||||
`||' list, or if the command's return status is being inverted
|
||||
using `!'. These are the same conditions obeyed by the `errexit'
|
||||
option. If a SIGSPEC is `RETURN', the command ARG is executed
|
||||
each time a shell function or a script executed with the `.' or
|
||||
`source' builtins finishes executing.
|
||||
test following the `if' or `elif' reserved words, part of a
|
||||
command executed in a `&&' or `||' list, or if the command's return
|
||||
status is being inverted using `!'. These are the same conditions
|
||||
obeyed by the `errexit' option. If a SIGSPEC is `RETURN', the
|
||||
command ARG is executed each time a shell function or a script
|
||||
executed with the `.' or `source' builtins finishes executing.
|
||||
|
||||
Signals ignored upon entry to the shell cannot be trapped or reset.
|
||||
Trapped signals that are not being ignored are reset to their
|
||||
@@ -3323,10 +3328,12 @@ POSIX standard.
|
||||
The maximum size that may be locked into memory.
|
||||
|
||||
`-m'
|
||||
The maximum resident set size.
|
||||
The maximum resident set size (many systems do not honor this
|
||||
limit).
|
||||
|
||||
`-n'
|
||||
The maximum number of open file descriptors.
|
||||
The maximum number of open file descriptors (most systems do
|
||||
not allow this value to be set).
|
||||
|
||||
`-p'
|
||||
The pipe buffer size.
|
||||
@@ -3425,18 +3432,25 @@ parameters, or to display the names and values of shell variables.
|
||||
prompt.
|
||||
|
||||
`-e'
|
||||
Exit immediately if a simple command (*note Simple
|
||||
Commands::) exits with a non-zero status, unless the command
|
||||
that fails is part of the command list immediately following
|
||||
a `while' or `until' keyword, part of the test in an `if'
|
||||
statement, part of a command executed in a `&&' or `||b' list,
|
||||
Exit immediately if a pipeline (*note Pipelines::), which may
|
||||
consist of a single simple command (*note Simple Commands::),
|
||||
a subshell command enclosed in parentheses (*note Command
|
||||
Grouping::), or one of the commands executed as part of a
|
||||
command list enclosed by braces (*note Command Grouping::)
|
||||
returns a non-zero status. The shell does not exit if the
|
||||
command that fails is part of the command list immediately
|
||||
following a `while' or `until' keyword, part of the test in
|
||||
an `if' statement, part of any command executed in a `&&' or
|
||||
`||' list except the command following the final `&&' or `||',
|
||||
any command in a pipeline but the last, or if the command's
|
||||
return status is being inverted using `!'. Failing simple
|
||||
commands that are part of shell functions or command lists
|
||||
enclosed in braces or parentheses satisfying the above
|
||||
conditions do not cause the shell to exit. A trap on `ERR',
|
||||
return status is being inverted with `!'. A trap on `ERR',
|
||||
if set, is executed before the shell exits.
|
||||
|
||||
This option applies to the shell environment and each
|
||||
subshell environment separately (*note Command Execution
|
||||
Environment::), and may cause subshells to exit before
|
||||
executing all the commands in the subshell.
|
||||
|
||||
`-f'
|
||||
Disable file name generation (globbing).
|
||||
|
||||
@@ -4186,10 +4200,11 @@ Variables::).
|
||||
|
||||
`COMP_WORDS'
|
||||
An array variable consisting of the individual words in the
|
||||
current command line. The words are split on shell metacharacters
|
||||
as the shell parser would separate them. This variable is
|
||||
available only in shell functions invoked by the programmable
|
||||
completion facilities (*note Programmable Completion::).
|
||||
current command line. The line is split into words as Readline
|
||||
would split it, using `COMP_WORDBREAKS' as described above. This
|
||||
variable is available only in shell functions invoked by the
|
||||
programmable completion facilities (*note Programmable
|
||||
Completion::).
|
||||
|
||||
`COMPREPLY'
|
||||
An array variable from which Bash reads the possible completions
|
||||
@@ -8598,7 +8613,8 @@ newsgroup `gnu.bash.bug'.
|
||||
`bashbug' inserts the first three items automatically into the template
|
||||
it provides for filing a bug report.
|
||||
|
||||
Please send all reports concerning this manual to <chet@po.CWRU.Edu>.
|
||||
Please send all reports concerning this manual to
|
||||
<chet.ramey@case.edu>.
|
||||
|
||||
|
||||
File: bashref.info, Node: Major Differences From The Bourne Shell, Next: GNU Free Documentation License, Prev: Reporting Bugs, Up: Top
|
||||
@@ -9511,7 +9527,7 @@ D.1 Index of Shell Builtin Commands
|
||||
* ulimit: Bash Builtins. (line 533)
|
||||
* umask: Bourne Shell Builtins.
|
||||
(line 327)
|
||||
* unalias: Bash Builtins. (line 619)
|
||||
* unalias: Bash Builtins. (line 621)
|
||||
* unset: Bourne Shell Builtins.
|
||||
(line 344)
|
||||
* wait: Job Control Builtins.
|
||||
@@ -9614,67 +9630,67 @@ D.3 Parameter and Variable Index
|
||||
(line 60)
|
||||
* completion-query-items: Readline Init File Syntax.
|
||||
(line 67)
|
||||
* COMPREPLY: Bash Variables. (line 172)
|
||||
* COMPREPLY: Bash Variables. (line 173)
|
||||
* convert-meta: Readline Init File Syntax.
|
||||
(line 77)
|
||||
* DIRSTACK: Bash Variables. (line 177)
|
||||
* DIRSTACK: Bash Variables. (line 178)
|
||||
* disable-completion: Readline Init File Syntax.
|
||||
(line 83)
|
||||
* editing-mode: Readline Init File Syntax.
|
||||
(line 88)
|
||||
* EMACS: Bash Variables. (line 187)
|
||||
* EMACS: Bash Variables. (line 188)
|
||||
* enable-keypad: Readline Init File Syntax.
|
||||
(line 94)
|
||||
* EUID: Bash Variables. (line 192)
|
||||
* EUID: Bash Variables. (line 193)
|
||||
* expand-tilde: Readline Init File Syntax.
|
||||
(line 99)
|
||||
* FCEDIT: Bash Variables. (line 196)
|
||||
* FIGNORE: Bash Variables. (line 200)
|
||||
* FUNCNAME: Bash Variables. (line 206)
|
||||
* GLOBIGNORE: Bash Variables. (line 215)
|
||||
* GROUPS: Bash Variables. (line 221)
|
||||
* histchars: Bash Variables. (line 227)
|
||||
* HISTCMD: Bash Variables. (line 242)
|
||||
* HISTCONTROL: Bash Variables. (line 247)
|
||||
* HISTFILE: Bash Variables. (line 263)
|
||||
* HISTFILESIZE: Bash Variables. (line 267)
|
||||
* HISTIGNORE: Bash Variables. (line 275)
|
||||
* FCEDIT: Bash Variables. (line 197)
|
||||
* FIGNORE: Bash Variables. (line 201)
|
||||
* FUNCNAME: Bash Variables. (line 207)
|
||||
* GLOBIGNORE: Bash Variables. (line 216)
|
||||
* GROUPS: Bash Variables. (line 222)
|
||||
* histchars: Bash Variables. (line 228)
|
||||
* HISTCMD: Bash Variables. (line 243)
|
||||
* HISTCONTROL: Bash Variables. (line 248)
|
||||
* HISTFILE: Bash Variables. (line 264)
|
||||
* HISTFILESIZE: Bash Variables. (line 268)
|
||||
* HISTIGNORE: Bash Variables. (line 276)
|
||||
* history-preserve-point: Readline Init File Syntax.
|
||||
(line 103)
|
||||
* history-size: Readline Init File Syntax.
|
||||
(line 109)
|
||||
* HISTSIZE: Bash Variables. (line 294)
|
||||
* HISTTIMEFORMAT: Bash Variables. (line 298)
|
||||
* HISTSIZE: Bash Variables. (line 295)
|
||||
* HISTTIMEFORMAT: Bash Variables. (line 299)
|
||||
* HOME: Bourne Shell Variables.
|
||||
(line 13)
|
||||
* horizontal-scroll-mode: Readline Init File Syntax.
|
||||
(line 114)
|
||||
* HOSTFILE: Bash Variables. (line 307)
|
||||
* HOSTNAME: Bash Variables. (line 318)
|
||||
* HOSTTYPE: Bash Variables. (line 321)
|
||||
* HOSTFILE: Bash Variables. (line 308)
|
||||
* HOSTNAME: Bash Variables. (line 319)
|
||||
* HOSTTYPE: Bash Variables. (line 322)
|
||||
* IFS: Bourne Shell Variables.
|
||||
(line 18)
|
||||
* IGNOREEOF: Bash Variables. (line 324)
|
||||
* IGNOREEOF: Bash Variables. (line 325)
|
||||
* input-meta: Readline Init File Syntax.
|
||||
(line 121)
|
||||
* INPUTRC: Bash Variables. (line 334)
|
||||
* INPUTRC: Bash Variables. (line 335)
|
||||
* isearch-terminators: Readline Init File Syntax.
|
||||
(line 128)
|
||||
* keymap: Readline Init File Syntax.
|
||||
(line 135)
|
||||
* LANG: Bash Variables. (line 338)
|
||||
* LC_ALL: Bash Variables. (line 342)
|
||||
* LC_COLLATE: Bash Variables. (line 346)
|
||||
* LC_CTYPE: Bash Variables. (line 353)
|
||||
* LANG: Bash Variables. (line 339)
|
||||
* LC_ALL: Bash Variables. (line 343)
|
||||
* LC_COLLATE: Bash Variables. (line 347)
|
||||
* LC_CTYPE: Bash Variables. (line 354)
|
||||
* LC_MESSAGES <1>: Locale Translation. (line 11)
|
||||
* LC_MESSAGES: Bash Variables. (line 358)
|
||||
* LC_NUMERIC: Bash Variables. (line 362)
|
||||
* LINENO: Bash Variables. (line 366)
|
||||
* LINES: Bash Variables. (line 370)
|
||||
* MACHTYPE: Bash Variables. (line 375)
|
||||
* LC_MESSAGES: Bash Variables. (line 359)
|
||||
* LC_NUMERIC: Bash Variables. (line 363)
|
||||
* LINENO: Bash Variables. (line 367)
|
||||
* LINES: Bash Variables. (line 371)
|
||||
* MACHTYPE: Bash Variables. (line 376)
|
||||
* MAIL: Bourne Shell Variables.
|
||||
(line 22)
|
||||
* MAILCHECK: Bash Variables. (line 379)
|
||||
* MAILCHECK: Bash Variables. (line 380)
|
||||
* MAILPATH: Bourne Shell Variables.
|
||||
(line 27)
|
||||
* mark-modified-lines: Readline Init File Syntax.
|
||||
@@ -9685,49 +9701,49 @@ D.3 Parameter and Variable Index
|
||||
(line 158)
|
||||
* meta-flag: Readline Init File Syntax.
|
||||
(line 121)
|
||||
* OLDPWD: Bash Variables. (line 387)
|
||||
* OLDPWD: Bash Variables. (line 388)
|
||||
* OPTARG: Bourne Shell Variables.
|
||||
(line 34)
|
||||
* OPTERR: Bash Variables. (line 390)
|
||||
* OPTERR: Bash Variables. (line 391)
|
||||
* OPTIND: Bourne Shell Variables.
|
||||
(line 38)
|
||||
* OSTYPE: Bash Variables. (line 394)
|
||||
* OSTYPE: Bash Variables. (line 395)
|
||||
* output-meta: Readline Init File Syntax.
|
||||
(line 165)
|
||||
* page-completions: Readline Init File Syntax.
|
||||
(line 170)
|
||||
* PATH: Bourne Shell Variables.
|
||||
(line 42)
|
||||
* PIPESTATUS: Bash Variables. (line 397)
|
||||
* POSIXLY_CORRECT: Bash Variables. (line 402)
|
||||
* PPID: Bash Variables. (line 411)
|
||||
* PROMPT_COMMAND: Bash Variables. (line 415)
|
||||
* PROMPT_DIRTRIM: Bash Variables. (line 419)
|
||||
* PIPESTATUS: Bash Variables. (line 398)
|
||||
* POSIXLY_CORRECT: Bash Variables. (line 403)
|
||||
* PPID: Bash Variables. (line 412)
|
||||
* PROMPT_COMMAND: Bash Variables. (line 416)
|
||||
* PROMPT_DIRTRIM: Bash Variables. (line 420)
|
||||
* PS1: Bourne Shell Variables.
|
||||
(line 48)
|
||||
* PS2: Bourne Shell Variables.
|
||||
(line 53)
|
||||
* PS3: Bash Variables. (line 425)
|
||||
* PS4: Bash Variables. (line 430)
|
||||
* PWD: Bash Variables. (line 436)
|
||||
* RANDOM: Bash Variables. (line 439)
|
||||
* REPLY: Bash Variables. (line 444)
|
||||
* PS3: Bash Variables. (line 426)
|
||||
* PS4: Bash Variables. (line 431)
|
||||
* PWD: Bash Variables. (line 437)
|
||||
* RANDOM: Bash Variables. (line 440)
|
||||
* REPLY: Bash Variables. (line 445)
|
||||
* revert-all-at-newline: Readline Init File Syntax.
|
||||
(line 180)
|
||||
* SECONDS: Bash Variables. (line 447)
|
||||
* SHELL: Bash Variables. (line 453)
|
||||
* SHELLOPTS: Bash Variables. (line 458)
|
||||
* SHLVL: Bash Variables. (line 467)
|
||||
* SECONDS: Bash Variables. (line 448)
|
||||
* SHELL: Bash Variables. (line 454)
|
||||
* SHELLOPTS: Bash Variables. (line 459)
|
||||
* SHLVL: Bash Variables. (line 468)
|
||||
* show-all-if-ambiguous: Readline Init File Syntax.
|
||||
(line 186)
|
||||
* show-all-if-unmodified: Readline Init File Syntax.
|
||||
(line 192)
|
||||
* TEXTDOMAIN: Locale Translation. (line 11)
|
||||
* TEXTDOMAINDIR: Locale Translation. (line 11)
|
||||
* TIMEFORMAT: Bash Variables. (line 472)
|
||||
* TMOUT: Bash Variables. (line 510)
|
||||
* TMPDIR: Bash Variables. (line 522)
|
||||
* UID: Bash Variables. (line 526)
|
||||
* TIMEFORMAT: Bash Variables. (line 473)
|
||||
* TMOUT: Bash Variables. (line 511)
|
||||
* TMPDIR: Bash Variables. (line 523)
|
||||
* UID: Bash Variables. (line 527)
|
||||
* visible-stats: Readline Init File Syntax.
|
||||
(line 201)
|
||||
|
||||
@@ -10034,92 +10050,92 @@ Node: Filename Expansion70602
|
||||
Node: Pattern Matching72742
|
||||
Node: Quote Removal76381
|
||||
Node: Redirections76676
|
||||
Node: Executing Commands84819
|
||||
Node: Simple Command Expansion85489
|
||||
Node: Command Search and Execution87419
|
||||
Node: Command Execution Environment89756
|
||||
Node: Environment92742
|
||||
Node: Exit Status94402
|
||||
Node: Signals96023
|
||||
Node: Shell Scripts97991
|
||||
Node: Shell Builtin Commands100509
|
||||
Node: Bourne Shell Builtins102186
|
||||
Node: Bash Builtins119504
|
||||
Node: Modifying Shell Behavior143695
|
||||
Node: The Set Builtin144040
|
||||
Node: The Shopt Builtin153080
|
||||
Node: Special Builtins163942
|
||||
Node: Shell Variables164921
|
||||
Node: Bourne Shell Variables165361
|
||||
Node: Bash Variables167342
|
||||
Node: Bash Features189660
|
||||
Node: Invoking Bash190543
|
||||
Node: Bash Startup Files196352
|
||||
Node: Interactive Shells201321
|
||||
Node: What is an Interactive Shell?201731
|
||||
Node: Is this Shell Interactive?202380
|
||||
Node: Interactive Shell Behavior203195
|
||||
Node: Bash Conditional Expressions206475
|
||||
Node: Shell Arithmetic210054
|
||||
Node: Aliases212800
|
||||
Node: Arrays215372
|
||||
Node: The Directory Stack219214
|
||||
Node: Directory Stack Builtins219928
|
||||
Node: Printing a Prompt222820
|
||||
Node: The Restricted Shell225572
|
||||
Node: Bash POSIX Mode227404
|
||||
Node: Job Control235257
|
||||
Node: Job Control Basics235717
|
||||
Node: Job Control Builtins240330
|
||||
Node: Job Control Variables244694
|
||||
Node: Command Line Editing245852
|
||||
Node: Introduction and Notation247419
|
||||
Node: Readline Interaction249041
|
||||
Node: Readline Bare Essentials250232
|
||||
Node: Readline Movement Commands252021
|
||||
Node: Readline Killing Commands252986
|
||||
Node: Readline Arguments254906
|
||||
Node: Searching255950
|
||||
Node: Readline Init File258136
|
||||
Node: Readline Init File Syntax259283
|
||||
Node: Conditional Init Constructs272517
|
||||
Node: Sample Init File275050
|
||||
Node: Bindable Readline Commands278167
|
||||
Node: Commands For Moving279374
|
||||
Node: Commands For History280518
|
||||
Node: Commands For Text283673
|
||||
Node: Commands For Killing286346
|
||||
Node: Numeric Arguments288797
|
||||
Node: Commands For Completion289936
|
||||
Node: Keyboard Macros293703
|
||||
Node: Miscellaneous Commands294274
|
||||
Node: Readline vi Mode299585
|
||||
Node: Programmable Completion300499
|
||||
Node: Programmable Completion Builtins306332
|
||||
Node: Using History Interactively314758
|
||||
Node: Bash History Facilities315442
|
||||
Node: Bash History Builtins318356
|
||||
Node: History Interaction322213
|
||||
Node: Event Designators324918
|
||||
Node: Word Designators325933
|
||||
Node: Modifiers327572
|
||||
Node: Installing Bash328976
|
||||
Node: Basic Installation330113
|
||||
Node: Compilers and Options332805
|
||||
Node: Compiling For Multiple Architectures333546
|
||||
Node: Installation Names335210
|
||||
Node: Specifying the System Type336028
|
||||
Node: Sharing Defaults336744
|
||||
Node: Operation Controls337417
|
||||
Node: Optional Features338375
|
||||
Node: Reporting Bugs347777
|
||||
Node: Major Differences From The Bourne Shell348971
|
||||
Node: GNU Free Documentation License365658
|
||||
Node: Indexes388119
|
||||
Node: Builtin Index388573
|
||||
Node: Reserved Word Index395400
|
||||
Node: Variable Index397848
|
||||
Node: Function Index409654
|
||||
Node: Concept Index416386
|
||||
Node: Executing Commands84824
|
||||
Node: Simple Command Expansion85494
|
||||
Node: Command Search and Execution87424
|
||||
Node: Command Execution Environment89761
|
||||
Node: Environment92747
|
||||
Node: Exit Status94407
|
||||
Node: Signals96028
|
||||
Node: Shell Scripts97996
|
||||
Node: Shell Builtin Commands100514
|
||||
Node: Bourne Shell Builtins102542
|
||||
Node: Bash Builtins119883
|
||||
Node: Modifying Shell Behavior144182
|
||||
Node: The Set Builtin144527
|
||||
Node: The Shopt Builtin153971
|
||||
Node: Special Builtins164833
|
||||
Node: Shell Variables165812
|
||||
Node: Bourne Shell Variables166252
|
||||
Node: Bash Variables168233
|
||||
Node: Bash Features190572
|
||||
Node: Invoking Bash191455
|
||||
Node: Bash Startup Files197264
|
||||
Node: Interactive Shells202233
|
||||
Node: What is an Interactive Shell?202643
|
||||
Node: Is this Shell Interactive?203292
|
||||
Node: Interactive Shell Behavior204107
|
||||
Node: Bash Conditional Expressions207387
|
||||
Node: Shell Arithmetic210966
|
||||
Node: Aliases213712
|
||||
Node: Arrays216284
|
||||
Node: The Directory Stack220126
|
||||
Node: Directory Stack Builtins220840
|
||||
Node: Printing a Prompt223732
|
||||
Node: The Restricted Shell226484
|
||||
Node: Bash POSIX Mode228316
|
||||
Node: Job Control236169
|
||||
Node: Job Control Basics236629
|
||||
Node: Job Control Builtins241242
|
||||
Node: Job Control Variables245606
|
||||
Node: Command Line Editing246764
|
||||
Node: Introduction and Notation248331
|
||||
Node: Readline Interaction249953
|
||||
Node: Readline Bare Essentials251144
|
||||
Node: Readline Movement Commands252933
|
||||
Node: Readline Killing Commands253898
|
||||
Node: Readline Arguments255818
|
||||
Node: Searching256862
|
||||
Node: Readline Init File259048
|
||||
Node: Readline Init File Syntax260195
|
||||
Node: Conditional Init Constructs273429
|
||||
Node: Sample Init File275962
|
||||
Node: Bindable Readline Commands279079
|
||||
Node: Commands For Moving280286
|
||||
Node: Commands For History281430
|
||||
Node: Commands For Text284585
|
||||
Node: Commands For Killing287258
|
||||
Node: Numeric Arguments289709
|
||||
Node: Commands For Completion290848
|
||||
Node: Keyboard Macros294615
|
||||
Node: Miscellaneous Commands295186
|
||||
Node: Readline vi Mode300497
|
||||
Node: Programmable Completion301411
|
||||
Node: Programmable Completion Builtins307244
|
||||
Node: Using History Interactively315670
|
||||
Node: Bash History Facilities316354
|
||||
Node: Bash History Builtins319268
|
||||
Node: History Interaction323125
|
||||
Node: Event Designators325830
|
||||
Node: Word Designators326845
|
||||
Node: Modifiers328484
|
||||
Node: Installing Bash329888
|
||||
Node: Basic Installation331025
|
||||
Node: Compilers and Options333717
|
||||
Node: Compiling For Multiple Architectures334458
|
||||
Node: Installation Names336122
|
||||
Node: Specifying the System Type336940
|
||||
Node: Sharing Defaults337656
|
||||
Node: Operation Controls338329
|
||||
Node: Optional Features339287
|
||||
Node: Reporting Bugs348689
|
||||
Node: Major Differences From The Bourne Shell349886
|
||||
Node: GNU Free Documentation License366573
|
||||
Node: Indexes389034
|
||||
Node: Builtin Index389488
|
||||
Node: Reserved Word Index396315
|
||||
Node: Variable Index398763
|
||||
Node: Function Index410569
|
||||
Node: Concept Index417301
|
||||
|
||||
End Tag Table
|
||||
|
||||
+11
-11
@@ -1,4 +1,4 @@
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 18 FEB 2009 15:33
|
||||
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 23 FEB 2009 11:56
|
||||
**/Users/chet/src/bash/src/doc/bashref.texi
|
||||
(/Users/chet/src/bash/src/doc/bashref.texi (./texinfo.tex
|
||||
Loading texinfo [version 2003-02-03.16]: Basics,
|
||||
@@ -173,7 +173,7 @@ textttsl pat-tern@texttt ][]) @textttsl command-list @texttt ;;][] esac[][]
|
||||
[11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
|
||||
[26] [27] [28] [29] [30] [31] [32] [33] Chapter 4 [34] [35] [36] [37] [38]
|
||||
[39] [40] [41]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 3274--3287
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 3280--3293
|
||||
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
|
||||
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
|
||||
@@ -186,7 +186,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
.etc.
|
||||
|
||||
[42] [43] [44] [45] [46]
|
||||
Overfull \hbox (102.08961pt too wide) in paragraph at lines 3699--3699
|
||||
Overfull \hbox (102.08961pt too wide) in paragraph at lines 3705--3705
|
||||
[]@texttt read [-ers] [-a @textttsl aname@texttt ] [-d @textttsl de-lim@texttt
|
||||
] [-i @textttsl text@texttt ] [-n @textttsl nchars@texttt ] [-p @textttsl prom
|
||||
pt@texttt ] [-t @textttsl time-
|
||||
@@ -200,7 +200,7 @@ pt@texttt ] [-t @textttsl time-
|
||||
.etc.
|
||||
|
||||
[47] [48] [49] [50] [51] [52] [53] [54] [55]
|
||||
Underfull \hbox (badness 2573) in paragraph at lines 4377--4381
|
||||
Underfull \hbox (badness 2573) in paragraph at lines 4383--4387
|
||||
[] []@textrm Error trac-ing is en-abled: com-mand sub-sti-tu-tion, shell
|
||||
|
||||
@hbox(7.60416+2.12917)x433.62, glue set 2.95305
|
||||
@@ -217,7 +217,7 @@ Underfull \hbox (badness 2573) in paragraph at lines 4377--4381
|
||||
|
||||
[56] [57] [58] Chapter 5 [59] [60] [61] [62] [63] [64] [65] [66] [67] [68]
|
||||
Chapter 6 [69] [70]
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5220--5220
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5226--5226
|
||||
[]@texttt bash [long-opt] [-ir] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@t
|
||||
exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -230,7 +230,7 @@ exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5221--5221
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5227--5227
|
||||
[]@texttt bash [long-opt] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@texttt
|
||||
] [-O @textttsl shopt_option@texttt ] -c @textttsl string @texttt [@textttsl ar
|
||||
-
|
||||
@@ -244,7 +244,7 @@ Overfull \hbox (76.23077pt too wide) in paragraph at lines 5221--5221
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5222--5222
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5228--5228
|
||||
[]@texttt bash [long-opt] -s [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@text
|
||||
tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -257,7 +257,7 @@ tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
[71] [72]
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 5396--5398
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 5402--5404
|
||||
[]@textrm When a lo-gin shell ex-its, Bash reads and ex-e-cutes com-mands from
|
||||
the file
|
||||
|
||||
@@ -270,7 +270,7 @@ the file
|
||||
.etc.
|
||||
|
||||
[73] [74] [75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86]
|
||||
Underfull \hbox (badness 2521) in paragraph at lines 6533--6536
|
||||
Underfull \hbox (badness 2521) in paragraph at lines 6539--6542
|
||||
@textrm `@texttt --enable-strict-posix-default[]@textrm '[] to @texttt configur
|
||||
e[] @textrm when build-ing (see Sec-tion 10.8
|
||||
|
||||
@@ -325,7 +325,7 @@ Underfull \hbox (badness 2753) in paragraph at lines 1827--1830
|
||||
|
||||
[118] [119]) (/Users/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
|
||||
[120] [121] [122] [123] [124]) Chapter 10 [125] [126] [127] [128] [129]
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 7132--7136
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 7138--7142
|
||||
[]@textrm Enable sup-port for large files (@texttt http://www.sas.com/standard
|
||||
s/large_
|
||||
|
||||
@@ -374,4 +374,4 @@ Here is how much of TeX's memory you used:
|
||||
19 hyphenation exceptions out of 8191
|
||||
15i,8n,11p,269b,474s stack positions out of 5000i,500n,6000p,200000b,5000s
|
||||
|
||||
Output written on bashref.dvi (164 pages, 638296 bytes).
|
||||
Output written on bashref.dvi (164 pages, 638856 bytes).
|
||||
|
||||
+1274
-1253
File diff suppressed because it is too large
Load Diff
+8
-2
@@ -2765,8 +2765,14 @@ Many of the builtins have been extended by @sc{posix} or Bash.
|
||||
Unless otherwise noted, each builtin command documented as accepting
|
||||
options preceded by @samp{-} accepts @samp{--}
|
||||
to signify the end of the options.
|
||||
For example, the @code{:}, @code{true}, @code{false}, and @code{test}
|
||||
builtins do not accept options.
|
||||
The @code{:}, @code{true}, @code{false}, and @code{test}
|
||||
builtins do not accept options and do not treat @samp{--} specially.
|
||||
The @code{exit}, @code{logout}, @code{break}, @code{continue}, @code{let},
|
||||
and @code{shift} builtins accept and process arguments beginning
|
||||
with @samp{-} without requiring @samp{--}.
|
||||
Other builtins that accept arguments but are not specified as accepting
|
||||
options interpret arguments beginning with @samp{-} as invalid options and
|
||||
require @samp{--} to prevent this interpretation.
|
||||
|
||||
@node Bourne Shell Builtins
|
||||
@section Bourne Shell Builtins
|
||||
|
||||
+238
-228
@@ -14,8 +14,12 @@ NNAAMMEE
|
||||
BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
Unless otherwise noted, each builtin command documented in this section
|
||||
as accepting options preceded by -- accepts ---- to signify the end of the
|
||||
options. For example, the ::, ttrruuee, ffaallssee, and tteesstt builtins do not
|
||||
accept options.
|
||||
options. The ::, ttrruuee, ffaallssee, and tteesstt builtins do not accept options
|
||||
and do not treat ---- specially. The eexxiitt, llooggoouutt, bbrreeaakk, ccoonnttiinnuuee, lleett,
|
||||
and sshhiifftt builtins accept and process arguments beginning with -- with-
|
||||
out requiring ----. Other builtins that accept arguments but are not
|
||||
specified as accepting options interpret arguments beginning with -- as
|
||||
invalid options and require ---- to prevent this interpretation.
|
||||
:: [_a_r_g_u_m_e_n_t_s]
|
||||
No effect; the command does nothing beyond expanding _a_r_g_u_m_e_n_t_s
|
||||
and performing any specified redirections. A zero exit code is
|
||||
@@ -625,7 +629,7 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
_p_a_t_t_e_r_n; otherwise help for all the builtins and shell control
|
||||
structures is printed.
|
||||
--dd Display a short description of each _p_a_t_t_e_r_n
|
||||
--mm Display the description of each _p_a_t_t_e_r_n in a manpage-like
|
||||
--mm Display the description of each _p_a_t_t_e_r_n in a manpage-like
|
||||
format
|
||||
--ss Display only a short usage synopsis for each _p_a_t_t_e_r_n
|
||||
The return status is 0 unless no command matches _p_a_t_t_e_r_n.
|
||||
@@ -846,7 +850,7 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
occurs while reading the name of the current directory or an
|
||||
invalid option is supplied.
|
||||
|
||||
rreeaadd [--eerrss] [--aa _a_n_a_m_e] [--dd _d_e_l_i_m] [-- _t_e_x_t] [--nn _n_c_h_a_r_s] [--pp _p_r_o_m_p_t] [--tt
|
||||
rreeaadd [--eerrss] [--aa _a_n_a_m_e] [--dd _d_e_l_i_m] [--ii _t_e_x_t] [--nn _n_c_h_a_r_s] [--pp _p_r_o_m_p_t] [--tt
|
||||
_t_i_m_e_o_u_t] [--uu _f_d] [_n_a_m_e ...]
|
||||
One line is read from the standard input, or from the file
|
||||
descriptor _f_d supplied as an argument to the --uu option, and the
|
||||
@@ -951,32 +955,37 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--bb Report the status of terminated background jobs immedi-
|
||||
ately, rather than before the next primary prompt. This
|
||||
is effective only when job control is enabled.
|
||||
--ee Exit immediately if a _s_i_m_p_l_e _c_o_m_m_a_n_d (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
--ee Exit immediately if a _p_i_p_e_l_i_n_e (which may consist of a
|
||||
single _s_i_m_p_l_e _c_o_m_m_a_n_d), a _s_u_b_s_h_e_l_l command enclosed in
|
||||
parentheses, or one of the commands executed as part of
|
||||
a command list enclosed by braces (see SSHHEELLLL GGRRAAMMMMAARR
|
||||
above) exits with a non-zero status. The shell does not
|
||||
exit if the command that fails is part of the command
|
||||
list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test in an iiff statement, part of a command
|
||||
executed in a &&&& or |||| list, any command in a pipeline
|
||||
but the last, or if the command's return value is being
|
||||
inverted via !!. Failing simple commands that are part
|
||||
of shell functions or command lists enclosed in braces
|
||||
or parentheses satisfying the above conditions do not
|
||||
cause the shell to exit. A trap on EERRRR, if set, is exe-
|
||||
cuted before the shell exits.
|
||||
exit if the command that fails is part of the command
|
||||
list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test following the iiff or eelliiff reserved
|
||||
words, part of any command executed in a &&&& or |||| list
|
||||
except the command following the final &&&& or ||||, any
|
||||
command in a pipeline but the last, or if the command's
|
||||
return value is being inverted with !!. A trap on EERRRR,
|
||||
if set, is executed before the shell exits. This option
|
||||
applies to the shell environment and each subshell envi-
|
||||
ronment separately (see CCOOMMMMAANNDD EEXXEECCUUTTIIOONN EENNVVIIRROONNMMEENNTT
|
||||
above), and may cause subshells to exit before executing
|
||||
all the commands in the subshell.
|
||||
--ff Disable pathname expansion.
|
||||
--hh Remember the location of commands as they are looked up
|
||||
--hh Remember the location of commands as they are looked up
|
||||
for execution. This is enabled by default.
|
||||
--kk All arguments in the form of assignment statements are
|
||||
placed in the environment for a command, not just those
|
||||
--kk All arguments in the form of assignment statements are
|
||||
placed in the environment for a command, not just those
|
||||
that precede the command name.
|
||||
--mm Monitor mode. Job control is enabled. This option is
|
||||
on by default for interactive shells on systems that
|
||||
support it (see JJOOBB CCOONNTTRROOLL above). Background pro-
|
||||
cesses run in a separate process group and a line con-
|
||||
taining their exit status is printed upon their comple-
|
||||
--mm Monitor mode. Job control is enabled. This option is
|
||||
on by default for interactive shells on systems that
|
||||
support it (see JJOOBB CCOONNTTRROOLL above). Background pro-
|
||||
cesses run in a separate process group and a line con-
|
||||
taining their exit status is printed upon their comple-
|
||||
tion.
|
||||
--nn Read commands but do not execute them. This may be used
|
||||
to check a shell script for syntax errors. This is
|
||||
to check a shell script for syntax errors. This is
|
||||
ignored by interactive shells.
|
||||
--oo _o_p_t_i_o_n_-_n_a_m_e
|
||||
The _o_p_t_i_o_n_-_n_a_m_e can be one of the following:
|
||||
@@ -984,10 +993,10 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
Same as --aa.
|
||||
bbrraacceeeexxppaanndd
|
||||
Same as --BB.
|
||||
eemmaaccss Use an emacs-style command line editing inter-
|
||||
eemmaaccss Use an emacs-style command line editing inter-
|
||||
face. This is enabled by default when the shell
|
||||
is interactive, unless the shell is started with
|
||||
the ----nnooeeddiittiinngg option. This also affects the
|
||||
the ----nnooeeddiittiinngg option. This also affects the
|
||||
editing interface used for rreeaadd --ee.
|
||||
eerrrrttrraaccee
|
||||
Same as --EE.
|
||||
@@ -1001,8 +1010,8 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
HHIISSTTOORRYY. This option is on by default in inter-
|
||||
active shells.
|
||||
iiggnnoorreeeeooff
|
||||
The effect is as if the shell command
|
||||
``IGNOREEOF=10'' had been executed (see SShheellll
|
||||
The effect is as if the shell command
|
||||
``IGNOREEOF=10'' had been executed (see SShheellll
|
||||
VVaarriiaabblleess above).
|
||||
kkeeyywwoorrdd Same as --kk.
|
||||
mmoonniittoorr Same as --mm.
|
||||
@@ -1017,213 +1026,213 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
pphhyyssiiccaall
|
||||
Same as --PP.
|
||||
ppiippeeffaaiill
|
||||
If set, the return value of a pipeline is the
|
||||
value of the last (rightmost) command to exit
|
||||
with a non-zero status, or zero if all commands
|
||||
in the pipeline exit successfully. This option
|
||||
If set, the return value of a pipeline is the
|
||||
value of the last (rightmost) command to exit
|
||||
with a non-zero status, or zero if all commands
|
||||
in the pipeline exit successfully. This option
|
||||
is disabled by default.
|
||||
ppoossiixx Change the behavior of bbaasshh where the default
|
||||
operation differs from the POSIX standard to
|
||||
ppoossiixx Change the behavior of bbaasshh where the default
|
||||
operation differs from the POSIX standard to
|
||||
match the standard (_p_o_s_i_x _m_o_d_e).
|
||||
pprriivviilleeggeedd
|
||||
Same as --pp.
|
||||
vveerrbboossee Same as --vv.
|
||||
vvii Use a vi-style command line editing interface.
|
||||
vvii Use a vi-style command line editing interface.
|
||||
This also affects the editing interface used for
|
||||
rreeaadd --ee.
|
||||
xxttrraaccee Same as --xx.
|
||||
If --oo is supplied with no _o_p_t_i_o_n_-_n_a_m_e, the values of the
|
||||
current options are printed. If ++oo is supplied with no
|
||||
_o_p_t_i_o_n_-_n_a_m_e, a series of sseett commands to recreate the
|
||||
current option settings is displayed on the standard
|
||||
current options are printed. If ++oo is supplied with no
|
||||
_o_p_t_i_o_n_-_n_a_m_e, a series of sseett commands to recreate the
|
||||
current option settings is displayed on the standard
|
||||
output.
|
||||
--pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and
|
||||
$$BBAASSHH__EENNVV files are not processed, shell functions are
|
||||
not inherited from the environment, and the SSHHEELLLLOOPPTTSS,
|
||||
CCDDPPAATTHH, and GGLLOOBBIIGGNNOORREE variables, if they appear in the
|
||||
environment, are ignored. If the shell is started with
|
||||
--pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and
|
||||
$$BBAASSHH__EENNVV files are not processed, shell functions are
|
||||
not inherited from the environment, and the SSHHEELLLLOOPPTTSS,
|
||||
CCDDPPAATTHH, and GGLLOOBBIIGGNNOORREE variables, if they appear in the
|
||||
environment, are ignored. If the shell is started with
|
||||
the effective user (group) id not equal to the real user
|
||||
(group) id, and the --pp option is not supplied, these
|
||||
actions are taken and the effective user id is set to
|
||||
the real user id. If the --pp option is supplied at
|
||||
startup, the effective user id is not reset. Turning
|
||||
this option off causes the effective user and group ids
|
||||
(group) id, and the --pp option is not supplied, these
|
||||
actions are taken and the effective user id is set to
|
||||
the real user id. If the --pp option is supplied at
|
||||
startup, the effective user id is not reset. Turning
|
||||
this option off causes the effective user and group ids
|
||||
to be set to the real user and group ids.
|
||||
--tt Exit after reading and executing one command.
|
||||
--uu Treat unset variables as an error when performing param-
|
||||
eter expansion. If expansion is attempted on an unset
|
||||
eter expansion. If expansion is attempted on an unset
|
||||
variable, the shell prints an error message, and, if not
|
||||
interactive, exits with a non-zero status.
|
||||
--vv Print shell input lines as they are read.
|
||||
--xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee
|
||||
--xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee
|
||||
command, sseelleecctt command, or arithmetic ffoorr command, dis-
|
||||
play the expanded value of PPSS44, followed by the command
|
||||
play the expanded value of PPSS44, followed by the command
|
||||
and its expanded arguments or associated word list.
|
||||
--BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn
|
||||
--BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn
|
||||
above). This is on by default.
|
||||
--CC If set, bbaasshh does not overwrite an existing file with
|
||||
the >>, >>&&, and <<>> redirection operators. This may be
|
||||
--CC If set, bbaasshh does not overwrite an existing file with
|
||||
the >>, >>&&, and <<>> redirection operators. This may be
|
||||
overridden when creating output files by using the redi-
|
||||
rection operator >>|| instead of >>.
|
||||
--EE If set, any trap on EERRRR is inherited by shell functions,
|
||||
command substitutions, and commands executed in a sub-
|
||||
shell environment. The EERRRR trap is normally not inher-
|
||||
command substitutions, and commands executed in a sub-
|
||||
shell environment. The EERRRR trap is normally not inher-
|
||||
ited in such cases.
|
||||
--HH Enable !! style history substitution. This option is on
|
||||
by default when the shell is interactive.
|
||||
--PP If set, the shell does not follow symbolic links when
|
||||
executing commands such as ccdd that change the current
|
||||
--PP If set, the shell does not follow symbolic links when
|
||||
executing commands such as ccdd that change the current
|
||||
working directory. It uses the physical directory
|
||||
structure instead. By default, bbaasshh follows the logical
|
||||
chain of directories when performing commands which
|
||||
chain of directories when performing commands which
|
||||
change the current directory.
|
||||
--TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by
|
||||
shell functions, command substitutions, and commands
|
||||
executed in a subshell environment. The DDEEBBUUGG and
|
||||
--TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by
|
||||
shell functions, command substitutions, and commands
|
||||
executed in a subshell environment. The DDEEBBUUGG and
|
||||
RREETTUURRNN traps are normally not inherited in such cases.
|
||||
---- If no arguments follow this option, then the positional
|
||||
---- If no arguments follow this option, then the positional
|
||||
parameters are unset. Otherwise, the positional parame-
|
||||
ters are set to the _a_r_gs, even if some of them begin
|
||||
ters are set to the _a_r_gs, even if some of them begin
|
||||
with a --.
|
||||
-- Signal the end of options, cause all remaining _a_r_gs to
|
||||
-- Signal the end of options, cause all remaining _a_r_gs to
|
||||
be assigned to the positional parameters. The --xx and --vv
|
||||
options are turned off. If there are no _a_r_gs, the posi-
|
||||
tional parameters remain unchanged.
|
||||
|
||||
The options are off by default unless otherwise noted. Using +
|
||||
rather than - causes these options to be turned off. The
|
||||
options can also be specified as arguments to an invocation of
|
||||
the shell. The current set of options may be found in $$--. The
|
||||
The options are off by default unless otherwise noted. Using +
|
||||
rather than - causes these options to be turned off. The
|
||||
options can also be specified as arguments to an invocation of
|
||||
the shell. The current set of options may be found in $$--. The
|
||||
return status is always true unless an invalid option is encoun-
|
||||
tered.
|
||||
|
||||
sshhiifftt [_n]
|
||||
The positional parameters from _n+1 ... are renamed to $$11 ........
|
||||
Parameters represented by the numbers $$## down to $$##-_n+1 are
|
||||
unset. _n must be a non-negative number less than or equal to
|
||||
$$##. If _n is 0, no parameters are changed. If _n is not given,
|
||||
it is assumed to be 1. If _n is greater than $$##, the positional
|
||||
parameters are not changed. The return status is greater than
|
||||
The positional parameters from _n+1 ... are renamed to $$11 ........
|
||||
Parameters represented by the numbers $$## down to $$##-_n+1 are
|
||||
unset. _n must be a non-negative number less than or equal to
|
||||
$$##. If _n is 0, no parameters are changed. If _n is not given,
|
||||
it is assumed to be 1. If _n is greater than $$##, the positional
|
||||
parameters are not changed. The return status is greater than
|
||||
zero if _n is greater than $$## or less than zero; otherwise 0.
|
||||
|
||||
sshhoopptt [--ppqqssuu] [--oo] [_o_p_t_n_a_m_e ...]
|
||||
Toggle the values of variables controlling optional shell behav-
|
||||
ior. With no options, or with the --pp option, a list of all set-
|
||||
table options is displayed, with an indication of whether or not
|
||||
each is set. The --pp option causes output to be displayed in a
|
||||
form that may be reused as input. Other options have the fol-
|
||||
each is set. The --pp option causes output to be displayed in a
|
||||
form that may be reused as input. Other options have the fol-
|
||||
lowing meanings:
|
||||
--ss Enable (set) each _o_p_t_n_a_m_e.
|
||||
--uu Disable (unset) each _o_p_t_n_a_m_e.
|
||||
--qq Suppresses normal output (quiet mode); the return status
|
||||
--qq Suppresses normal output (quiet mode); the return status
|
||||
indicates whether the _o_p_t_n_a_m_e is set or unset. If multi-
|
||||
ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta-
|
||||
tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other-
|
||||
ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta-
|
||||
tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other-
|
||||
wise.
|
||||
--oo Restricts the values of _o_p_t_n_a_m_e to be those defined for
|
||||
--oo Restricts the values of _o_p_t_n_a_m_e to be those defined for
|
||||
the --oo option to the sseett builtin.
|
||||
|
||||
If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, the dis-
|
||||
If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, the dis-
|
||||
play is limited to those options which are set or unset, respec-
|
||||
tively. Unless otherwise noted, the sshhoopptt options are disabled
|
||||
tively. Unless otherwise noted, the sshhoopptt options are disabled
|
||||
(unset) by default.
|
||||
|
||||
The return status when listing options is zero if all _o_p_t_n_a_m_e_s
|
||||
are enabled, non-zero otherwise. When setting or unsetting
|
||||
options, the return status is zero unless an _o_p_t_n_a_m_e is not a
|
||||
The return status when listing options is zero if all _o_p_t_n_a_m_e_s
|
||||
are enabled, non-zero otherwise. When setting or unsetting
|
||||
options, the return status is zero unless an _o_p_t_n_a_m_e is not a
|
||||
valid shell option.
|
||||
|
||||
The list of sshhoopptt options is:
|
||||
|
||||
aauuttooccdd If set, a command name that is the name of a directory
|
||||
is executed as if it were the argument to the ccdd com-
|
||||
aauuttooccdd If set, a command name that is the name of a directory
|
||||
is executed as if it were the argument to the ccdd com-
|
||||
mand. This option is only used by interactive shells.
|
||||
ccddaabbllee__vvaarrss
|
||||
If set, an argument to the ccdd builtin command that is
|
||||
not a directory is assumed to be the name of a variable
|
||||
If set, an argument to the ccdd builtin command that is
|
||||
not a directory is assumed to be the name of a variable
|
||||
whose value is the directory to change to.
|
||||
ccddssppeellll If set, minor errors in the spelling of a directory com-
|
||||
ponent in a ccdd command will be corrected. The errors
|
||||
ponent in a ccdd command will be corrected. The errors
|
||||
checked for are transposed characters, a missing charac-
|
||||
ter, and one character too many. If a correction is
|
||||
found, the corrected file name is printed, and the com-
|
||||
mand proceeds. This option is only used by interactive
|
||||
ter, and one character too many. If a correction is
|
||||
found, the corrected file name is printed, and the com-
|
||||
mand proceeds. This option is only used by interactive
|
||||
shells.
|
||||
cchheecckkhhaasshh
|
||||
If set, bbaasshh checks that a command found in the hash ta-
|
||||
ble exists before trying to execute it. If a hashed
|
||||
command no longer exists, a normal path search is per-
|
||||
ble exists before trying to execute it. If a hashed
|
||||
command no longer exists, a normal path search is per-
|
||||
formed.
|
||||
cchheecckkjjoobbss
|
||||
If set, bbaasshh lists the status of any stopped and running
|
||||
jobs before exiting an interactive shell. If any jobs
|
||||
jobs before exiting an interactive shell. If any jobs
|
||||
are running, this causes the exit to be deferred until a
|
||||
second exit is attempted without an intervening command
|
||||
(see JJOOBB CCOONNTTRROOLL above). The shell always postpones
|
||||
second exit is attempted without an intervening command
|
||||
(see JJOOBB CCOONNTTRROOLL above). The shell always postpones
|
||||
exiting if any jobs are stopped.
|
||||
cchheecckkwwiinnssiizzee
|
||||
If set, bbaasshh checks the window size after each command
|
||||
and, if necessary, updates the values of LLIINNEESS and CCOOLL--
|
||||
If set, bbaasshh checks the window size after each command
|
||||
and, if necessary, updates the values of LLIINNEESS and CCOOLL--
|
||||
UUMMNNSS.
|
||||
ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple-
|
||||
line command in the same history entry. This allows
|
||||
ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple-
|
||||
line command in the same history entry. This allows
|
||||
easy re-editing of multi-line commands.
|
||||
ccoommppaatt3311
|
||||
If set, bbaasshh changes its behavior to that of version 3.1
|
||||
with respect to quoted arguments to the conditional com-
|
||||
mand's =~ operator.
|
||||
ddiirrssppeellll
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
tially supplied does not exist.
|
||||
ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in
|
||||
ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in
|
||||
the results of pathname expansion.
|
||||
eexxeeccffaaiill
|
||||
If set, a non-interactive shell will not exit if it can-
|
||||
not execute the file specified as an argument to the
|
||||
eexxeecc builtin command. An interactive shell does not
|
||||
not execute the file specified as an argument to the
|
||||
eexxeecc builtin command. An interactive shell does not
|
||||
exit if eexxeecc fails.
|
||||
eexxppaanndd__aalliiaasseess
|
||||
If set, aliases are expanded as described above under
|
||||
If set, aliases are expanded as described above under
|
||||
AALLIIAASSEESS. This option is enabled by default for interac-
|
||||
tive shells.
|
||||
eexxttddeebbuugg
|
||||
If set, behavior intended for use by debuggers is
|
||||
If set, behavior intended for use by debuggers is
|
||||
enabled:
|
||||
11.. The --FF option to the ddeeccllaarree builtin displays the
|
||||
source file name and line number corresponding to
|
||||
each function name supplied as an argument.
|
||||
22.. If the command run by the DDEEBBUUGG trap returns a
|
||||
non-zero value, the next command is skipped and
|
||||
22.. If the command run by the DDEEBBUUGG trap returns a
|
||||
non-zero value, the next command is skipped and
|
||||
not executed.
|
||||
33.. If the command run by the DDEEBBUUGG trap returns a
|
||||
value of 2, and the shell is executing in a sub-
|
||||
routine (a shell function or a shell script exe-
|
||||
cuted by the .. or ssoouurrccee builtins), a call to
|
||||
33.. If the command run by the DDEEBBUUGG trap returns a
|
||||
value of 2, and the shell is executing in a sub-
|
||||
routine (a shell function or a shell script exe-
|
||||
cuted by the .. or ssoouurrccee builtins), a call to
|
||||
rreettuurrnn is simulated.
|
||||
44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described
|
||||
44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described
|
||||
in their descriptions above.
|
||||
55.. Function tracing is enabled: command substitu-
|
||||
55.. Function tracing is enabled: command substitu-
|
||||
tion, shell functions, and subshells invoked with
|
||||
(( _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 ((
|
||||
66.. Error tracing is enabled: command substitution,
|
||||
shell functions, and subshells invoked with ((
|
||||
_c_o_m_m_a_n_d )) inherit the EERRRROORR trap.
|
||||
eexxttgglloobb If set, the extended pattern matching features described
|
||||
above under PPaatthhnnaammee EExxppaannssiioonn are enabled.
|
||||
eexxttqquuoottee
|
||||
If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed
|
||||
within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double
|
||||
If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed
|
||||
within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double
|
||||
quotes. This option is enabled by default.
|
||||
ffaaiillgglloobb
|
||||
If set, patterns which fail to match filenames during
|
||||
If set, patterns which fail to match filenames during
|
||||
pathname expansion result in an expansion error.
|
||||
ffoorrccee__ffiiggnnoorree
|
||||
If set, the suffixes specified by the FFIIGGNNOORREE shell
|
||||
variable cause words to be ignored when performing word
|
||||
If set, the suffixes specified by the FFIIGGNNOORREE shell
|
||||
variable cause words to be ignored when performing word
|
||||
completion even if the ignored words are the only possi-
|
||||
ble completions. See SSHHEELLLL VVAARRIIAABBLLEESS above for a
|
||||
description of FFIIGGNNOORREE. This option is enabled by
|
||||
description of FFIIGGNNOORREE. This option is enabled by
|
||||
default.
|
||||
gglloobbssttaarr
|
||||
If set, the pattern **** used in a filename expansion con-
|
||||
@@ -1234,58 +1243,58 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
If set, shell error messages are written in the standard
|
||||
GNU error message format.
|
||||
hhiissttaappppeenndd
|
||||
If set, the history list is appended to the file named
|
||||
by the value of the HHIISSTTFFIILLEE variable when the shell
|
||||
If set, the history list is appended to the file named
|
||||
by the value of the HHIISSTTFFIILLEE variable when the shell
|
||||
exits, rather than overwriting the file.
|
||||
hhiissttrreeeeddiitt
|
||||
If set, and rreeaaddlliinnee is being used, a user is given the
|
||||
If set, and rreeaaddlliinnee is being used, a user is given the
|
||||
opportunity to re-edit a failed history substitution.
|
||||
hhiissttvveerriiffyy
|
||||
If set, and rreeaaddlliinnee is being used, the results of his-
|
||||
tory substitution are not immediately passed to the
|
||||
shell parser. Instead, the resulting line is loaded
|
||||
If set, and rreeaaddlliinnee is being used, the results of his-
|
||||
tory substitution are not immediately passed to the
|
||||
shell parser. Instead, the resulting line is loaded
|
||||
into the rreeaaddlliinnee editing buffer, allowing further modi-
|
||||
fication.
|
||||
hhoossttccoommpplleettee
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will attempt to
|
||||
perform hostname completion when a word containing a @@
|
||||
is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE
|
||||
perform hostname completion when a word containing a @@
|
||||
is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE
|
||||
above). This is enabled by default.
|
||||
hhuuppoonneexxiitt
|
||||
If set, bbaasshh will send SSIIGGHHUUPP to all jobs when an inter-
|
||||
active login shell exits.
|
||||
iinntteerraaccttiivvee__ccoommmmeennttss
|
||||
If set, allow a word beginning with ## to cause that word
|
||||
and all remaining characters on that line to be ignored
|
||||
in an interactive shell (see CCOOMMMMEENNTTSS above). This
|
||||
and all remaining characters on that line to be ignored
|
||||
in an interactive shell (see CCOOMMMMEENNTTSS above). This
|
||||
option is enabled by default.
|
||||
lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line
|
||||
lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line
|
||||
commands are saved to the history with embedded newlines
|
||||
rather than using semicolon separators where possible.
|
||||
llooggiinn__sshheellll
|
||||
The shell sets this option if it is started as a login
|
||||
shell (see IINNVVOOCCAATTIIOONN above). The value may not be
|
||||
The shell sets this option if it is started as a login
|
||||
shell (see IINNVVOOCCAATTIIOONN above). The value may not be
|
||||
changed.
|
||||
mmaaiillwwaarrnn
|
||||
If set, and a file that bbaasshh is checking for mail has
|
||||
been accessed since the last time it was checked, the
|
||||
message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis-
|
||||
If set, and a file that bbaasshh is checking for mail has
|
||||
been accessed since the last time it was checked, the
|
||||
message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis-
|
||||
played.
|
||||
nnoo__eemmppttyy__ccmmdd__ccoommpplleettiioonn
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will not
|
||||
If set, and rreeaaddlliinnee is being used, bbaasshh will not
|
||||
attempt to search the PPAATTHH for possible completions when
|
||||
completion is attempted on an empty line.
|
||||
nnooccaasseegglloobb
|
||||
If set, bbaasshh matches filenames in a case-insensitive
|
||||
If set, bbaasshh matches filenames in a case-insensitive
|
||||
fashion when performing pathname expansion (see PPaatthhnnaammee
|
||||
EExxppaannssiioonn above).
|
||||
nnooccaasseemmaattcchh
|
||||
If set, bbaasshh matches patterns in a case-insensitive
|
||||
If set, bbaasshh matches patterns in a case-insensitive
|
||||
fashion when performing matching while executing ccaassee or
|
||||
[[[[ conditional commands.
|
||||
nnuullllgglloobb
|
||||
If set, bbaasshh allows patterns which match no files (see
|
||||
PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string,
|
||||
If set, bbaasshh allows patterns which match no files (see
|
||||
PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string,
|
||||
rather than themselves.
|
||||
pprrooggccoommpp
|
||||
If set, the programmable completion facilities (see PPrroo--
|
||||
@@ -1293,47 +1302,47 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
enabled by default.
|
||||
pprroommppttvvaarrss
|
||||
If set, prompt strings undergo parameter expansion, com-
|
||||
mand substitution, arithmetic expansion, and quote
|
||||
removal after being expanded as described in PPRROOMMPPTTIINNGG
|
||||
mand substitution, arithmetic expansion, and quote
|
||||
removal after being expanded as described in PPRROOMMPPTTIINNGG
|
||||
above. This option is enabled by default.
|
||||
rreessttrriicctteedd__sshheellll
|
||||
The shell sets this option if it is started in
|
||||
The shell sets this option if it is started in
|
||||
restricted mode (see RREESSTTRRIICCTTEEDD SSHHEELLLL below). The value
|
||||
may not be changed. This is not reset when the startup
|
||||
files are executed, allowing the startup files to dis-
|
||||
may not be changed. This is not reset when the startup
|
||||
files are executed, allowing the startup files to dis-
|
||||
cover whether or not a shell is restricted.
|
||||
sshhiifftt__vveerrbboossee
|
||||
If set, the sshhiifftt builtin prints an error message when
|
||||
If set, the sshhiifftt builtin prints an error message when
|
||||
the shift count exceeds the number of positional parame-
|
||||
ters.
|
||||
ssoouurrcceeppaatthh
|
||||
If set, the ssoouurrccee (..) builtin uses the value of PPAATTHH to
|
||||
find the directory containing the file supplied as an
|
||||
find the directory containing the file supplied as an
|
||||
argument. This option is enabled by default.
|
||||
xxppgg__eecchhoo
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
sequences by default.
|
||||
ssuussppeenndd [--ff]
|
||||
Suspend the execution of this shell until it receives a SSIIGGCCOONNTT
|
||||
Suspend the execution of this shell until it receives a SSIIGGCCOONNTT
|
||||
signal. A login shell cannot be suspended; the --ff option can be
|
||||
used to override this and force the suspension. The return sta-
|
||||
tus is 0 unless the shell is a login shell and --ff is not sup-
|
||||
tus is 0 unless the shell is a login shell and --ff is not sup-
|
||||
plied, or if job control is not enabled.
|
||||
tteesstt _e_x_p_r
|
||||
[[ _e_x_p_r ]]
|
||||
Return a status of 0 or 1 depending on the evaluation of the
|
||||
conditional expression _e_x_p_r. Each operator and operand must be
|
||||
a separate argument. Expressions are composed of the primaries
|
||||
described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS. tteesstt does not
|
||||
Return a status of 0 or 1 depending on the evaluation of the
|
||||
conditional expression _e_x_p_r. Each operator and operand must be
|
||||
a separate argument. Expressions are composed of the primaries
|
||||
described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS. tteesstt does not
|
||||
accept any options, nor does it accept and ignore an argument of
|
||||
---- as signifying the end of options.
|
||||
|
||||
Expressions may be combined using the following operators,
|
||||
Expressions may be combined using the following operators,
|
||||
listed in decreasing order of precedence. The evaluation
|
||||
depends on the number of arguments; see below.
|
||||
!! _e_x_p_r True if _e_x_p_r is false.
|
||||
(( _e_x_p_r ))
|
||||
Returns the value of _e_x_p_r. This may be used to override
|
||||
Returns the value of _e_x_p_r. This may be used to override
|
||||
the normal precedence of operators.
|
||||
_e_x_p_r_1 -aa _e_x_p_r_2
|
||||
True if both _e_x_p_r_1 and _e_x_p_r_2 are true.
|
||||
@@ -1350,108 +1359,108 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
null.
|
||||
2 arguments
|
||||
If the first argument is !!, the expression is true if and
|
||||
only if the second argument is null. If the first argu-
|
||||
ment is one of the unary conditional operators listed
|
||||
above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
|
||||
only if the second argument is null. If the first argu-
|
||||
ment is one of the unary conditional operators listed
|
||||
above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is
|
||||
true if the unary test is true. If the first argument is
|
||||
not a valid unary conditional operator, the expression is
|
||||
false.
|
||||
3 arguments
|
||||
If the second argument is one of the binary conditional
|
||||
If the second argument is one of the binary conditional
|
||||
operators listed above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the
|
||||
result of the expression is the result of the binary test
|
||||
using the first and third arguments as operands. The --aa
|
||||
and --oo operators are considered binary operators when
|
||||
there are three arguments. If the first argument is !!,
|
||||
the value is the negation of the two-argument test using
|
||||
using the first and third arguments as operands. The --aa
|
||||
and --oo operators are considered binary operators when
|
||||
there are three arguments. If the first argument is !!,
|
||||
the value is the negation of the two-argument test using
|
||||
the second and third arguments. If the first argument is
|
||||
exactly (( and the third argument is exactly )), the result
|
||||
is the one-argument test of the second argument. Other-
|
||||
is the one-argument test of the second argument. Other-
|
||||
wise, the expression is false.
|
||||
4 arguments
|
||||
If the first argument is !!, the result is the negation of
|
||||
the three-argument expression composed of the remaining
|
||||
the three-argument expression composed of the remaining
|
||||
arguments. Otherwise, the expression is parsed and eval-
|
||||
uated according to precedence using the rules listed
|
||||
uated according to precedence using the rules listed
|
||||
above.
|
||||
5 or more arguments
|
||||
The expression is parsed and evaluated according to
|
||||
The expression is parsed and evaluated according to
|
||||
precedence using the rules listed above.
|
||||
|
||||
ttiimmeess Print the accumulated user and system times for the shell and
|
||||
ttiimmeess Print the accumulated user and system times for the shell and
|
||||
for processes run from the shell. The return status is 0.
|
||||
|
||||
ttrraapp [--llpp] [[_a_r_g] _s_i_g_s_p_e_c ...]
|
||||
The command _a_r_g is to be read and executed when the shell
|
||||
receives signal(s) _s_i_g_s_p_e_c. If _a_r_g is absent (and there is a
|
||||
single _s_i_g_s_p_e_c) or --, each specified signal is reset to its
|
||||
original disposition (the value it had upon entrance to the
|
||||
shell). If _a_r_g is the null string the signal specified by each
|
||||
_s_i_g_s_p_e_c is ignored by the shell and by the commands it invokes.
|
||||
If _a_r_g is not present and --pp has been supplied, then the trap
|
||||
commands associated with each _s_i_g_s_p_e_c are displayed. If no
|
||||
arguments are supplied or if only --pp is given, ttrraapp prints the
|
||||
list of commands associated with each signal. The --ll option
|
||||
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. 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 executed before every
|
||||
The command _a_r_g is to be read and executed when the shell
|
||||
receives signal(s) _s_i_g_s_p_e_c. If _a_r_g is absent (and there is a
|
||||
single _s_i_g_s_p_e_c) or --, each specified signal is reset to its
|
||||
original disposition (the value it had upon entrance to the
|
||||
shell). If _a_r_g is the null string the signal specified by each
|
||||
_s_i_g_s_p_e_c is ignored by the shell and by the commands it invokes.
|
||||
If _a_r_g is not present and --pp has been supplied, then the trap
|
||||
commands associated with each _s_i_g_s_p_e_c are displayed. If no
|
||||
arguments are supplied or if only --pp is given, ttrraapp prints the
|
||||
list of commands associated with each signal. The --ll option
|
||||
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. 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 executed before every
|
||||
_s_i_m_p_l_e _c_o_m_m_a_n_d, _f_o_r command, _c_a_s_e command, _s_e_l_e_c_t command, every
|
||||
arithmetic _f_o_r command, and before the first command executes in
|
||||
a shell function (see SSHHEELLLL GGRRAAMMMMAARR above). Refer to the
|
||||
description of the eexxttddeebbuugg option to the sshhoopptt builtin for
|
||||
details of its effect on the DDEEBBUUGG trap. If a _s_i_g_s_p_e_c is EERRRR,
|
||||
the command _a_r_g is executed whenever a simple command has a
|
||||
non-zero exit status, subject to the following conditions. The
|
||||
EERRRR trap is not executed if the failed command is part of the
|
||||
command list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test in an _i_f statement, part of a command executed
|
||||
in a &&&& or |||| list, or if the command's return value is being
|
||||
inverted via !!. These are the same conditions obeyed by the
|
||||
a shell function (see SSHHEELLLL GGRRAAMMMMAARR above). Refer to the
|
||||
description of the eexxttddeebbuugg option to the sshhoopptt builtin for
|
||||
details of its effect on the DDEEBBUUGG trap. If a _s_i_g_s_p_e_c is EERRRR,
|
||||
the command _a_r_g is executed whenever a simple command has a
|
||||
non-zero exit status, subject to the following conditions. The
|
||||
EERRRR trap is not executed if the failed command is part of the
|
||||
command list immediately following a wwhhiillee or uunnttiill keyword,
|
||||
part of the test in an _i_f statement, part of a command executed
|
||||
in a &&&& or |||| list, or if the command's return value is being
|
||||
inverted via !!. These are the same conditions obeyed by the
|
||||
eerrrreexxiitt option. If a _s_i_g_s_p_e_c is RREETTUURRNN, the command _a_r_g is exe-
|
||||
cuted each time a shell function or a script executed with the ..
|
||||
or ssoouurrccee builtins finishes executing. Signals ignored upon
|
||||
entry to the shell cannot be trapped or reset. Trapped signals
|
||||
or ssoouurrccee builtins finishes executing. Signals ignored upon
|
||||
entry to the shell cannot be trapped or reset. Trapped signals
|
||||
that are not being ignored are reset to their original values in
|
||||
a child process when it is created. The return status is false
|
||||
a child process when it is created. The return status is false
|
||||
if any _s_i_g_s_p_e_c is invalid; otherwise ttrraapp returns true.
|
||||
|
||||
ttyyppee [--aaffttppPP] _n_a_m_e [_n_a_m_e ...]
|
||||
With no options, indicate how each _n_a_m_e would be interpreted if
|
||||
With no options, indicate how each _n_a_m_e would be interpreted if
|
||||
used as a command name. If the --tt option is used, ttyyppee prints a
|
||||
string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or
|
||||
_f_i_l_e if _n_a_m_e is an alias, shell reserved word, function,
|
||||
builtin, or disk file, respectively. If the _n_a_m_e is not found,
|
||||
then nothing is printed, and an exit status of false is
|
||||
returned. If the --pp option is used, ttyyppee either returns the
|
||||
string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or
|
||||
_f_i_l_e if _n_a_m_e is an alias, shell reserved word, function,
|
||||
builtin, or disk file, respectively. If the _n_a_m_e is not found,
|
||||
then nothing is printed, and an exit status of false is
|
||||
returned. If the --pp option is used, ttyyppee either returns the
|
||||
name of the disk file that would be executed if _n_a_m_e were speci-
|
||||
fied as a command name, or nothing if ``type -t name'' would not
|
||||
return _f_i_l_e. The --PP option forces a PPAATTHH search for each _n_a_m_e,
|
||||
return _f_i_l_e. The --PP option forces a PPAATTHH search for each _n_a_m_e,
|
||||
even if ``type -t name'' would not return _f_i_l_e. If a command is
|
||||
hashed, --pp and --PP print the hashed value, not necessarily the
|
||||
hashed, --pp and --PP print the hashed value, not necessarily the
|
||||
file that appears first in PPAATTHH. If the --aa option is used, ttyyppee
|
||||
prints all of the places that contain an executable named _n_a_m_e.
|
||||
This includes aliases and functions, if and only if the --pp
|
||||
option is not also used. The table of hashed commands is not
|
||||
consulted when using --aa. The --ff option suppresses shell func-
|
||||
tion lookup, as with the ccoommmmaanndd builtin. ttyyppee returns true if
|
||||
prints all of the places that contain an executable named _n_a_m_e.
|
||||
This includes aliases and functions, if and only if the --pp
|
||||
option is not also used. The table of hashed commands is not
|
||||
consulted when using --aa. The --ff option suppresses shell func-
|
||||
tion lookup, as with the ccoommmmaanndd builtin. ttyyppee returns true if
|
||||
all of the arguments are found, false if any are not found.
|
||||
|
||||
uulliimmiitt [--HHSSTTaabbccddeeffiillmmnnppqqrrssttuuvvxx [_l_i_m_i_t]]
|
||||
Provides control over the resources available to the shell and
|
||||
to processes started by it, on systems that allow such control.
|
||||
Provides control over the resources available to the shell and
|
||||
to processes started by it, on systems that allow such control.
|
||||
The --HH and --SS options specify that the hard or soft limit is set
|
||||
for the given resource. A hard limit cannot be increased by a
|
||||
non-root user once it is set; a soft limit may be increased up
|
||||
to the value of the hard limit. If neither --HH nor --SS is speci-
|
||||
for the given resource. A hard limit cannot be increased by a
|
||||
non-root user once it is set; a soft limit may be increased up
|
||||
to the value of the hard limit. If neither --HH nor --SS is speci-
|
||||
fied, both the soft and hard limits are set. The value of _l_i_m_i_t
|
||||
can be a number in the unit specified for the resource or one of
|
||||
the special values hhaarrdd, ssoofftt, or uunnlliimmiitteedd, which stand for the
|
||||
current hard limit, the current soft limit, and no limit,
|
||||
respectively. If _l_i_m_i_t is omitted, the current value of the
|
||||
soft limit of the resource is printed, unless the --HH option is
|
||||
current hard limit, the current soft limit, and no limit,
|
||||
respectively. If _l_i_m_i_t is omitted, the current value of the
|
||||
soft limit of the resource is printed, unless the --HH option is
|
||||
given. When more than one resource is specified, the limit name
|
||||
and unit are printed before the value. Other options are inter-
|
||||
preted as follows:
|
||||
@@ -1460,11 +1469,12 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--cc The maximum size of core files created
|
||||
--dd The maximum size of a process's data segment
|
||||
--ee The maximum scheduling priority ("nice")
|
||||
--ff The maximum size of files written by the shell and its
|
||||
--ff The maximum size of files written by the shell and its
|
||||
children
|
||||
--ii The maximum number of pending signals
|
||||
--ll The maximum size that may be locked into memory
|
||||
--mm The maximum resident set size
|
||||
--mm The maximum resident set size (many systems do not honor
|
||||
this limit)
|
||||
--nn The maximum number of open file descriptors (most systems
|
||||
do not allow this value to be set)
|
||||
--pp The pipe size in 512-byte blocks (this may not be set)
|
||||
|
||||
+1307
-1274
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.19.2
|
||||
%%CreationDate: Thu Feb 5 08:05:28 2009
|
||||
%%CreationDate: Mon Feb 23 11:56:03 2009
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%DocumentSuppliedResources: procset grops 1.19 2
|
||||
|
||||
Reference in New Issue
Block a user