mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 12:40:42 +02:00
commit bash-20110311 snapshot
This commit is contained in:
+32
-27
@@ -395,13 +395,13 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
the exceptions that ++aa may not be used to destroy an array vari-
|
||||
able and ++rr will not remove the readonly attribute. When used
|
||||
in a function, makes each _n_a_m_e local, as with the llooccaall command,
|
||||
unless the --ggPP ooppttiioonn iiss ssuupppplliieedd,, IIff aa vvaarriiaabbllee nnaammee iiss ffooll--
|
||||
lloowweedd bbyy ==_v_a_l_u_e,, tthhee vvaalluuee ooff tthhee vvaarriiaabbllee iiss sseett ttoo _v_a_l_u_e.. TThhee
|
||||
rreettuurrnn vvaalluuee iiss 00 uunnlleessss aann iinnvvaalliidd ooppttiioonn iiss eennccoouunntteerreedd,, aann
|
||||
aatttteemmpptt iiss mmaaddee ttoo ddeeffiinnee aa ffuunnccttiioonn uussiinngg ````--ff ffoooo==bbaarr'''',, aann
|
||||
aatttteemmpptt iiss mmaaddee ttoo aassssiiggnn aa vvaalluuee ttoo aa rreeaaddoonnllyy vvaarriiaabbllee,, aann
|
||||
aatttteemmpptt iiss mmaaddee ttoo aassssiiggnn aa vvaalluuee ttoo aann aarrrraayy vvaarriiaabbllee wwiitthhoouutt
|
||||
uussiinngg tthhee ccoommppoouunndd aassssiiggnnmmeenntt ssyynnttaaxx ((sseeee AArrrraayyss above), one of
|
||||
unless the --gg option is supplied, If a variable name is followed
|
||||
by =_v_a_l_u_e, the value of the variable is set to _v_a_l_u_e. The
|
||||
return value is 0 unless an invalid option is encountered, an
|
||||
attempt is made to define a function using ``-f foo=bar'', an
|
||||
attempt is made to assign a value to a readonly variable, an
|
||||
attempt is made to assign a value to an array variable without
|
||||
using the compound assignment syntax (see AArrrraayyss above), one of
|
||||
the _n_a_m_e_s is not a valid shell variable name, an attempt is made
|
||||
to turn off readonly status for a readonly variable, an attempt
|
||||
is made to turn off array status for an array variable, or an
|
||||
@@ -654,7 +654,8 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
--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.
|
||||
|
||||
The return status is 0 unless no command matches _p_a_t_t_e_r_n.
|
||||
|
||||
hhiissttoorryy [[_n]]
|
||||
hhiissttoorryy --cc
|
||||
@@ -956,20 +957,22 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
greater than 128), or an invalid file descriptor is supplied as
|
||||
the argument to --uu.
|
||||
|
||||
rreeaaddoonnllyy [--aaAAppff] [_n_a_m_e[=_w_o_r_d] ...]
|
||||
rreeaaddoonnllyy [--aaAAff] [--pp] [_n_a_m_e[=_w_o_r_d] ...]
|
||||
The given _n_a_m_e_s are marked readonly; the values of these _n_a_m_e_s
|
||||
may not be changed by subsequent assignment. If the --ff option
|
||||
is supplied, the functions corresponding to the _n_a_m_e_s are so
|
||||
marked. The --aa option restricts the variables to indexed
|
||||
arrays; the --AA option restricts the variables to associative
|
||||
arrays. If no _n_a_m_e arguments are given, or if the --pp option is
|
||||
supplied, a list of all readonly names is printed. The --pp
|
||||
option causes output to be displayed in a format that may be
|
||||
reused as input. If a variable name is followed by =_w_o_r_d, the
|
||||
value of the variable is set to _w_o_r_d. The return status is 0
|
||||
unless an invalid option is encountered, one of the _n_a_m_e_s is not
|
||||
a valid shell variable name, or --ff is supplied with a _n_a_m_e that
|
||||
is not a function.
|
||||
arrays. If both options are supplied, --AA takes precedence. If
|
||||
no _n_a_m_e arguments are given, or if the --pp option is supplied, a
|
||||
list of all readonly names is printed. The other options may be
|
||||
used to restrict the output to a subset of the set of readonly
|
||||
names. The --pp option causes output to be displayed in a format
|
||||
that may be reused as input. If a variable name is followed by
|
||||
=_w_o_r_d, the value of the variable is set to _w_o_r_d. The return
|
||||
status is 0 unless an invalid option is encountered, one of the
|
||||
_n_a_m_e_s is not a valid shell variable name, or --ff is supplied with
|
||||
a _n_a_m_e that is not a function.
|
||||
|
||||
rreettuurrnn [_n]
|
||||
Causes a function to exit with the return value specified by _n.
|
||||
@@ -1243,13 +1246,13 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
(see previous item) and the effect of interrupting a
|
||||
command list.
|
||||
ccoommppaatt4411
|
||||
@item compat41 If set, bbaasshh, when in posix mode, treats
|
||||
a single quote in a double-quoted parameter expansion as
|
||||
a special character. The single quotes must match (an
|
||||
even number) and the characters between the single
|
||||
quotes are considered quoted. This is the behavior of
|
||||
posix mode through version 4.1. The default bash behav-
|
||||
ior remains as in previous versions.
|
||||
If set, bbaasshh, when in posix mode, treats a single quote
|
||||
in a double-quoted parameter expansion as a special
|
||||
character. The single quotes must match (an even num-
|
||||
ber) and the characters between the single quotes are
|
||||
considered quoted. This is the behavior of posix mode
|
||||
through version 4.1. The default bash behavior remains
|
||||
as in previous versions.
|
||||
ddiirrssppeellll
|
||||
If set, bbaasshh attempts spelling correction on directory
|
||||
names during word completion if the directory name ini-
|
||||
@@ -1305,9 +1308,9 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
default.
|
||||
gglloobbssttaarr
|
||||
If set, the pattern **** used in a pathname expansion con-
|
||||
text will match a files and zero or more directories and
|
||||
subdirectories. If the pattern is followed by a //, only
|
||||
directories and subdirectories match.
|
||||
text will match all files and zero or more directories
|
||||
and subdirectories. If the pattern is followed by a //,
|
||||
only directories and subdirectories match.
|
||||
ggnnuu__eerrrrffmmtt
|
||||
If set, shell error messages are written in the standard
|
||||
GNU error message format.
|
||||
@@ -1395,12 +1398,14 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
xxppgg__eecchhoo
|
||||
If set, the eecchhoo builtin expands backslash-escape
|
||||
sequences by default.
|
||||
|
||||
ssuussppeenndd [--ff]
|
||||
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-
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user