commit bash-20100722 snapshot

This commit is contained in:
Chet Ramey
2011-12-12 22:03:26 -05:00
parent e054386f3f
commit 9ec5ed6640
69 changed files with 15989 additions and 9437 deletions
+44 -23
View File
@@ -265,9 +265,11 @@ SSHHEELLLL GGRRAAMMMMAARR
If the ttiimmee reserved word precedes a pipeline, the elapsed as well as
user and system time consumed by its execution are reported when the
pipeline terminates. The --pp option changes the output format to that
specified by POSIX. The TTIIMMEEFFOORRMMAATT variable may be set to a format
string that specifies how the timing information should be displayed;
see the description of TTIIMMEEFFOORRMMAATT under SShheellll VVaarriiaabblleess below.
specified by POSIX. When the shell is in _p_o_s_i_x _m_o_d_e, it does not rec-
ognize ttiimmee as a reserved word if the next token begins with a `-'.
The TTIIMMEEFFOORRMMAATT variable may be set to a format string that specifies
how the timing information should be displayed; see the description of
TTIIMMEEFFOORRMMAATT under SShheellll VVaarriiaabblleess below.
When the shell is in _p_o_s_i_x _m_o_d_e, ttiimmee may be followed by a newline. In
this case, the shell displays the total user and system time consumed
@@ -506,7 +508,8 @@ SSHHEELLLL GGRRAAMMMMAARR
executes a compound command with a new set of positional parameters.
Shell functions are declared as follows:
[ ffuunnccttiioonn ] _n_a_m_e () _c_o_m_p_o_u_n_d_-_c_o_m_m_a_n_d [_r_e_d_i_r_e_c_t_i_o_n]
_n_a_m_e () _c_o_m_p_o_u_n_d_-_c_o_m_m_a_n_d [_r_e_d_i_r_e_c_t_i_o_n]
ffuunnccttiioonn _n_a_m_e [()] _c_o_m_p_o_u_n_d_-_c_o_m_m_a_n_d [_r_e_d_i_r_e_c_t_i_o_n]
This defines a function named _n_a_m_e. The reserved word ffuunnccttiioonn
is optional. If the ffuunnccttiioonn reserved word is supplied, the
parentheses are optional. The _b_o_d_y of the function is the com-
@@ -757,22 +760,24 @@ PPAARRAAMMEETTEERRSS
The command argument to the --cc invocation option.
BBAASSHH__LLIINNEENNOO
An array variable whose members are the line numbers in source
files corresponding to each member of FFUUNNCCNNAAMMEE.
$${{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]]}}. Use LLIINNEENNOO to obtain the cur-
rent line number.
files where each corresponding member of FFUUNNCCNNAAMMEE was invoked.
$${{BBAASSHH__LLIINNEENNOO[[_$_i]]}} is the line number in the source file
($${{BBAASSHH__SSOOUURRCCEE[[_$_i_+_1]]}}) where $${{FFUUNNCCNNAAMMEE[[_$_i]]}} was called (or
$${{BBAASSHH__LLIINNEENNOO[[_$_i_-_1]]}} if referenced within another shell func-
tion). Use LLIINNEENNOO to obtain the current line number.
BBAASSHH__RREEMMAATTCCHH
An array variable whose members are assigned by the ==~~ binary
operator to the [[[[ conditional command. The element with index
0 is the portion of the string matching the entire regular
expression. The element with index _n is the portion of the
An array variable whose members are assigned by the ==~~ binary
operator to the [[[[ conditional command. The element with index
0 is the portion of the string matching the entire regular
expression. The element with index _n is the portion of the
string matching the _nth parenthesized subexpression. This vari-
able is read-only.
BBAASSHH__SSOOUURRCCEE
An array variable whose members are the source filenames corre-
sponding to the elements in the FFUUNNCCNNAAMMEE array variable.
An array variable whose members are the source filenames where
the corresponding shell function names in the FFUUNNCCNNAAMMEE array
variable are defined. The shell function $${{FFUUNNCCNNAAMMEE[[_$_i]]}} is
defined in the file $${{BBAASSHH__SSOOUURRCCEE[[_$_i]]}} and called from
$${{BBAASSHH__SSOOUURRCCEE[[_$_i_+_1]]}}.
BBAASSHH__SSUUBBSSHHEELLLL
Incremented by one each time a subshell or subshell environment
is spawned. The initial value is 0.
@@ -863,10 +868,19 @@ PPAARRAAMMEETTEERRSS
An array variable containing the names of all shell functions
currently in the execution call stack. The element with index 0
is the name of any currently-executing shell function. The bot-
tom-most element is "main". This variable exists only when a
shell function is executing. Assignments to FFUUNNCCNNAAMMEE have no
effect and return an error status. If FFUUNNCCNNAAMMEE is unset, it
loses its special properties, even if it is subsequently reset.
tom-most element (the one with the highest index) is "main".
This variable exists only when a shell function is executing.
Assignments to FFUUNNCCNNAAMMEE have no effect and return an error sta-
tus. If FFUUNNCCNNAAMMEE is unset, it loses its special properties,
even if it is subsequently reset.
This variable can be used with BBAASSHH__LLIINNEENNOO and BBAASSHH__SSOOUURRCCEE.
Each element of FFUUNNCCNNAAMMEE has corresponding elements in
BBAASSHH__LLIINNEENNOO and BBAASSHH__SSOOUURRCCEE to describe the call stack. For
instance, $${{FFUUNNCCNNAAMMEE[[_$_i]]}} was called from the file
$${{BBAASSHH__SSOOUURRCCEE[[_$_i_+_1]]}} at line number $${{BBAASSHH__LLIINNEENNOO[[_$_i]]}}. The
ccaalllleerr builtin displays the current call stack using this infor-
mation.
GGRROOUUPPSS An array variable containing the list of groups of which the
current user is a member. Assignments to GGRROOUUPPSS have no effect
@@ -2087,7 +2101,9 @@ FFUUNNCCTTIIOONNSS
tically-named entries in the environment passed to the shell's chil-
dren. Care should be taken in cases where this may cause a problem.
Functions may be recursive. No limit is imposed on the number of
Functions may be recursive. The FFUUNNCCNNEESSTT variable may be used to limit
the depth of the function call stack and restrict the number of func-
tion invocations. By default, no limit is imposed on the number of
recursive calls.
AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN
@@ -4157,7 +4173,8 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
\\aa alert (bell)
\\bb backspace
\\cc suppress further output
\\ee an escape character
\\ee
\\EE an escape character
\\ff form feed
\\nn new line
\\rr carriage return
@@ -5032,6 +5049,10 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS
and all remaining characters on that line to be ignored
in an interactive shell (see CCOOMMMMEENNTTSS above). This
option is enabled by default.
llaassttppiippee
If set, and job control is not active, the shell runs
the last command of a pipeline not executed in the back-
ground in the current shell environment.
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.
@@ -5433,4 +5454,4 @@ BBUUGGSS
GNU Bash-4.1 2010 June 12 BASH(1)
GNU Bash-4.2 2010 July 21 BASH(1)
+12 -5
View File
@@ -5,12 +5,12 @@
.\" Case Western Reserve University
.\" chet@po.cwru.edu
.\"
.\" Last Change: Fri Jul 2 17:31:49 EDT 2010
.\" Last Change: Wed Jul 21 08:47:30 EDT 2010
.\"
.\" bash_builtins, strip all but Built-Ins section
.if \n(zZ=1 .ig zZ
.if \n(zY=1 .ig zY
.TH BASH 1 "2010 July 2" "GNU Bash-4.2"
.TH BASH 1 "2010 July 21" "GNU Bash-4.2"
.\"
.\" There's some problem with having a `@'
.\" in a tagged paragraph with the BSD man macros.
@@ -950,7 +950,11 @@ A shell function is an object that is called like a simple command and
executes a compound command with a new set of positional parameters.
Shell functions are declared as follows:
.TP
[ \fBfunction\fP ] \fIname\fP () \fIcompound\-command\fP [\fIredirection\fP]
\fIname\fP () \fIcompound\-command\fP [\fIredirection\fP]
.PD 0
.TP
\fBfunction\fP \fIname\fP [()] \fIcompound\-command\fP [\fIredirection\fP]
.PD
This defines a function named \fIname\fP.
The reserved word \fBfunction\fP is optional.
If the \fBfunction\fP reserved word is supplied, the parentheses are optional.
@@ -2102,12 +2106,13 @@ for printing selection lists. Automatically set upon receipt of a
.BR SIGWINCH .
.TP
.B MAIL
If this parameter is set to a file name and the
If this parameter is set to a file or directory name and the
.SM
.B MAILPATH
variable is not set,
.B bash
informs the user of the arrival of mail in the specified file.
informs the user of the arrival of mail in the specified file or
Maildir-format directory.
.TP
.B MAILCHECK
Specifies how
@@ -7338,6 +7343,8 @@ backspace
suppress further output
.TP
.B \ee
.TP
.B \eE
an escape character
.TP
.B \ef
+45 -14
View File
@@ -3,7 +3,7 @@
</HEAD>
<BODY><TABLE WIDTH=100%>
<TR>
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2010 June 12<TH ALIGN=RIGHT width=33%>BASH(1)
<TH ALIGN=LEFT width=33%>BASH(1)<TH ALIGN=CENTER width=33%>2010 July 21<TH ALIGN=RIGHT width=33%>BASH(1)
</TR>
</TABLE>
<BR><A HREF="#index">Index</A>
@@ -736,6 +736,8 @@ reserved word precedes a pipeline, the elapsed as well as user and
system time consumed by its execution are reported when the pipeline
terminates.
The <B>-p</B> option changes the output format to that specified by POSIX.
When the shell is in <I>posix mode</I>, it does not recognize
<B>time</B> as a reserved word if the next token begins with a `-'.
The
<FONT SIZE=-1><B>TIMEFORMAT</B>
@@ -1214,7 +1216,10 @@ A shell function is an object that is called like a simple command and
executes a compound command with a new set of positional parameters.
Shell functions are declared as follows:
<DL COMPACT>
<DT>[ <B>function</B> ] <I>name</I> () <I>compound-command</I> [<I>redirection</I>]<DD>
<DT><I>name</I> () <I>compound-command</I> [<I>redirection</I>]<DD>
<DT><B>function</B> <I>name</I> [()] <I>compound-command</I> [<I>redirection</I>]<DD>
This defines a function named <I>name</I>.
The reserved word <B>function</B> is optional.
If the <B>function</B> reserved word is supplied, the parentheses are optional.
@@ -1856,15 +1861,16 @@ The command argument to the <B>-c</B> invocation option.
<DD>
An array variable whose members are the line numbers in source files
corresponding to each member of
<FONT SIZE=-1><B>FUNCNAME</B>.
where each corresponding member of
<FONT SIZE=-1><B>FUNCNAME</B>
</FONT>
was invoked.
<B>${BASH_LINENO[</B><I>$i</I><B>]}</B> is the line number in the source
file where <B>${FUNCNAME[</B><I>$i</I><B>]}</B> was called
file (<B>${BASH_SOURCE[</B><I>$i+1</I><B>]}</B>) 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>]}</B>.
Use
<FONT SIZE=-1><B>LINENO</B>
@@ -1883,12 +1889,16 @@ This variable is read-only.
<DT><B>BASH_SOURCE</B>
<DD>
An array variable whose members are the source filenames corresponding
to the elements in the
An array variable whose members are the source filenames
where the corresponding shell function names in the
<FONT SIZE=-1><B>FUNCNAME</B>
</FONT>
array variable.
array variable are defined.
The shell function
<B>${FUNCNAME[</B><I>$i</I><B>]}</B> is defined in the file
<B>${BASH_SOURCE[</B><I>$i</I><B>]}</B> and called from
<B>${BASH_SOURCE[</B><I>$i+1</I><B>]}</B>.
<DT><B>BASH_SUBSHELL</B>
<DD>
@@ -2057,7 +2067,7 @@ An array variable containing the names of all shell functions
currently in the execution call stack.
The element with index 0 is the name of any currently-executing
shell function.
The bottom-most element is
The bottom-most element (the one with the highest index) is
<TT>&quot;main&quot;</TT>.
This variable exists only when a shell function is executing.
@@ -2072,6 +2082,17 @@ If
</FONT>
is unset, it loses its special properties, even if it is
subsequently reset.
<P>
This variable can be used with <B>BASH_LINENO</B> and <B>BASH_SOURCE</B>.
Each element of <B>FUNCNAME</B> has corresponding elements in
<B>BASH_LINENO</B> and <B>BASH_SOURCE</B> to describe the call stack.
For instance, <B>${FUNCNAME[</B><I>$i</I><B>]}</B> was called from the file
<B>${BASH_SOURCE[</B><I>$i+1</I><B>]}</B> at line number
<B>${BASH_LINENO[</B><I>$i</I><B>]}</B>.
The <B>caller</B> builtin displays the current call stack using this
information.
<DT><B>GROUPS</B>
<DD>
@@ -4976,8 +4997,10 @@ shell's children.
Care should be taken in cases where this may cause a problem.
<P>
Functions may be recursive. No limit is imposed on the number
of recursive calls.
Functions may be recursive.
The <B>FUNCNEST</B> variable may be used to limit the depth of the
function call stack and restrict the number of function invocations.
By default, no limit is imposed on the number of recursive calls.
<A NAME="lbBV">&nbsp;</A>
<H3>ARITHMETIC EVALUATION</H3>
@@ -9402,6 +9425,9 @@ backspace
suppress further output
<DT><B>\e</B>
<DD>
<DT><B>\E</B>
<DD>
an escape character
<DT><B>\f</B>
@@ -11585,6 +11611,11 @@ line to be ignored in an interactive shell (see
</FONT>
above). This option is enabled by default.
<DT><B>lastpipe</B>
<DD>
If set, and job control is not active, the shell runs the last command of
a pipeline not executed in the background in the current shell environment.
<DT><B>lithist</B>
<DD>
@@ -12629,7 +12660,7 @@ There may be only one active coprocess at a time.
<HR>
<TABLE WIDTH=100%>
<TR>
<TH ALIGN=LEFT width=33%>GNU Bash-4.1<TH ALIGN=CENTER width=33%>2010 June 12<TH ALIGN=RIGHT width=33%>BASH(1)
<TH ALIGN=LEFT width=33%>GNU Bash-4.2<TH ALIGN=CENTER width=33%>2010 July 21<TH ALIGN=RIGHT width=33%>BASH(1)
</TR>
</TABLE>
<HR>
@@ -12735,6 +12766,6 @@ There may be only one active coprocess at a time.
</DL>
<HR>
This document was created by man2html from bash.1.<BR>
Time: 29 June 2010 14:02:49 EDT
Time: 21 July 2010 08:54:57 EDT
</BODY>
</HTML>
BIN
View File
Binary file not shown.
+6299 -6262
View File
File diff suppressed because it is too large Load Diff
+9 -9
View File
@@ -77,16 +77,16 @@
@xrdef{Shell Parameters-snt}{Section@tie 3.4}
@xrdef{Positional Parameters-title}{Positional Parameters}
@xrdef{Positional Parameters-snt}{Section@tie 3.4.1}
@xrdef{Special Parameters-title}{Special Parameters}
@xrdef{Special Parameters-snt}{Section@tie 3.4.2}
@xrdef{Shell Parameters-pg}{17}
@xrdef{Positional Parameters-pg}{17}
@xrdef{Special Parameters-title}{Special Parameters}
@xrdef{Special Parameters-snt}{Section@tie 3.4.2}
@xrdef{Shell Expansions-title}{Shell Expansions}
@xrdef{Shell Expansions-snt}{Section@tie 3.5}
@xrdef{Special Parameters-pg}{18}
@xrdef{Shell Expansions-pg}{18}
@xrdef{Brace Expansion-title}{Brace Expansion}
@xrdef{Brace Expansion-snt}{Section@tie 3.5.1}
@xrdef{Shell Expansions-pg}{19}
@xrdef{Brace Expansion-pg}{19}
@xrdef{Tilde Expansion-title}{Tilde Expansion}
@xrdef{Tilde Expansion-snt}{Section@tie 3.5.2}
@@ -100,17 +100,17 @@
@xrdef{Arithmetic Expansion-snt}{Section@tie 3.5.5}
@xrdef{Process Substitution-title}{Process Substitution}
@xrdef{Process Substitution-snt}{Section@tie 3.5.6}
@xrdef{Word Splitting-title}{Word Splitting}
@xrdef{Word Splitting-snt}{Section@tie 3.5.7}
@xrdef{Command Substitution-pg}{24}
@xrdef{Arithmetic Expansion-pg}{24}
@xrdef{Process Substitution-pg}{24}
@xrdef{Word Splitting-title}{Word Splitting}
@xrdef{Word Splitting-snt}{Section@tie 3.5.7}
@xrdef{Filename Expansion-title}{Filename Expansion}
@xrdef{Filename Expansion-snt}{Section@tie 3.5.8}
@xrdef{Pattern Matching-title}{Pattern Matching}
@xrdef{Pattern Matching-snt}{Section@tie 3.5.8.1}
@xrdef{Word Splitting-pg}{25}
@xrdef{Filename Expansion-pg}{25}
@xrdef{Pattern Matching-title}{Pattern Matching}
@xrdef{Pattern Matching-snt}{Section@tie 3.5.8.1}
@xrdef{Pattern Matching-pg}{26}
@xrdef{Quote Removal-title}{Quote Removal}
@xrdef{Quote Removal-snt}{Section@tie 3.5.9}
@@ -123,9 +123,9 @@
@xrdef{Simple Command Expansion-title}{Simple Command Expansion}
@xrdef{Simple Command Expansion-snt}{Section@tie 3.7.1}
@xrdef{Executing Commands-pg}{30}
@xrdef{Simple Command Expansion-pg}{30}
@xrdef{Command Search and Execution-title}{Command Search and Execution}
@xrdef{Command Search and Execution-snt}{Section@tie 3.7.2}
@xrdef{Simple Command Expansion-pg}{31}
@xrdef{Command Search and Execution-pg}{31}
@xrdef{Command Execution Environment-title}{Command Execution Environment}
@xrdef{Command Execution Environment-snt}{Section@tie 3.7.3}
@@ -156,7 +156,7 @@
@xrdef{The Set Builtin-title}{The Set Builtin}
@xrdef{The Set Builtin-snt}{Section@tie 4.3.1}
@xrdef{Modifying Shell Behavior-pg}{53}
@xrdef{The Set Builtin-pg}{53}
@xrdef{The Set Builtin-pg}{54}
@xrdef{The Shopt Builtin-title}{The Shopt Builtin}
@xrdef{The Shopt Builtin-snt}{Section@tie 4.3.2}
@xrdef{The Shopt Builtin-pg}{57}
+2 -2
View File
@@ -36,11 +36,11 @@
\entry{read}{50}{\code {read}}
\entry{readarray}{51}{\code {readarray}}
\entry{source}{51}{\code {source}}
\entry{type}{51}{\code {type}}
\entry{type}{52}{\code {type}}
\entry{typeset}{52}{\code {typeset}}
\entry{ulimit}{52}{\code {ulimit}}
\entry{unalias}{53}{\code {unalias}}
\entry{set}{53}{\code {set}}
\entry{set}{54}{\code {set}}
\entry{shopt}{57}{\code {shopt}}
\entry{dirs}{83}{\code {dirs}}
\entry{popd}{84}{\code {popd}}
+2 -2
View File
@@ -60,7 +60,7 @@
\entry {\code {readonly}}{40}
\entry {\code {return}}{40}
\initial {S}
\entry {\code {set}}{53}
\entry {\code {set}}{54}
\entry {\code {shift}}{41}
\entry {\code {shopt}}{57}
\entry {\code {source}}{51}
@@ -69,7 +69,7 @@
\entry {\code {test}}{41}
\entry {\code {times}}{42}
\entry {\code {trap}}{42}
\entry {\code {type}}{51}
\entry {\code {type}}{52}
\entry {\code {typeset}}{52}
\initial {U}
\entry {\code {ulimit}}{52}
+2 -2
View File
@@ -44,7 +44,7 @@
\entry{shell variable}{17}{shell variable}
\entry{parameters, positional}{17}{parameters, positional}
\entry{parameters, special}{18}{parameters, special}
\entry{expansion}{18}{expansion}
\entry{expansion}{19}{expansion}
\entry{brace expansion}{19}{brace expansion}
\entry{expansion, brace}{19}{expansion, brace}
\entry{tilde expansion}{20}{tilde expansion}
@@ -63,7 +63,7 @@
\entry{pattern matching}{26}{pattern matching}
\entry{matching, pattern}{26}{matching, pattern}
\entry{redirection}{27}{redirection}
\entry{command expansion}{30}{command expansion}
\entry{command expansion}{31}{command expansion}
\entry{command execution}{31}{command execution}
\entry{command search}{31}{command search}
\entry{execution environment}{32}{execution environment}
+2 -2
View File
@@ -14,7 +14,7 @@
\initial {C}
\entry {command editing}{96}
\entry {command execution}{31}
\entry {command expansion}{30}
\entry {command expansion}{31}
\entry {command history}{123}
\entry {command search}{31}
\entry {command substitution}{24}
@@ -41,7 +41,7 @@
\entry {event designators}{125}
\entry {execution environment}{32}
\entry {exit status}{3, 33}
\entry {expansion}{18}
\entry {expansion}{19}
\entry {expansion, arithmetic}{24}
\entry {expansion, brace}{19}
\entry {expansion, filename}{25}
BIN
View File
Binary file not shown.
+47 -17
View File
@@ -1,6 +1,6 @@
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created on June, 29 2010 by texi2html 1.64 -->
<!-- Created on July, 21 2010 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
@@ -33,12 +33,12 @@ 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.1, 12 June 2010).
the Bash shell (version 4.2, 21 July 2010).
</P><P>
This is Edition 4.1, last updated 12 June 2010,
This is Edition 4.2, last updated 21 July 2010,
of <CITE>The GNU Bash Reference Manual</CITE>,
for <CODE>Bash</CODE>, Version 4.1.
for <CODE>Bash</CODE>, Version 4.2.
</P><P>
Bash contains features that appear in other popular shells, and some
@@ -914,6 +914,9 @@ The statistics currently consist of elapsed (wall-clock) time and
user and system time consumed by the command's execution.
The <SAMP>`-p'</SAMP> option changes the output format to that specified
by POSIX.
When the shell is in POSIX mode (see section <A HREF="bashref.html#SEC91">6.11 Bash POSIX Mode</A>),
it does not recognize <CODE>time</CODE> as a reserved word if the next
token begins with a <SAMP>`-'</SAMP>.
The <CODE>TIMEFORMAT</CODE> variable may be set to a format string that
specifies how the timing information should be displayed.
See section <A HREF="bashref.html#SEC68">5.2 Bash Variables</A>, for a description of the available formats.
@@ -1137,7 +1140,7 @@ until it evaluates to zero.
Each time <VAR>expr2</VAR> evaluates to a non-zero value, <VAR>commands</VAR> are
executed and the arithmetic expression <VAR>expr3</VAR> is evaluated.
If any expression is omitted, it behaves as if it evaluates to 1.
The return value is the exit status of the last command in <VAR>list</VAR>
The return value is the exit status of the last command in <VAR>commands</VAR>
that is executed, or false if any of the expressions is invalid.
</P><P>
@@ -1630,7 +1633,8 @@ shell context; no new process is created to interpret them.
Functions are declared using this syntax:
<A NAME="IDX45"></A>
<TABLE><tr><td>&nbsp;</td><td class=example><pre>[ <CODE>function</CODE> ] <VAR>name</VAR> () <VAR>compound-command</VAR> [ <VAR>redirections</VAR> ]
<TABLE><tr><td>&nbsp;</td><td class=example><pre><VAR>name</VAR> () <VAR>compound-command</VAR> [ <VAR>redirections</VAR> ]<BR>or<BR>
<CODE>function</CODE> <VAR>name</VAR> [()] <VAR>compound-command</VAR> [ <VAR>redirections</VAR> ]
</pre></td></tr></table></P><P>
This defines a shell function named <VAR>name</VAR>. The reserved
@@ -1735,8 +1739,10 @@ shell's children.
Care should be taken in cases where this may cause a problem.
</P><P>
Functions may be recursive. No limit is placed on the number of
recursive calls.
Functions may be recursive.
The <CODE>FUNCNEST</CODE> variable may be used to limit the depth of the
function call stack and restrict the number of function invocations.
By default, no limit is placed on the number of recursive calls.
</P><P>
<A NAME="Shell Parameters"></A>
@@ -4743,6 +4749,7 @@ escape characters by default.
<DT><CODE>\c</CODE>
<DD>suppress further output
<DT><CODE>\e</CODE>
<DD><DT><CODE>\E</CODE>
<DD>escape
<DT><CODE>\f</CODE>
<DD>form feed
@@ -5914,6 +5921,11 @@ line to be ignored in an interactive shell.
This option is enabled by default.
<P>
<DT><CODE>lastpipe</CODE>
<DD>If set, and job control is not active, the shell runs the last command of
a pipeline not executed in the background in the current shell environment.
<P>
<DT><CODE>lithist</CODE>
<DD>If enabled, and the <CODE>cmdhist</CODE>
option is enabled, multi-line commands are saved to the history with
@@ -6321,11 +6333,11 @@ The command argument to the <SAMP>`-c'</SAMP> invocation option.
<DT><CODE>BASH_LINENO</CODE>
<DD><A NAME="IDX153"></A>
An array variable whose members are the line numbers in source files
corresponding to each member of <VAR>FUNCNAME</VAR>.
<CODE>${BASH_LINENO[$i]}</CODE> is the line number in the source file where
where each corresponding member of <VAR>FUNCNAME</VAR> was invoked.
<CODE>${BASH_LINENO[$i]}</CODE> is the line number in the source file
(<CODE>${BASH_SOURCE[$i+1]}</CODE>) where
<CODE>${FUNCNAME[$i]}</CODE> was called (or <CODE>${BASH_LINENO[$i-1]}</CODE> if
referenced within another shell function).
The corresponding source file name is <CODE>${BASH_SOURCE[$i]}</CODE>.
referenced within another shell function).
Use <CODE>LINENO</CODE> to obtain the current line number.
<P>
@@ -6345,8 +6357,11 @@ This variable is read-only.
<A NAME="IDX156"></A>
<DT><CODE>BASH_SOURCE</CODE>
<DD><A NAME="IDX157"></A>
An array variable whose members are the source filenames corresponding
to the elements in the <CODE>FUNCNAME</CODE> array variable.
An array variable whose members are the source filenames where the
corresponding shell function names in the <CODE>FUNCNAME</CODE> array
variable are defined.
The shell function <CODE>${FUNCNAME[$i]}</CODE> is defined in the file
<CODE>${BASH_SOURCE[$i]}</CODE> and called from <CODE>${BASH_SOURCE[$i+1]}</CODE>
<P>
<A NAME="IDX158"></A>
@@ -6573,13 +6588,23 @@ An array variable containing the names of all shell functions
currently in the execution call stack.
The element with index 0 is the name of any currently-executing
shell function.
The bottom-most element is <CODE>"main"</CODE>.
The bottom-most element (the one with the highest index)
is <CODE>"main"</CODE>.
This variable exists only when a shell function is executing.
Assignments to <CODE>FUNCNAME</CODE> have no effect and return an error status.
If <CODE>FUNCNAME</CODE> is unset, it loses its special properties, even if
it is subsequently reset.
<P>
This variable can be used with <CODE>BASH_LINENO</CODE> and <CODE>BASH_SOURCE</CODE>.
Each element of <CODE>FUNCNAME</CODE> has corresponding elements in
<CODE>BASH_LINENO</CODE> and <CODE>BASH_SOURCE</CODE> to describe the call stack.
For instance, <CODE>${FUNCNAME[$i]}</CODE> was called from the file
<CODE>${BASH_SOURCE[$i+1]}</CODE> at line number <CODE>${BASH_LINENO[$i]}</CODE>.
The <CODE>caller</CODE> builtin displays the current call stack using this
information.
</P><P>
<A NAME="IDX200"></A>
<DT><CODE>FUNCNEST</CODE>
<DD><A NAME="IDX201"></A>
@@ -8730,6 +8755,11 @@ one of those defined to perform pattern removal. In this case, they do
not have to appear as matched pairs.
<P>
<LI>
The parser does not recognize <CODE>time</CODE> as a reserved word if the next
token begins with a <SAMP>`-'</SAMP>.
<P>
<LI>
If a POSIX special builtin returns an error status, a
non-interactive shell exits. The fatal errors are those listed in
@@ -16327,7 +16357,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>June, 29 2010</I>
This document was generated by <I>Chet Ramey</I> on <I>July, 21 2010</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
@@ -16489,7 +16519,7 @@ the following structure:
<BR>
<FONT SIZE="-1">
This document was generated
by <I>Chet Ramey</I> on <I>June, 29 2010</I>
by <I>Chet Ramey</I> on <I>July, 21 2010</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
+277 -250
View File
@@ -2,10 +2,10 @@ 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.1, 12 June 2010).
the Bash shell (version 4.2, 21 July 2010).
This is Edition 4.1, last updated 12 June 2010, of `The GNU Bash
Reference Manual', for `Bash', Version 4.1.
This is Edition 4.2, last updated 21 July 2010, of `The GNU Bash
Reference Manual', for `Bash', Version 4.2.
Copyright (C) 1988-2010 Free Software Foundation, Inc.
@@ -38,10 +38,10 @@ Bash Features
*************
This text is a brief description of the features that are present in
the Bash shell (version 4.1, 12 June 2010).
the Bash shell (version 4.2, 21 July 2010).
This is Edition 4.1, last updated 12 June 2010, of `The GNU Bash
Reference Manual', for `Bash', Version 4.1.
This is Edition 4.2, last updated 21 July 2010, of `The GNU Bash
Reference Manual', for `Bash', Version 4.2.
Bash contains features that appear in other popular shells, and some
features that only appear in Bash. Some of the shells that Bash has
@@ -591,12 +591,14 @@ any redirections specified by the command.
the pipeline once it finishes. The statistics currently consist of
elapsed (wall-clock) time and user and system time consumed by the
command's execution. The `-p' option changes the output format to that
specified by POSIX. The `TIMEFORMAT' variable may be set to a format
string that specifies how the timing information should be displayed.
*Note Bash Variables::, for a description of the available formats.
The use of `time' as a reserved word permits the timing of shell
builtins, shell functions, and pipelines. An external `time' command
cannot time these easily.
specified by POSIX. When the shell is in POSIX mode (*note Bash POSIX
Mode::), it does not recognize `time' as a reserved word if the next
token begins with a `-'. The `TIMEFORMAT' variable may be set to a
format string that specifies how the timing information should be
displayed. *Note Bash Variables::, for a description of the available
formats. The use of `time' as a reserved word permits the timing of
shell builtins, shell functions, and pipelines. An external `time'
command cannot time these easily.
When the shell is in POSIX mode (*note Bash POSIX Mode::), `time'
may be followed by a newline. In this case, the shell displays the
@@ -738,7 +740,7 @@ syntax, it may be replaced with one or more newlines.
COMMANDS are executed and the arithmetic expression EXPR3 is
evaluated. If any expression is omitted, it behaves as if it
evaluates to 1. The return value is the exit status of the last
command in LIST that is executed, or false if any of the
command in COMMANDS that is executed, or false if any of the
expressions is invalid.
@@ -1071,7 +1073,10 @@ executed. Shell functions are executed in the current shell context;
no new process is created to interpret them.
Functions are declared using this syntax:
[ `function' ] NAME () COMPOUND-COMMAND [ REDIRECTIONS ]
NAME () COMPOUND-COMMAND [ REDIRECTIONS ]
or
`function' NAME [()] COMPOUND-COMMAND [ REDIRECTIONS ]
This defines a shell function named NAME. The reserved word
`function' is optional. If the `function' reserved word is supplied,
@@ -1146,7 +1151,9 @@ variables with the same name may result in multiple identically-named
entries in the environment passed to the shell's children. Care should
be taken in cases where this may cause a problem.
Functions may be recursive. No limit is placed on the number of
Functions may be recursive. The `FUNCNEST' variable may be used to
limit the depth of the function call stack and restrict the number of
function invocations. By default, no limit is placed on the number of
recursive calls.

@@ -3116,6 +3123,7 @@ POSIX standard.
suppress further output
`\e'
`\E'
escape
`\f'
@@ -4033,6 +4041,11 @@ This builtin allows you to change additional shell optional behavior.
remaining characters on that line to be ignored in an
interactive shell. This option is enabled by default.
`lastpipe'
If set, and job control is not active, the shell runs the
last command of a pipeline not executed in the background in
the current shell environment.
`lithist'
If enabled, and the `cmdhist' option is enabled, multi-line
commands are saved to the history with embedded newlines
@@ -4284,12 +4297,11 @@ Variables::).
`BASH_LINENO'
An array variable whose members are the line numbers in source
files corresponding to each member of FUNCNAME.
`${BASH_LINENO[$i]}' is the line number in the source file where
`${FUNCNAME[$i]}' was called (or `${BASH_LINENO[$i-1]}' if
referenced within another shell function). The corresponding
source file name is `${BASH_SOURCE[$i]}'. Use `LINENO' to obtain
the current line number.
files where each corresponding member of FUNCNAME was invoked.
`${BASH_LINENO[$i]}' is the line number in the source file
(`${BASH_SOURCE[$i+1]}') where `${FUNCNAME[$i]}' was called (or
`${BASH_LINENO[$i-1]}' if referenced within another shell
function). Use `LINENO' to obtain the current line number.
`BASH_REMATCH'
An array variable whose members are assigned by the `=~' binary
@@ -4300,8 +4312,11 @@ Variables::).
parenthesized subexpression. This variable is read-only.
`BASH_SOURCE'
An array variable whose members are the source filenames
corresponding to the elements in the `FUNCNAME' array variable.
An array variable whose members are the source filenames where the
corresponding shell function names in the `FUNCNAME' array
variable are defined. The shell function `${FUNCNAME[$i]}' is
defined in the file `${BASH_SOURCE[$i]}' and called from
`${BASH_SOURCE[$i+1]}'
`BASH_SUBSHELL'
Incremented by one each time a subshell or subshell environment is
@@ -4443,10 +4458,19 @@ Variables::).
An array variable containing the names of all shell functions
currently in the execution call stack. The element with index 0
is the name of any currently-executing shell function. The
bottom-most element is `"main"'. This variable exists only when a
shell function is executing. Assignments to `FUNCNAME' have no
effect and return an error status. If `FUNCNAME' is unset, it
loses its special properties, even if it is subsequently reset.
bottom-most element (the one with the highest index) is `"main"'.
This variable exists only when a shell function is executing.
Assignments to `FUNCNAME' have no effect and return an error
status. If `FUNCNAME' is unset, it loses its special properties,
even if it is subsequently reset.
This variable can be used with `BASH_LINENO' and `BASH_SOURCE'.
Each element of `FUNCNAME' has corresponding elements in
`BASH_LINENO' and `BASH_SOURCE' to describe the call stack. For
instance, `${FUNCNAME[$i]}' was called from the file
`${BASH_SOURCE[$i+1]}' at line number `${BASH_LINENO[$i]}'. The
`caller' builtin displays the current call stack using this
information.
`FUNCNEST'
If set to a numeric value greater than 0, defines a maximum
@@ -5921,102 +5945,105 @@ startup files.
the operator is one of those defined to perform pattern removal.
In this case, they do not have to appear as matched pairs.
21. If a POSIX special builtin returns an error status, a
21. The parser does not recognize `time' as a reserved word if the next
token begins with a `-'.
22. If a POSIX special builtin returns an error status, a
non-interactive shell exits. The fatal errors are those listed in
the POSIX standard, and include things like passing incorrect
options, redirection errors, variable assignment errors for
assignments preceding the command name, and so on.
22. If `CDPATH' is set, the `cd' builtin will not implicitly append
23. If `CDPATH' is set, the `cd' builtin will not implicitly append
the current directory to it. This means that `cd' will fail if no
valid directory name can be constructed from any of the entries in
`$CDPATH', even if the a directory with the same name as the name
given as an argument to `cd' exists in the current directory.
23. A non-interactive shell exits with an error status if a variable
24. A non-interactive shell exits with an error status if a variable
assignment error occurs when no command name follows the assignment
statements. A variable assignment error occurs, for example, when
trying to assign a value to a readonly variable.
24. A non-interactive shell exits with an error status if the iteration
25. A non-interactive shell exits with an error status if the iteration
variable in a `for' statement or the selection variable in a
`select' statement is a readonly variable.
25. Process substitution is not available.
26. Process substitution is not available.
26. Assignment statements preceding POSIX special builtins persist in
27. Assignment statements preceding POSIX special builtins persist in
the shell environment after the builtin completes.
27. Assignment statements preceding shell function calls persist in the
28. Assignment statements preceding shell function calls persist in the
shell environment after the function returns, as if a POSIX
special builtin command had been executed.
28. The `export' and `readonly' builtin commands display their output
29. The `export' and `readonly' builtin commands display their output
in the format required by POSIX.
29. The `trap' builtin displays signal names without the leading `SIG'.
30. The `trap' builtin displays signal names without the leading `SIG'.
30. The `trap' builtin doesn't check the first argument for a possible
31. The `trap' builtin doesn't check the first argument for a possible
signal specification and revert the signal handling to the original
disposition if it is, unless that argument consists solely of
digits and is a valid signal number. If users want to reset the
handler for a given signal to the original disposition, they
should use `-' as the first argument.
31. The `.' and `source' builtins do not search the current directory
32. The `.' and `source' builtins do not search the current directory
for the filename argument if it is not found by searching `PATH'.
32. Subshells spawned to execute command substitutions inherit the
33. Subshells spawned to execute command substitutions inherit the
value of the `-e' option from the parent shell. When not in POSIX
mode, Bash clears the `-e' option in such subshells.
33. Alias expansion is always enabled, even in non-interactive shells.
34. Alias expansion is always enabled, even in non-interactive shells.
34. When the `alias' builtin displays alias definitions, it does not
35. When the `alias' builtin displays alias definitions, it does not
display them with a leading `alias ' unless the `-p' option is
supplied.
35. When the `set' builtin is invoked without options, it does not
36. When the `set' builtin is invoked without options, it does not
display shell function names and definitions.
36. When the `set' builtin is invoked without options, it displays
37. When the `set' builtin is invoked without options, it displays
variable values without quotes, unless they contain shell
metacharacters, even if the result contains nonprinting characters.
37. When the `cd' builtin is invoked in LOGICAL mode, and the pathname
38. When the `cd' builtin is invoked in LOGICAL mode, and the pathname
constructed from `$PWD' and the directory name supplied as an
argument does not refer to an existing directory, `cd' will fail
instead of falling back to PHYSICAL mode.
38. When the `pwd' builtin is supplied the `-P' option, it resets
39. When the `pwd' builtin is supplied the `-P' option, it resets
`$PWD' to a pathname containing no symlinks.
39. The `pwd' builtin verifies that the value it prints is the same as
40. The `pwd' builtin verifies that the value it prints is the same as
the current directory, even if it is not asked to check the file
system with the `-P' option.
40. When listing the history, the `fc' builtin does not include an
41. When listing the history, the `fc' builtin does not include an
indication of whether or not a history entry has been modified.
41. The default editor used by `fc' is `ed'.
42. The default editor used by `fc' is `ed'.
42. The `type' and `command' builtins will not report a non-executable
43. The `type' and `command' builtins will not report a non-executable
file as having been found, though the shell will attempt to
execute such a file if it is the only so-named file found in
`$PATH'.
43. The `vi' editing mode will invoke the `vi' editor directly when
44. The `vi' editing mode will invoke the `vi' editor directly when
the `v' command is run, instead of checking `$VISUAL' and
`$EDITOR'.
44. When the `xpg_echo' option is enabled, Bash does not attempt to
45. When the `xpg_echo' option is enabled, Bash does not attempt to
interpret any arguments to `echo' as options. Each argument is
displayed, after escape characters are converted.
45. The `ulimit' builtin uses a block size of 512 bytes for the `-c'
46. The `ulimit' builtin uses a block size of 512 bytes for the `-c'
and `-f' options.
46. The arrival of `SIGCHLD' when a trap is set on `SIGCHLD' does not
47. The arrival of `SIGCHLD' when a trap is set on `SIGCHLD' does not
interrupt the `wait' builtin and cause it to return immediately.
The trap command is run once for each child that exits.
@@ -9867,7 +9894,7 @@ D.1 Index of Shell Builtin Commands
* disown: Job Control Builtins.
(line 83)
* echo: Bash Builtins. (line 226)
* enable: Bash Builtins. (line 286)
* enable: Bash Builtins. (line 287)
* eval: Bourne Shell Builtins.
(line 66)
* exec: Bourne Shell Builtins.
@@ -9884,26 +9911,26 @@ D.1 Index of Shell Builtin Commands
(line 106)
* hash: Bourne Shell Builtins.
(line 148)
* help: Bash Builtins. (line 314)
* help: Bash Builtins. (line 315)
* history: Bash History Builtins.
(line 39)
* jobs: Job Control Builtins.
(line 25)
* kill: Job Control Builtins.
(line 57)
* let: Bash Builtins. (line 334)
* local: Bash Builtins. (line 341)
* logout: Bash Builtins. (line 351)
* mapfile: Bash Builtins. (line 355)
* let: Bash Builtins. (line 335)
* local: Bash Builtins. (line 342)
* logout: Bash Builtins. (line 352)
* mapfile: Bash Builtins. (line 356)
* popd: Directory Stack Builtins.
(line 37)
* printf: Bash Builtins. (line 401)
* printf: Bash Builtins. (line 402)
* pushd: Directory Stack Builtins.
(line 58)
* pwd: Bourne Shell Builtins.
(line 167)
* read: Bash Builtins. (line 446)
* readarray: Bash Builtins. (line 526)
* read: Bash Builtins. (line 447)
* readarray: Bash Builtins. (line 527)
* readonly: Bourne Shell Builtins.
(line 176)
* return: Bourne Shell Builtins.
@@ -9912,7 +9939,7 @@ D.1 Index of Shell Builtin Commands
* shift: Bourne Shell Builtins.
(line 205)
* shopt: The Shopt Builtin. (line 9)
* source: Bash Builtins. (line 534)
* source: Bash Builtins. (line 535)
* suspend: Job Control Builtins.
(line 94)
* test: Bourne Shell Builtins.
@@ -9921,12 +9948,12 @@ D.1 Index of Shell Builtin Commands
(line 285)
* trap: Bourne Shell Builtins.
(line 290)
* type: Bash Builtins. (line 538)
* typeset: Bash Builtins. (line 569)
* ulimit: Bash Builtins. (line 575)
* type: Bash Builtins. (line 539)
* typeset: Bash Builtins. (line 570)
* ulimit: Bash Builtins. (line 576)
* umask: Bourne Shell Builtins.
(line 336)
* unalias: Bash Builtins. (line 664)
* unalias: Bash Builtins. (line 665)
* unset: Bourne Shell Builtins.
(line 353)
* wait: Job Control Builtins.
@@ -10003,12 +10030,12 @@ D.3 Parameter and Variable Index
* BASH_ENV: Bash Variables. (line 69)
* BASH_EXECUTION_STRING: Bash Variables. (line 75)
* BASH_LINENO: Bash Variables. (line 78)
* BASH_REMATCH: Bash Variables. (line 87)
* BASH_SOURCE: Bash Variables. (line 95)
* BASH_SUBSHELL: Bash Variables. (line 99)
* BASH_VERSINFO: Bash Variables. (line 103)
* BASH_VERSION: Bash Variables. (line 127)
* BASH_XTRACEFD: Bash Variables. (line 130)
* BASH_REMATCH: Bash Variables. (line 86)
* BASH_SOURCE: Bash Variables. (line 94)
* BASH_SUBSHELL: Bash Variables. (line 101)
* BASH_VERSINFO: Bash Variables. (line 105)
* BASH_VERSION: Bash Variables. (line 129)
* BASH_XTRACEFD: Bash Variables. (line 132)
* BASHOPTS: Bash Variables. (line 16)
* BASHPID: Bash Variables. (line 25)
* bell-style: Readline Init File Syntax.
@@ -10017,16 +10044,16 @@ D.3 Parameter and Variable Index
(line 45)
* CDPATH: Bourne Shell Variables.
(line 9)
* COLUMNS: Bash Variables. (line 141)
* COLUMNS: Bash Variables. (line 143)
* comment-begin: Readline Init File Syntax.
(line 50)
* COMP_CWORD: Bash Variables. (line 146)
* COMP_KEY: Bash Variables. (line 175)
* COMP_LINE: Bash Variables. (line 152)
* COMP_POINT: Bash Variables. (line 157)
* COMP_TYPE: Bash Variables. (line 165)
* COMP_WORDBREAKS: Bash Variables. (line 179)
* COMP_WORDS: Bash Variables. (line 185)
* COMP_CWORD: Bash Variables. (line 148)
* COMP_KEY: Bash Variables. (line 177)
* COMP_LINE: Bash Variables. (line 154)
* COMP_POINT: Bash Variables. (line 159)
* COMP_TYPE: Bash Variables. (line 167)
* COMP_WORDBREAKS: Bash Variables. (line 181)
* COMP_WORDS: Bash Variables. (line 187)
* completion-display-width: Readline Init File Syntax.
(line 55)
* completion-ignore-case: Readline Init File Syntax.
@@ -10037,73 +10064,73 @@ D.3 Parameter and Variable Index
(line 73)
* completion-query-items: Readline Init File Syntax.
(line 80)
* COMPREPLY: Bash Variables. (line 193)
* COMPREPLY: Bash Variables. (line 195)
* convert-meta: Readline Init File Syntax.
(line 90)
* COPROC: Bash Variables. (line 198)
* DIRSTACK: Bash Variables. (line 202)
* COPROC: Bash Variables. (line 200)
* DIRSTACK: Bash Variables. (line 204)
* disable-completion: Readline Init File Syntax.
(line 96)
* editing-mode: Readline Init File Syntax.
(line 101)
* EMACS: Bash Variables. (line 212)
* EMACS: Bash Variables. (line 214)
* enable-keypad: Readline Init File Syntax.
(line 112)
* ENV: Bash Variables. (line 217)
* EUID: Bash Variables. (line 221)
* ENV: Bash Variables. (line 219)
* EUID: Bash Variables. (line 223)
* expand-tilde: Readline Init File Syntax.
(line 123)
* FCEDIT: Bash Variables. (line 225)
* FIGNORE: Bash Variables. (line 229)
* FUNCNAME: Bash Variables. (line 235)
* FUNCNEST: Bash Variables. (line 244)
* GLOBIGNORE: Bash Variables. (line 249)
* GROUPS: Bash Variables. (line 255)
* histchars: Bash Variables. (line 261)
* HISTCMD: Bash Variables. (line 276)
* HISTCONTROL: Bash Variables. (line 281)
* HISTFILE: Bash Variables. (line 297)
* HISTFILESIZE: Bash Variables. (line 301)
* HISTIGNORE: Bash Variables. (line 309)
* FCEDIT: Bash Variables. (line 227)
* FIGNORE: Bash Variables. (line 231)
* FUNCNAME: Bash Variables. (line 237)
* FUNCNEST: Bash Variables. (line 255)
* GLOBIGNORE: Bash Variables. (line 260)
* GROUPS: Bash Variables. (line 266)
* histchars: Bash Variables. (line 272)
* HISTCMD: Bash Variables. (line 287)
* HISTCONTROL: Bash Variables. (line 292)
* HISTFILE: Bash Variables. (line 308)
* HISTFILESIZE: Bash Variables. (line 312)
* HISTIGNORE: Bash Variables. (line 320)
* history-preserve-point: Readline Init File Syntax.
(line 127)
* history-size: Readline Init File Syntax.
(line 133)
* HISTSIZE: Bash Variables. (line 328)
* HISTTIMEFORMAT: Bash Variables. (line 332)
* HISTSIZE: Bash Variables. (line 339)
* HISTTIMEFORMAT: Bash Variables. (line 343)
* HOME: Bourne Shell Variables.
(line 13)
* horizontal-scroll-mode: Readline Init File Syntax.
(line 138)
* HOSTFILE: Bash Variables. (line 341)
* HOSTNAME: Bash Variables. (line 352)
* HOSTTYPE: Bash Variables. (line 355)
* HOSTFILE: Bash Variables. (line 352)
* HOSTNAME: Bash Variables. (line 363)
* HOSTTYPE: Bash Variables. (line 366)
* IFS: Bourne Shell Variables.
(line 18)
* IGNOREEOF: Bash Variables. (line 358)
* IGNOREEOF: Bash Variables. (line 369)
* input-meta: Readline Init File Syntax.
(line 145)
* INPUTRC: Bash Variables. (line 368)
* INPUTRC: Bash Variables. (line 379)
* isearch-terminators: Readline Init File Syntax.
(line 152)
* keymap: Readline Init File Syntax.
(line 159)
* LANG: Bash Variables. (line 372)
* LC_ALL: Bash Variables. (line 376)
* LC_COLLATE: Bash Variables. (line 380)
* LC_CTYPE: Bash Variables. (line 387)
* LANG: Bash Variables. (line 383)
* LC_ALL: Bash Variables. (line 387)
* LC_COLLATE: Bash Variables. (line 391)
* LC_CTYPE: Bash Variables. (line 398)
* LC_MESSAGES <1>: Locale Translation. (line 11)
* LC_MESSAGES: Bash Variables. (line 392)
* LC_NUMERIC: Bash Variables. (line 396)
* LINENO: Bash Variables. (line 400)
* LINES: Bash Variables. (line 404)
* MACHTYPE: Bash Variables. (line 409)
* LC_MESSAGES: Bash Variables. (line 403)
* LC_NUMERIC: Bash Variables. (line 407)
* LINENO: Bash Variables. (line 411)
* LINES: Bash Variables. (line 415)
* MACHTYPE: Bash Variables. (line 420)
* MAIL: Bourne Shell Variables.
(line 22)
* MAILCHECK: Bash Variables. (line 413)
* MAILCHECK: Bash Variables. (line 424)
* MAILPATH: Bourne Shell Variables.
(line 27)
* MAPFILE: Bash Variables. (line 421)
* MAPFILE: Bash Variables. (line 432)
* mark-modified-lines: Readline Init File Syntax.
(line 172)
* mark-symlinked-directories: Readline Init File Syntax.
@@ -10112,41 +10139,41 @@ D.3 Parameter and Variable Index
(line 182)
* meta-flag: Readline Init File Syntax.
(line 145)
* OLDPWD: Bash Variables. (line 425)
* OLDPWD: Bash Variables. (line 436)
* OPTARG: Bourne Shell Variables.
(line 34)
* OPTERR: Bash Variables. (line 428)
* OPTERR: Bash Variables. (line 439)
* OPTIND: Bourne Shell Variables.
(line 38)
* OSTYPE: Bash Variables. (line 432)
* OSTYPE: Bash Variables. (line 443)
* output-meta: Readline Init File Syntax.
(line 189)
* page-completions: Readline Init File Syntax.
(line 194)
* PATH: Bourne Shell Variables.
(line 42)
* PIPESTATUS: Bash Variables. (line 435)
* POSIXLY_CORRECT: Bash Variables. (line 440)
* PPID: Bash Variables. (line 449)
* PROMPT_COMMAND: Bash Variables. (line 453)
* PROMPT_DIRTRIM: Bash Variables. (line 457)
* PIPESTATUS: Bash Variables. (line 446)
* POSIXLY_CORRECT: Bash Variables. (line 451)
* PPID: Bash Variables. (line 460)
* PROMPT_COMMAND: Bash Variables. (line 464)
* PROMPT_DIRTRIM: Bash Variables. (line 468)
* PS1: Bourne Shell Variables.
(line 48)
* PS2: Bourne Shell Variables.
(line 53)
* PS3: Bash Variables. (line 463)
* PS4: Bash Variables. (line 468)
* PWD: Bash Variables. (line 474)
* RANDOM: Bash Variables. (line 477)
* READLINE_LINE: Bash Variables. (line 482)
* READLINE_POINT: Bash Variables. (line 486)
* REPLY: Bash Variables. (line 490)
* PS3: Bash Variables. (line 474)
* PS4: Bash Variables. (line 479)
* PWD: Bash Variables. (line 485)
* RANDOM: Bash Variables. (line 488)
* READLINE_LINE: Bash Variables. (line 493)
* READLINE_POINT: Bash Variables. (line 497)
* REPLY: Bash Variables. (line 501)
* revert-all-at-newline: Readline Init File Syntax.
(line 204)
* SECONDS: Bash Variables. (line 493)
* SHELL: Bash Variables. (line 499)
* SHELLOPTS: Bash Variables. (line 504)
* SHLVL: Bash Variables. (line 513)
* SECONDS: Bash Variables. (line 504)
* SHELL: Bash Variables. (line 510)
* SHELLOPTS: Bash Variables. (line 515)
* SHLVL: Bash Variables. (line 524)
* show-all-if-ambiguous: Readline Init File Syntax.
(line 210)
* show-all-if-unmodified: Readline Init File Syntax.
@@ -10155,10 +10182,10 @@ D.3 Parameter and Variable Index
(line 225)
* TEXTDOMAIN: Locale Translation. (line 11)
* TEXTDOMAINDIR: Locale Translation. (line 11)
* TIMEFORMAT: Bash Variables. (line 518)
* TMOUT: Bash Variables. (line 556)
* TMPDIR: Bash Variables. (line 568)
* UID: Bash Variables. (line 572)
* TIMEFORMAT: Bash Variables. (line 529)
* TMOUT: Bash Variables. (line 567)
* TMPDIR: Bash Variables. (line 579)
* UID: Bash Variables. (line 583)
* visible-stats: Readline Init File Syntax.
(line 238)
@@ -10447,115 +10474,115 @@ Node: Comments18912
Node: Shell Commands19530
Node: Simple Commands20402
Node: Pipelines21033
Node: Lists23580
Node: Compound Commands25309
Node: Looping Constructs26113
Node: Conditional Constructs28568
Node: Command Grouping36681
Node: Coprocesses38160
Node: GNU Parallel39825
Node: Shell Functions42293
Node: Shell Parameters47039
Node: Positional Parameters49455
Node: Special Parameters50355
Node: Shell Expansions53319
Node: Brace Expansion55244
Node: Tilde Expansion57999
Node: Shell Parameter Expansion60350
Node: Command Substitution69485
Node: Arithmetic Expansion70818
Node: Process Substitution71668
Node: Word Splitting72718
Node: Filename Expansion74341
Node: Pattern Matching76480
Node: Quote Removal80119
Node: Redirections80414
Node: Executing Commands88939
Node: Simple Command Expansion89609
Node: Command Search and Execution91539
Node: Command Execution Environment93876
Node: Environment96862
Node: Exit Status98522
Node: Signals100143
Node: Shell Scripts102111
Node: Shell Builtin Commands104629
Node: Bourne Shell Builtins106657
Node: Bash Builtins124335
Node: Modifying Shell Behavior150540
Node: The Set Builtin150885
Node: The Shopt Builtin160409
Node: Special Builtins172168
Node: Shell Variables173147
Node: Bourne Shell Variables173587
Node: Bash Variables175568
Node: Bash Features199906
Node: Invoking Bash200789
Node: Bash Startup Files206553
Node: Interactive Shells211565
Node: What is an Interactive Shell?211975
Node: Is this Shell Interactive?212624
Node: Interactive Shell Behavior213439
Node: Bash Conditional Expressions216719
Node: Shell Arithmetic220467
Node: Aliases223226
Node: Arrays225798
Node: The Directory Stack229913
Node: Directory Stack Builtins230627
Node: Printing a Prompt233519
Node: The Restricted Shell236271
Node: Bash POSIX Mode238103
Node: Job Control246929
Node: Job Control Basics247389
Node: Job Control Builtins252106
Node: Job Control Variables256470
Node: Command Line Editing257628
Node: Introduction and Notation259195
Node: Readline Interaction260817
Node: Readline Bare Essentials262008
Node: Readline Movement Commands263797
Node: Readline Killing Commands264762
Node: Readline Arguments266682
Node: Searching267726
Node: Readline Init File269912
Node: Readline Init File Syntax271059
Node: Conditional Init Constructs286163
Node: Sample Init File288696
Node: Bindable Readline Commands291813
Node: Commands For Moving293020
Node: Commands For History294164
Node: Commands For Text297319
Node: Commands For Killing299992
Node: Numeric Arguments302443
Node: Commands For Completion303582
Node: Keyboard Macros307774
Node: Miscellaneous Commands308345
Node: Readline vi Mode314151
Node: Programmable Completion315058
Node: Programmable Completion Builtins322268
Node: Using History Interactively331404
Node: Bash History Facilities332088
Node: Bash History Builtins335002
Node: History Interaction338859
Node: Event Designators341564
Node: Word Designators342579
Node: Modifiers344218
Node: Installing Bash345622
Node: Basic Installation346759
Node: Compilers and Options349451
Node: Compiling For Multiple Architectures350192
Node: Installation Names351856
Node: Specifying the System Type352674
Node: Sharing Defaults353390
Node: Operation Controls354063
Node: Optional Features355021
Node: Reporting Bugs364580
Node: Major Differences From The Bourne Shell365781
Node: GNU Free Documentation License382468
Node: Indexes407664
Node: Builtin Index408118
Node: Reserved Word Index414945
Node: Variable Index417393
Node: Function Index430347
Node: Concept Index437356
Node: Lists23727
Node: Compound Commands25456
Node: Looping Constructs26260
Node: Conditional Constructs28719
Node: Command Grouping36832
Node: Coprocesses38311
Node: GNU Parallel39976
Node: Shell Functions42444
Node: Shell Parameters47388
Node: Positional Parameters49804
Node: Special Parameters50704
Node: Shell Expansions53668
Node: Brace Expansion55593
Node: Tilde Expansion58348
Node: Shell Parameter Expansion60699
Node: Command Substitution69834
Node: Arithmetic Expansion71167
Node: Process Substitution72017
Node: Word Splitting73067
Node: Filename Expansion74690
Node: Pattern Matching76829
Node: Quote Removal80468
Node: Redirections80763
Node: Executing Commands89288
Node: Simple Command Expansion89958
Node: Command Search and Execution91888
Node: Command Execution Environment94225
Node: Environment97211
Node: Exit Status98871
Node: Signals100492
Node: Shell Scripts102460
Node: Shell Builtin Commands104978
Node: Bourne Shell Builtins107006
Node: Bash Builtins124684
Node: Modifying Shell Behavior150898
Node: The Set Builtin151243
Node: The Shopt Builtin160767
Node: Special Builtins172722
Node: Shell Variables173701
Node: Bourne Shell Variables174141
Node: Bash Variables176122
Node: Bash Features201046
Node: Invoking Bash201929
Node: Bash Startup Files207693
Node: Interactive Shells212705
Node: What is an Interactive Shell?213115
Node: Is this Shell Interactive?213764
Node: Interactive Shell Behavior214579
Node: Bash Conditional Expressions217859
Node: Shell Arithmetic221607
Node: Aliases224366
Node: Arrays226938
Node: The Directory Stack231053
Node: Directory Stack Builtins231767
Node: Printing a Prompt234659
Node: The Restricted Shell237411
Node: Bash POSIX Mode239243
Node: Job Control248173
Node: Job Control Basics248633
Node: Job Control Builtins253350
Node: Job Control Variables257714
Node: Command Line Editing258872
Node: Introduction and Notation260439
Node: Readline Interaction262061
Node: Readline Bare Essentials263252
Node: Readline Movement Commands265041
Node: Readline Killing Commands266006
Node: Readline Arguments267926
Node: Searching268970
Node: Readline Init File271156
Node: Readline Init File Syntax272303
Node: Conditional Init Constructs287407
Node: Sample Init File289940
Node: Bindable Readline Commands293057
Node: Commands For Moving294264
Node: Commands For History295408
Node: Commands For Text298563
Node: Commands For Killing301236
Node: Numeric Arguments303687
Node: Commands For Completion304826
Node: Keyboard Macros309018
Node: Miscellaneous Commands309589
Node: Readline vi Mode315395
Node: Programmable Completion316302
Node: Programmable Completion Builtins323512
Node: Using History Interactively332648
Node: Bash History Facilities333332
Node: Bash History Builtins336246
Node: History Interaction340103
Node: Event Designators342808
Node: Word Designators343823
Node: Modifiers345462
Node: Installing Bash346866
Node: Basic Installation348003
Node: Compilers and Options350695
Node: Compiling For Multiple Architectures351436
Node: Installation Names353100
Node: Specifying the System Type353918
Node: Sharing Defaults354634
Node: Operation Controls355307
Node: Optional Features356265
Node: Reporting Bugs365824
Node: Major Differences From The Bourne Shell367025
Node: GNU Free Documentation License383712
Node: Indexes408908
Node: Builtin Index409362
Node: Reserved Word Index416189
Node: Variable Index418637
Node: Function Index431591
Node: Concept Index438600

End Tag Table
+14 -14
View File
@@ -1,4 +1,4 @@
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 29 JUN 2010 14:02
This is TeX, Version 3.141592 (Web2C 7.5.4) (format=tex 2008.12.11) 21 JUL 2010 08:54
**/Users/chet/src/bash/src/doc/bashref.texi
(/Users/chet/src/bash/src/doc/bashref.texi (./texinfo.tex
Loading texinfo [version 2009-01-18.17]:
@@ -178,7 +178,7 @@ and turning on texinfo input format.) (./bashref.aux)
Chapter 2
[1] [2] [3] Chapter 3 [4] [5] [6] [7] [8] [9] [10]
Overfull \hbox (43.33539pt too wide) in paragraph at lines 869--869
Overfull \hbox (43.33539pt too wide) in paragraph at lines 872--872
[]@texttt case @textttsl word @texttt in [ [(] @textttsl pat-tern @texttt [| @
textttsl pat-tern@texttt ][]) @textttsl command-list @texttt ;;][] esac[][]
@@ -191,7 +191,7 @@ textttsl pat-tern@texttt ][]) @textttsl command-list @texttt ;;][] esac[][]
.etc.
[11] [12] [13] [14]
Overfull \hbox (89.6747pt too wide) in paragraph at lines 1191--1191
Overfull \hbox (89.6747pt too wide) in paragraph at lines 1194--1194
[]@texttt cat list | parallel "do-something1 {} config-{} ; do-something2 < {}
" | process-output[]
@@ -204,7 +204,7 @@ Overfull \hbox (89.6747pt too wide) in paragraph at lines 1191--1191
.etc.
Overfull \hbox (89.6747pt too wide) in paragraph at lines 1206--1206
Overfull \hbox (89.6747pt too wide) in paragraph at lines 1209--1209
[]@texttt { echo foss.org.my ; echo debian.org; echo freenetproject.org; } | p
arallel traceroute[]
@@ -217,7 +217,7 @@ arallel traceroute[]
.etc.
Overfull \hbox (106.92076pt too wide) in paragraph at lines 1212--1212
Overfull \hbox (106.92076pt too wide) in paragraph at lines 1215--1215
[]@texttt { echo foss.org.my ; echo debian.org; echo freenetproject.org; } | p
arallel -k traceroute[]
@@ -232,7 +232,7 @@ arallel -k traceroute[]
[15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25] [26] [27] [28] [29]
[30] [31] [32] [33] [34] Chapter 4 [35] [36] [37] [38] [39] [40] [41] [42]
[43]
Underfull \hbox (badness 5231) in paragraph at lines 3403--3416
Underfull \hbox (badness 5231) in paragraph at lines 3409--3422
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
@@ -245,7 +245,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
.etc.
[44] [45] [46] [47] [48] [49]
Overfull \hbox (172.34125pt too wide) in paragraph at lines 3860--3860
Overfull \hbox (172.34125pt too wide) in paragraph at lines 3867--3867
[]@texttt read [-ers] [-a @textttsl aname@texttt ] [-d @textttsl de-lim@texttt
] [-i @textttsl text@texttt ] [-n @textttsl nchars@texttt ] [-N @textttsl ncha
rs@texttt ] [-p @textttsl prompt@texttt ] [-t @textttsl time-
@@ -260,7 +260,7 @@ rs@texttt ] [-p @textttsl prompt@texttt ] [-t @textttsl time-
[50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] Chapter 5 [62]
[63] [64] [65] [66] [67] [68] [69] [70] [71] Chapter 6 [72]
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5460--5460
Overfull \hbox (51.96864pt too wide) in paragraph at lines 5483--5483
[]@texttt bash [long-opt] [-ir] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@t
exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
@@ -273,7 +273,7 @@ exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
.etc.
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5461--5461
Overfull \hbox (76.23077pt too wide) in paragraph at lines 5484--5484
[]@texttt bash [long-opt] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@texttt
] [-O @textttsl shopt_option@texttt ] -c @textttsl string @texttt [@textttsl ar
-
@@ -287,7 +287,7 @@ Overfull \hbox (76.23077pt too wide) in paragraph at lines 5461--5461
.etc.
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5462--5462
Overfull \hbox (34.72258pt too wide) in paragraph at lines 5485--5485
[]@texttt bash [long-opt] -s [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@text
tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
@@ -300,7 +300,7 @@ tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
.etc.
[73] [74]
Underfull \hbox (badness 2245) in paragraph at lines 5635--5637
Underfull \hbox (badness 2245) in paragraph at lines 5658--5660
[]@textrm When a lo-gin shell ex-its, Bash reads and ex-e-cutes com-mands from
the file
@@ -313,7 +313,7 @@ the file
.etc.
[75] [76] [77] [78] [79] [80] [81] [82] [83] [84] [85] [86] [87] [88]
Underfull \hbox (badness 2521) in paragraph at lines 6807--6810
Underfull \hbox (badness 2521) in paragraph at lines 6834--6837
@textrm `@texttt --enable-strict-posix-default[]@textrm '[] to @texttt configur
e[] @textrm when build-ing (see Sec-tion 10.8
@@ -381,7 +381,7 @@ Underfull \hbox (badness 2753) in paragraph at lines 1919--1922
[121]) (/Users/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
[122] [123] [124] [125] [126]) Chapter 10 [127] [128] [129] [130] [131]
Underfull \hbox (badness 2772) in paragraph at lines 7408--7412
Underfull \hbox (badness 2772) in paragraph at lines 7435--7439
[]@textrm Enable sup-port for large files (@texttt http://www.sas.com/standard
s/large_
@@ -407,4 +407,4 @@ Here is how much of TeX's memory you used:
51 hyphenation exceptions out of 8191
16i,6n,14p,315b,702s stack positions out of 5000i,500n,6000p,200000b,5000s
Output written on bashref.dvi (166 pages, 677000 bytes).
Output written on bashref.dvi (166 pages, 678492 bytes).
BIN
View File
Binary file not shown.
+2403 -2368
View File
File diff suppressed because it is too large Load Diff
+6 -3
View File
@@ -1233,7 +1233,8 @@ shell context; no new process is created to interpret them.
Functions are declared using this syntax:
@rwindex function
@example
[ @code{function} ] @var{name} () @var{compound-command} [ @var{redirections} ]
@var{name} () @var{compound-command} [ @var{redirections} ]@*or@*
@code{function} @var{name} [()] @var{compound-command} [ @var{redirections} ]
@end example
This defines a shell function named @var{name}. The reserved
@@ -3650,6 +3651,7 @@ backspace
@item \c
suppress further output
@item \e
@itemx \E
escape
@item \f
form feed
@@ -4783,9 +4785,10 @@ A list of characters that separate fields; used when the shell splits
words as part of expansion.
@item MAIL
If this parameter is set to a filename and the @env{MAILPATH} variable
If this parameter is set to a filename or directory name
and the @env{MAILPATH} variable
is not set, Bash informs the user of the arrival of mail in
the specified file.
the specified file or Maildir-format directory.
@item MAILPATH
A colon-separated list of filenames which the shell periodically checks
+5 -5
View File
@@ -26,7 +26,7 @@
@numsecentry{Shell Parameters}{3.4}{Shell Parameters}{17}
@numsubsecentry{Positional Parameters}{3.4.1}{Positional Parameters}{17}
@numsubsecentry{Special Parameters}{3.4.2}{Special Parameters}{18}
@numsecentry{Shell Expansions}{3.5}{Shell Expansions}{18}
@numsecentry{Shell Expansions}{3.5}{Shell Expansions}{19}
@numsubsecentry{Brace Expansion}{3.5.1}{Brace Expansion}{19}
@numsubsecentry{Tilde Expansion}{3.5.2}{Tilde Expansion}{20}
@numsubsecentry{Shell Parameter Expansion}{3.5.3}{Shell Parameter Expansion}{21}
@@ -40,16 +40,16 @@
@numsecentry{Redirections}{3.6}{Redirections}{27}
@numsubsecentry{Redirecting Input}{3.6.1}{}{28}
@numsubsecentry{Redirecting Output}{3.6.2}{}{28}
@numsubsecentry{Appending Redirected Output}{3.6.3}{}{28}
@numsubsecentry{Appending Redirected Output}{3.6.3}{}{29}
@numsubsecentry{Redirecting Standard Output and Standard Error}{3.6.4}{}{29}
@numsubsecentry{Appending Standard Output and Standard Error}{3.6.5}{}{29}
@numsubsecentry{Here Documents}{3.6.6}{}{29}
@numsubsecentry{Here Strings}{3.6.7}{}{29}
@numsubsecentry{Here Strings}{3.6.7}{}{30}
@numsubsecentry{Duplicating File Descriptors}{3.6.8}{}{30}
@numsubsecentry{Moving File Descriptors}{3.6.9}{}{30}
@numsubsecentry{Opening File Descriptors for Reading and Writing}{3.6.10}{}{30}
@numsecentry{Executing Commands}{3.7}{Executing Commands}{30}
@numsubsecentry{Simple Command Expansion}{3.7.1}{Simple Command Expansion}{30}
@numsubsecentry{Simple Command Expansion}{3.7.1}{Simple Command Expansion}{31}
@numsubsecentry{Command Search and Execution}{3.7.2}{Command Search and Execution}{31}
@numsubsecentry{Command Execution Environment}{3.7.3}{Command Execution Environment}{32}
@numsubsecentry{Environment}{3.7.4}{Environment}{33}
@@ -60,7 +60,7 @@
@numsecentry{Bourne Shell Builtins}{4.1}{Bourne Shell Builtins}{37}
@numsecentry{Bash Builtin Commands}{4.2}{Bash Builtins}{43}
@numsecentry{Modifying Shell Behavior}{4.3}{Modifying Shell Behavior}{53}
@numsubsecentry{The Set Builtin}{4.3.1}{The Set Builtin}{53}
@numsubsecentry{The Set Builtin}{4.3.1}{The Set Builtin}{54}
@numsubsecentry{The Shopt Builtin}{4.3.2}{The Shopt Builtin}{57}
@numsecentry{Special Builtins}{4.4}{Special Builtins}{62}
@numchapentry{Shell Variables}{5}{Shell Variables}{63}
+3 -3
View File
@@ -56,7 +56,7 @@
\entry{FUNCNAME}{67}{\code {FUNCNAME}}
\entry{FUNCNEST}{67}{\code {FUNCNEST}}
\entry{GLOBIGNORE}{67}{\code {GLOBIGNORE}}
\entry{GROUPS}{67}{\code {GROUPS}}
\entry{GROUPS}{68}{\code {GROUPS}}
\entry{histchars}{68}{\code {histchars}}
\entry{HISTCMD}{68}{\code {HISTCMD}}
\entry{HISTCONTROL}{68}{\code {HISTCONTROL}}
@@ -73,7 +73,7 @@
\entry{LANG}{69}{\code {LANG}}
\entry{LC_ALL}{69}{\code {LC_ALL}}
\entry{LC_COLLATE}{69}{\code {LC_COLLATE}}
\entry{LC_CTYPE}{69}{\code {LC_CTYPE}}
\entry{LC_CTYPE}{70}{\code {LC_CTYPE}}
\entry{LC_MESSAGES}{70}{\code {LC_MESSAGES}}
\entry{LC_NUMERIC}{70}{\code {LC_NUMERIC}}
\entry{LINENO}{70}{\code {LINENO}}
@@ -88,7 +88,7 @@
\entry{POSIXLY_CORRECT}{70}{\code {POSIXLY_CORRECT}}
\entry{PPID}{70}{\code {PPID}}
\entry{PROMPT_COMMAND}{70}{\code {PROMPT_COMMAND}}
\entry{PROMPT_DIRTRIM}{70}{\code {PROMPT_DIRTRIM}}
\entry{PROMPT_DIRTRIM}{71}{\code {PROMPT_DIRTRIM}}
\entry{PS3}{71}{\code {PS3}}
\entry{PS4}{71}{\code {PS4}}
\entry{PWD}{71}{\code {PWD}}
+3 -3
View File
@@ -74,7 +74,7 @@
\entry {\code {FUNCNEST}}{67}
\initial {G}
\entry {\code {GLOBIGNORE}}{67}
\entry {\code {GROUPS}}{67}
\entry {\code {GROUPS}}{68}
\initial {H}
\entry {\code {histchars}}{68}
\entry {\code {HISTCMD}}{68}
@@ -103,7 +103,7 @@
\entry {\code {LANG}}{69}
\entry {\code {LC_ALL}}{69}
\entry {\code {LC_COLLATE}}{69}
\entry {\code {LC_CTYPE}}{69}
\entry {\code {LC_CTYPE}}{70}
\entry {\code {LC_MESSAGES}}{7, 70}
\entry {\code {LC_NUMERIC}}{70}
\entry {\code {LINENO}}{70}
@@ -132,7 +132,7 @@
\entry {\code {POSIXLY_CORRECT}}{70}
\entry {\code {PPID}}{70}
\entry {\code {PROMPT_COMMAND}}{70}
\entry {\code {PROMPT_DIRTRIM}}{70}
\entry {\code {PROMPT_DIRTRIM}}{71}
\entry {\code {PS1}}{63}
\entry {\code {PS2}}{63}
\entry {\code {PS3}}{71}
+6 -1
View File
@@ -457,7 +457,8 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
\\aa alert (bell)
\\bb backspace
\\cc suppress further output
\\ee an escape character
\\ee
\\EE an escape character
\\ff form feed
\\nn new line
\\rr carriage return
@@ -1332,6 +1333,10 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
and all remaining characters on that line to be ignored
in an interactive shell (see CCOOMMMMEENNTTSS above). This
option is enabled by default.
llaassttppiippee
If set, and job control is not active, the shell runs
the last command of a pipeline not executed in the back-
ground in the current shell environment.
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.
+347 -343
View File
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.19.2
%%CreationDate: Tue Jun 29 14:02:44 2010
%%CreationDate: Wed Jul 21 08:54:49 2010
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%+ font Times-Italic
@@ -952,245 +952,245 @@ BP
(TINS\(1\) B)-.92 F(ASH_B)-.35 E(UIL)-.1 E(TINS\(1\))-.92 E
(escape sequences:)144 84 Q/F1 10/Times-Bold@0 SF(\\a)144 96 Q F0
(alert \(bell\))28.22 E F1(\\b)144 108 Q F0(backspace)27.66 E F1(\\c)144
120 Q F0(suppress further output)28.78 E F1(\\e)144 132 Q F0
(an escape character)28.78 E F1(\\f)144 144 Q F0(form feed)29.89 E F1
(\\n)144 156 Q F0(ne)27.66 E 2.5(wl)-.25 G(ine)-2.5 E F1(\\r)144 168 Q
F0(carriage return)28.78 E F1(\\t)144 180 Q F0(horizontal tab)29.89 E F1
(\\v)144 192 Q F0 -.15(ve)28.22 G(rtical tab).15 E F1(\\\\)144 204 Q F0
(backslash)30.44 E F1(\\0)144 216 Q/F2 10/Times-Italic@0 SF(nnn)A F0
120 Q F0(suppress further output)28.78 E F1(\\e)144 132 Q(\\E)144 144 Q
F0(an escape character)26.55 E F1(\\f)144 156 Q F0(form feed)29.89 E F1
(\\n)144 168 Q F0(ne)27.66 E 2.5(wl)-.25 G(ine)-2.5 E F1(\\r)144 180 Q
F0(carriage return)28.78 E F1(\\t)144 192 Q F0(horizontal tab)29.89 E F1
(\\v)144 204 Q F0 -.15(ve)28.22 G(rtical tab).15 E F1(\\\\)144 216 Q F0
(backslash)30.44 E F1(\\0)144 228 Q/F2 10/Times-Italic@0 SF(nnn)A F0
(the eight-bit character whose v)13.22 E(alue is the octal v)-.25 E
(alue)-.25 E F2(nnn)2.5 E F0(\(zero to three octal digits\))2.5 E F1
(\\x)144 228 Q F2(HH)A F0(the eight-bit character whose v)13.78 E
(\\x)144 240 Q F2(HH)A F0(the eight-bit character whose v)13.78 E
(alue is the he)-.25 E(xadecimal v)-.15 E(alue)-.25 E F2(HH)2.5 E F0
(\(one or tw)2.5 E 2.5(oh)-.1 G .3 -.15(ex d)-2.5 H(igits\)).15 E F1
(\\u)144 240 Q F2(HHHH)A F0 1.506
(the Unicode \(ISO/IEC 10646\) character whose v)180 252 R 1.507
(\\u)144 252 Q F2(HHHH)A F0 1.506
(the Unicode \(ISO/IEC 10646\) character whose v)180 264 R 1.507
(alue is the he)-.25 F 1.507(xadecimal v)-.15 F(alue)-.25 E F2(HHHH)
4.007 E F0(\(one to four he)180 264 Q 2.5(xd)-.15 G(igits\))-2.5 E F1
(\\U)144 276 Q F2(HHHHHHHH)A F0 .548
(the Unicode \(ISO/IEC 10646\) character whose v)180 288 R .547
4.007 E F0(\(one to four he)180 276 Q 2.5(xd)-.15 G(igits\))-2.5 E F1
(\\U)144 288 Q F2(HHHHHHHH)A F0 .548
(the Unicode \(ISO/IEC 10646\) character whose v)180 300 R .547
(alue is the he)-.25 F .547(xadecimal v)-.15 F(alue)-.25 E F2(HHHHH-)
3.047 E(HHH)180 300 Q F0(\(one to eight he)2.5 E 2.5(xd)-.15 G(igits\))
-2.5 E F1(enable)108 316.8 Q F0([)2.5 E F1<ad61>A F0 2.5(][)C F1
3.047 E(HHH)180 312 Q F0(\(one to eight he)2.5 E 2.5(xd)-.15 G(igits\))
-2.5 E F1(enable)108 328.8 Q F0([)2.5 E F1<ad61>A F0 2.5(][)C F1
(\255dnps)-2.5 E F0 2.5(][)C F1<ad66>-2.5 E F2(\214lename)2.5 E F0 2.5
(][)C F2(name)-2.5 E F0(...])2.5 E .277(Enable and disable b)144 328.8 R
(][)C F2(name)-2.5 E F0(...])2.5 E .277(Enable and disable b)144 340.8 R
.278(uiltin shell commands.)-.2 F .278(Disabling a b)5.278 F .278
(uiltin allo)-.2 F .278(ws a disk command which has)-.25 F .834
(the same name as a shell b)144 340.8 R .834(uiltin to be e)-.2 F -.15
(the same name as a shell b)144 352.8 R .834(uiltin to be e)-.2 F -.15
(xe)-.15 G .834(cuted without specifying a full pathname, e).15 F -.15
(ve)-.25 G 3.333(nt).15 G(hough)-3.333 E .989
(the shell normally searches for b)144 352.8 R .989
(the shell normally searches for b)144 364.8 R .989
(uiltins before disk commands.)-.2 F(If)5.989 E F1<ad6e>3.489 E F0 .99
(is used, each)3.49 F F2(name)3.49 E F0 .99(is dis-)3.49 F 1.582
(abled; otherwise,)144 364.8 R F2(names)4.082 E F0 1.582(are enabled.)
(abled; otherwise,)144 376.8 R F2(names)4.082 E F0 1.582(are enabled.)
4.082 F -.15(Fo)6.582 G 4.082(re).15 G 1.582(xample, to use the)-4.232 F
F1(test)4.082 E F0 1.582(binary found via the)4.082 F/F3 9/Times-Bold@0
SF -.666(PA)4.081 G(TH)-.189 E F0 .08(instead of the shell b)144 376.8 R
SF -.666(PA)4.081 G(TH)-.189 E F0 .08(instead of the shell b)144 388.8 R
.08(uiltin v)-.2 F .08(ersion, run)-.15 F/F4 10/Courier@0 SF .081
(enable -n test)2.58 F F0 5.081(.T)C(he)-5.081 E F1<ad66>2.581 E F0 .081
(option means to load the ne)2.581 F(w)-.25 E -.2(bu)144 388.8 S 1.525
(option means to load the ne)2.581 F(w)-.25 E -.2(bu)144 400.8 S 1.525
(iltin command).2 F F2(name)4.385 E F0 1.524(from shared object)4.204 F
F2(\214lename)4.024 E F0 4.024(,o).18 G 4.024(ns)-4.024 G 1.524
(ystems that support dynamic loading.)-4.024 F(The)144 400.8 Q F1<ad64>
(ystems that support dynamic loading.)-4.024 F(The)144 412.8 Q F1<ad64>
2.866 E F0 .366(option will delete a b)2.866 F .366(uiltin pre)-.2 F
.366(viously loaded with)-.25 F F1<ad66>2.867 E F0 5.367(.I)C 2.867(fn)
-5.367 G(o)-2.867 E F2(name)2.867 E F0(ar)2.867 E .367(guments are gi)
-.18 F -.15(ve)-.25 G .367(n, or).15 F .399(if the)144 412.8 R F1<ad70>
-.18 F -.15(ve)-.25 G .367(n, or).15 F .399(if the)144 424.8 R F1<ad70>
2.899 E F0 .399(option is supplied, a list of shell b)2.899 F .399
(uiltins is printed.)-.2 F -.4(Wi)5.399 G .399(th no other option ar).4
F .398(guments, the)-.18 F .098(list consists of all enabled shell b)144
424.8 R 2.598(uiltins. If)-.2 F F1<ad6e>2.598 E F0 .098
436.8 R 2.598(uiltins. If)-.2 F F1<ad6e>2.598 E F0 .098
(is supplied, only disabled b)2.598 F .099(uiltins are printed.)-.2 F
(If)5.099 E F1<ad61>2.599 E F0 1.917
(is supplied, the list printed includes all b)144 436.8 R 1.916
(is supplied, the list printed includes all b)144 448.8 R 1.916
(uiltins, with an indication of whether or not each is)-.2 F 2.878
(enabled. If)144 448.8 R F1<ad73>2.878 E F0 .379
(enabled. If)144 460.8 R F1<ad73>2.878 E F0 .379
(is supplied, the output is restricted to the POSIX)2.878 F F2(special)
2.879 E F0 -.2(bu)2.879 G 2.879(iltins. The).2 F .379(return v)2.879 F
(alue)-.25 E .995(is 0 unless a)144 460.8 R F2(name)3.855 E F0 .994
(alue)-.25 E .995(is 0 unless a)144 472.8 R F2(name)3.855 E F0 .994
(is not a shell b)3.675 F .994(uiltin or there is an error loading a ne)
-.2 F 3.494(wb)-.25 G .994(uiltin from a shared)-3.694 F(object.)144
472.8 Q F1 -2.3 -.15(ev a)108 489.6 T(l).15 E F0([)2.5 E F2(ar)A(g)-.37
E F0(...])2.5 E(The)144 501.6 Q F2(ar)3.17 E(g)-.37 E F0 3.17(sa)C .671
484.8 Q F1 -2.3 -.15(ev a)108 501.6 T(l).15 E F0([)2.5 E F2(ar)A(g)-.37
E F0(...])2.5 E(The)144 513.6 Q F2(ar)3.17 E(g)-.37 E F0 3.17(sa)C .671
(re read and concatenated together into a single command.)-3.17 F .671
(This command is then read)5.671 F .495(and e)144 513.6 R -.15(xe)-.15 G
(This command is then read)5.671 F .495(and e)144 525.6 R -.15(xe)-.15 G
.495(cuted by the shell, and its e).15 F .495
(xit status is returned as the v)-.15 F .495(alue of)-.25 F F1 -2.3 -.15
(ev a)2.995 H(l).15 E F0 5.495(.I)C 2.995(ft)-5.495 G .495(here are no)
-2.995 F F2(ar)2.995 E(gs)-.37 E F0(,).27 E(or only null ar)144 525.6 Q
-2.995 F F2(ar)2.995 E(gs)-.37 E F0(,).27 E(or only null ar)144 537.6 Q
(guments,)-.18 E F1 -2.3 -.15(ev a)2.5 H(l).15 E F0(returns 0.)2.5 E F1
(exec)108 542.4 Q F0([)2.5 E F1(\255cl)A F0 2.5(][)C F1<ad61>-2.5 E F2
(exec)108 554.4 Q F0([)2.5 E F1(\255cl)A F0 2.5(][)C F1<ad61>-2.5 E F2
(name)2.5 E F0 2.5(][)C F2(command)-2.5 E F0([)2.5 E F2(ar)A(guments)
-.37 E F0(]])A(If)144 554.4 Q F2(command)3.005 E F0 .305
-.37 E F0(]])A(If)144 566.4 Q F2(command)3.005 E F0 .305
(is speci\214ed, it replaces the shell.)3.575 F .305(No ne)5.305 F 2.805
(wp)-.25 G .306(rocess is created.)-2.805 F(The)5.306 E F2(ar)3.136 E
(guments)-.37 E F0(become)3.076 E .177(the ar)144 566.4 R .177
(guments)-.37 E F0(become)3.076 E .177(the ar)144 578.4 R .177
(guments to)-.18 F F2(command)2.676 E F0 5.176(.I)C 2.676(ft)-5.176 G
(he)-2.676 E F1<ad6c>2.676 E F0 .176
(option is supplied, the shell places a dash at the be)2.676 F .176
(ginning of)-.15 F .499(the zeroth ar)144 578.4 R .499(gument passed to)
(ginning of)-.15 F .499(the zeroth ar)144 590.4 R .499(gument passed to)
-.18 F F2(command)2.999 E F0 5.499(.T).77 G .499(his is what)-5.499 F F2
(lo)2.999 E(gin)-.1 E F0 .499(\(1\) does.).24 F(The)5.5 E F1<ad63>3 E F0
.5(option causes)3 F F2(com-)3.2 E(mand)144 590.4 Q F0 .639(to be e)
.5(option causes)3 F F2(com-)3.2 E(mand)144 602.4 Q F0 .639(to be e)
3.909 F -.15(xe)-.15 G .638(cuted with an empty en).15 F 3.138
(vironment. If)-.4 F F1<ad61>3.138 E F0 .638
(is supplied, the shell passes)3.138 F F2(name)3.498 E F0 .638(as the)
3.318 F 1.077(zeroth ar)144 602.4 R 1.077(gument to the e)-.18 F -.15
3.318 F 1.077(zeroth ar)144 614.4 R 1.077(gument to the e)-.18 F -.15
(xe)-.15 G 1.077(cuted command.).15 F(If)6.077 E F2(command)3.777 E F0
1.077(cannot be e)4.347 F -.15(xe)-.15 G 1.077(cuted for some reason, a)
.15 F(non-interacti)144 614.4 Q .618 -.15(ve s)-.25 H .318(hell e).15 F
.15 F(non-interacti)144 626.4 Q .618 -.15(ve s)-.25 H .318(hell e).15 F
.318(xits, unless the shell option)-.15 F F1(execfail)2.817 E F0 .317
(is enabled, in which case it returns f)2.817 F(ail-)-.1 E 2.505
(ure. An)144 626.4 R(interacti)2.505 E .305 -.15(ve s)-.25 H .005
(ure. An)144 638.4 R(interacti)2.505 E .305 -.15(ve s)-.25 H .005
(hell returns f).15 F .005(ailure if the \214le cannot be e)-.1 F -.15
(xe)-.15 G 2.505(cuted. If).15 F F2(command)2.705 E F0 .005
(is not speci\214ed,)3.275 F(an)144 638.4 Q 3.037(yr)-.15 G .537
(is not speci\214ed,)3.275 F(an)144 650.4 Q 3.037(yr)-.15 G .537
(edirections tak)-3.037 F 3.036(ee)-.1 G -.25(ff)-3.036 G .536
(ect in the current shell, and the return status is 0.).25 F .536
(If there is a redirection)5.536 F(error)144 650.4 Q 2.5(,t)-.4 G
(he return status is 1.)-2.5 E F1(exit)108 667.2 Q F0([)2.5 E F2(n)A F0
(If there is a redirection)5.536 F(error)144 662.4 Q 2.5(,t)-.4 G
(he return status is 1.)-2.5 E F1(exit)108 679.2 Q F0([)2.5 E F2(n)A F0
6.29(]C)C .095(ause the shell to e)-6.29 F .095(xit with a status of)
-.15 F F2(n)2.595 E F0 5.095(.I)C(f)-5.095 E F2(n)2.955 E F0 .096
(is omitted, the e)2.835 F .096(xit status is that of the last command)
-.15 F -.15(exe)144 679.2 S 2.5(cuted. A).15 F(trap on)2.5 E F3(EXIT)2.5
-.15 F -.15(exe)144 691.2 S 2.5(cuted. A).15 F(trap on)2.5 E F3(EXIT)2.5
E F0(is e)2.25 E -.15(xe)-.15 G(cuted before the shell terminates.).15 E
F1(export)108 696 Q F0([)2.5 E F1(\255fn)A F0 2.5(][).833 G F2(name)-2.5
E F0([=)A F2(wor)A(d)-.37 E F0(]] ...)A(GNU Bash-4.0)72 768 Q
(2004 Apr 20)148.735 E(7)203.725 E 0 Cg EP
(GNU Bash-4.0)72 768 Q(2004 Apr 20)148.735 E(7)203.725 E 0 Cg EP
%%Page: 8 8
%%BeginPageSetup
BP
%%EndPageSetup
/F0 10/Times-Roman@0 SF -.35(BA)72 48 S(SH_B).35 E(UIL)-.1 E 290.48
(TINS\(1\) B)-.92 F(ASH_B)-.35 E(UIL)-.1 E(TINS\(1\))-.92 E/F1 10
/Times-Bold@0 SF(export \255p)108 84 Q F0 .257(The supplied)144 96 R/F2
10/Times-Italic@0 SF(names)3.117 E F0 .257(are mark)3.027 F .257
(ed for automatic e)-.1 F .257(xport to the en)-.15 F .257
(vironment of subsequently e)-.4 F -.15(xe)-.15 G(cuted).15 E 2.626
(commands. If)144 108 R(the)2.626 E F1<ad66>2.626 E F0 .127
(option is gi)2.627 F -.15(ve)-.25 G .127(n, the).15 F F2(names)2.987 E
F0 .127(refer to functions.)2.897 F .127(If no)5.127 F F2(names)2.987 E
F0 .127(are gi)2.897 F -.15(ve)-.25 G .127(n, or if the).15 F F1<ad70>
144 120 Q F0 .66(option is supplied, a list of all names that are e)3.16
F .659(xported in this shell is printed.)-.15 F(The)5.659 E F1<ad6e>
3.159 E F0(option)3.159 E 1.586(causes the e)144 132 R 1.586
/Times-Bold@0 SF(export)108 84 Q F0([)2.5 E F1(\255fn)A F0 2.5(][).833 G
/F2 10/Times-Italic@0 SF(name)-2.5 E F0([=)A F2(wor)A(d)-.37 E F0
(]] ...)A F1(export \255p)108 96 Q F0 .257(The supplied)144 108 R F2
(names)3.117 E F0 .257(are mark)3.027 F .257(ed for automatic e)-.1 F
.257(xport to the en)-.15 F .257(vironment of subsequently e)-.4 F -.15
(xe)-.15 G(cuted).15 E 2.626(commands. If)144 120 R(the)2.626 E F1<ad66>
2.626 E F0 .127(option is gi)2.627 F -.15(ve)-.25 G .127(n, the).15 F F2
(names)2.987 E F0 .127(refer to functions.)2.897 F .127(If no)5.127 F F2
(names)2.987 E F0 .127(are gi)2.897 F -.15(ve)-.25 G .127(n, or if the)
.15 F F1<ad70>144 132 Q F0 .66
(option is supplied, a list of all names that are e)3.16 F .659
(xported in this shell is printed.)-.15 F(The)5.659 E F1<ad6e>3.159 E F0
(option)3.159 E 1.586(causes the e)144 144 R 1.586
(xport property to be remo)-.15 F -.15(ve)-.15 G 4.086(df).15 G 1.586
(rom each)-4.086 F F2(name)4.086 E F0 6.586(.I)C 4.086(fav)-6.586 G
1.587(ariable name is follo)-4.336 F 1.587(wed by)-.25 F(=)144 144 Q F2
1.587(ariable name is follo)-4.336 F 1.587(wed by)-.25 F(=)144 156 Q F2
(wor)A(d)-.37 E F0 2.804(,t)C .304(he v)-2.804 F .304(alue of the v)-.25
F .304(ariable is set to)-.25 F F2(wor)2.804 E(d)-.37 E F0(.)A F1
(export)5.304 E F0 .304(returns an e)2.804 F .303
(xit status of 0 unless an in)-.15 F -.25(va)-.4 G(lid).25 E .293
(option is encountered, one of the)144 156 R F2(names)2.793 E F0 .293
(option is encountered, one of the)144 168 R F2(names)2.793 E F0 .293
(is not a v)2.793 F .293(alid shell v)-.25 F .293(ariable name, or)-.25
F F1<ad66>2.793 E F0 .294(is supplied with a)2.793 F F2(name)144.36 168
Q F0(that is not a function.)2.68 E F1(fc)108 184.8 Q F0([)2.5 E F1
F F1<ad66>2.793 E F0 .294(is supplied with a)2.793 F F2(name)144.36 180
Q F0(that is not a function.)2.68 E F1(fc)108 196.8 Q F0([)2.5 E F1
<ad65>A F2(ename)2.5 E F0 2.5(][)C F1(\255lnr)-2.5 E F0 2.5(][)C F2
<8c72>-2.5 E(st)-.1 E F0 2.5(][)C F2(last)-2.5 E F0(])A F1(fc \255s)108
196.8 Q F0([)2.5 E F2(pat)A F0(=)A F2 -.37(re)C(p).37 E F0 2.5(][)C F2
(cmd)-2.5 E F0(])A .478(Fix Command.)144 208.8 R .478
208.8 Q F0([)2.5 E F2(pat)A F0(=)A F2 -.37(re)C(p).37 E F0 2.5(][)C F2
(cmd)-2.5 E F0(])A .478(Fix Command.)144 220.8 R .478
(In the \214rst form, a range of commands from)5.478 F F2<8c72>4.888 E
(st)-.1 E F0(to)3.658 E F2(last)3.068 E F0 .477
(is selected from the his-)3.658 F .881(tory list.)144 220.8 R F2 -.45
(is selected from the his-)3.658 F .881(tory list.)144 232.8 R F2 -.45
(Fi)5.881 G -.1(rs).45 G(t).1 E F0(and)4.061 E F2(last)3.471 E F0 .882
(may be speci\214ed as a string \(to locate the last command be)4.062 F
.882(ginning with)-.15 F .797(that string\) or as a number \(an inde)144
232.8 R 3.297(xi)-.15 G .797(nto the history list, where a ne)-3.297 F
244.8 R 3.297(xi)-.15 G .797(nto the history list, where a ne)-3.297 F
-.05(ga)-.15 G(ti).05 E 1.097 -.15(ve n)-.25 H .796(umber is used as an)
.15 F(of)144 244.8 Q .276(fset from the current command number\).)-.25 F
.15 F(of)144 256.8 Q .276(fset from the current command number\).)-.25 F
(If)5.276 E F2(last)2.866 E F0 .277
(is not speci\214ed it is set to the current command)3.456 F .093
(for listing \(so that)144 256.8 R/F3 10/Courier@0 SF .092
(for listing \(so that)144 268.8 R/F3 10/Courier@0 SF .092
(fc \255l \25510)2.592 F F0 .092(prints the last 10 commands\) and to)
2.592 F F2<8c72>4.502 E(st)-.1 E F0 2.592(otherwise. If)3.272 F F2<8c72>
4.502 E(st)-.1 E F0 .092(is not)3.272 F
(speci\214ed it is set to the pre)144 268.8 Q
(vious command for editing and \25516 for listing.)-.25 E(The)144 292.8
(speci\214ed it is set to the pre)144 280.8 Q
(vious command for editing and \25516 for listing.)-.25 E(The)144 304.8
Q F1<ad6e>2.522 E F0 .022
(option suppresses the command numbers when listing.)2.522 F(The)5.022 E
F1<ad72>2.522 E F0 .022(option re)2.522 F -.15(ve)-.25 G .022
(rses the order of).15 F .438(the commands.)144 304.8 R .438(If the)
(rses the order of).15 F .438(the commands.)144 316.8 R .438(If the)
5.438 F F1<ad6c>2.938 E F0 .438(option is gi)2.938 F -.15(ve)-.25 G .438
(n, the commands are listed on standard output.).15 F(Otherwise,)5.438 E
.334(the editor gi)144 316.8 R -.15(ve)-.25 G 2.834(nb).15 G(y)-2.834 E
.334(the editor gi)144 328.8 R -.15(ve)-.25 G 2.834(nb).15 G(y)-2.834 E
F2(ename)3.024 E F0 .335(is in)3.014 F -.2(vo)-.4 G -.1(ke).2 G 2.835
(do).1 G 2.835(na\214)-2.835 G .335(le containing those commands.)-2.835
F(If)5.335 E F2(ename)3.025 E F0 .335(is not gi)3.015 F -.15(ve)-.25 G
(n,).15 E .631(the v)144 328.8 R .631(alue of the)-.25 F/F4 9
(n,).15 E .631(the v)144 340.8 R .631(alue of the)-.25 F/F4 9
/Times-Bold@0 SF(FCEDIT)3.131 E F0 -.25(va)2.881 G .631
(riable is used, and the v).25 F .631(alue of)-.25 F F4(EDIT)3.131 E(OR)
-.162 E F0(if)2.881 E F4(FCEDIT)3.13 E F0 .63(is not set.)2.88 F .63
(If nei-)5.63 F 1.884(ther v)144 340.8 R 1.884(ariable is set, is used.)
(If nei-)5.63 F 1.884(ther v)144 352.8 R 1.884(ariable is set, is used.)
-.25 F 1.884
(When editing is complete, the edited commands are echoed and)6.884 F
-.15(exe)144 352.8 S(cuted.).15 E .04(In the second form,)144 376.8 R F2
-.15(exe)144 364.8 S(cuted.).15 E .04(In the second form,)144 388.8 R F2
(command)2.54 E F0 .04(is re-e)2.54 F -.15(xe)-.15 G .039
(cuted after each instance of).15 F F2(pat)2.539 E F0 .039
(is replaced by)2.539 F F2 -.37(re)2.539 G(p).37 E F0 5.039(.A)C(useful)
-2.5 E .406(alias to use with this is)144 388.8 R F3 .406(r='fc \255s')
-2.5 E .406(alias to use with this is)144 400.8 R F3 .406(r='fc \255s')
2.906 F F0 2.906(,s)C 2.906(ot)-2.906 G .406(hat typing)-2.906 F F3
6.406(rc)2.906 G(c)-6.406 E F0 .406(runs the last command be)2.906 F
.407(ginning with)-.15 F F3(cc)144 400.8 Q F0(and typing)2.5 E F3(r)2.5
.407(ginning with)-.15 F F3(cc)144 412.8 Q F0(and typing)2.5 E F3(r)2.5
E F0(re-e)2.5 E -.15(xe)-.15 G(cutes the last command.).15 E .142
(If the \214rst form is used, the return v)144 424.8 R .142
(If the \214rst form is used, the return v)144 436.8 R .142
(alue is 0 unless an in)-.25 F -.25(va)-.4 G .142
(lid option is encountered or).25 F F2<8c72>4.552 E(st)-.1 E F0(or)3.322
E F2(last)2.732 E F0 .454(specify history lines out of range.)144 436.8
E F2(last)2.732 E F0 .454(specify history lines out of range.)144 448.8
R .454(If the)5.454 F F1<ad65>2.954 E F0 .454
(option is supplied, the return v)2.954 F .455(alue is the v)-.25 F .455
(alue of the)-.25 F .788(last command e)144 448.8 R -.15(xe)-.15 G .788
(alue of the)-.25 F .788(last command e)144 460.8 R -.15(xe)-.15 G .788
(cuted or f).15 F .787
(ailure if an error occurs with the temporary \214le of commands.)-.1 F
.787(If the)5.787 F 1.135
(second form is used, the return status is that of the command re-e)144
460.8 R -.15(xe)-.15 G 1.136(cuted, unless).15 F F2(cmd)3.836 E F0 1.136
(does not)4.406 F(specify a v)144 472.8 Q
472.8 R -.15(xe)-.15 G 1.136(cuted, unless).15 F F2(cmd)3.836 E F0 1.136
(does not)4.406 F(specify a v)144 484.8 Q
(alid history line, in which case)-.25 E F1(fc)2.5 E F0(returns f)2.5 E
(ailure.)-.1 E F1(fg)108 489.6 Q F0([)2.5 E F2(jobspec)A F0(])A(Resume)
144 501.6 Q F2(jobspec)5.654 E F0 1.413(in the fore)4.224 F 1.413
(ailure.)-.1 E F1(fg)108 501.6 Q F0([)2.5 E F2(jobspec)A F0(])A(Resume)
144 513.6 Q F2(jobspec)5.654 E F0 1.413(in the fore)4.224 F 1.413
(ground, and mak)-.15 F 3.913(ei)-.1 G 3.913(tt)-3.913 G 1.413
(he current job)-3.913 F 6.413(.I)-.4 G(f)-6.413 E F2(jobspec)5.653 E F0
1.413(is not present, the)4.223 F(shell')144 513.6 Q 3.116(sn)-.55 G
1.413(is not present, the)4.223 F(shell')144 525.6 Q 3.116(sn)-.55 G
.616(otion of the)-3.116 F F2(curr)3.116 E .616(ent job)-.37 F F0 .617
(is used.)3.116 F .617(The return v)5.617 F .617
(alue is that of the command placed into the)-.25 F(fore)144 525.6 Q
(alue is that of the command placed into the)-.25 F(fore)144 537.6 Q
.363(ground, or f)-.15 F .363
(ailure if run when job control is disabled or)-.1 F 2.862(,w)-.4 G .362
(hen run with job control enabled, if)-2.862 F F2(jobspec)145.74 537.6 Q
(hen run with job control enabled, if)-2.862 F F2(jobspec)145.74 549.6 Q
F0 .004(does not specify a v)2.814 F .004(alid job or)-.25 F F2(jobspec)
4.244 E F0 .004(speci\214es a job that w)2.814 F .004
(as started without job control.)-.1 F F1(getopts)108 554.4 Q F2
(as started without job control.)-.1 F F1(getopts)108 566.4 Q F2
(optstring name)2.5 E F0([)2.5 E F2(ar)A(gs)-.37 E F0(])A F1(getopts)144
566.4 Q F0 .793
578.4 Q F0 .793
(is used by shell procedures to parse positional parameters.)3.294 F F2
(optstring)6.023 E F0 .793(contains the option)3.513 F .149
(characters to be recognized; if a character is follo)144 578.4 R .15
(characters to be recognized; if a character is follo)144 590.4 R .15
(wed by a colon, the option is e)-.25 F .15(xpected to ha)-.15 F .45
-.15(ve a)-.2 H(n).15 E(ar)144 590.4 Q .579
-.15(ve a)-.2 H(n).15 E(ar)144 602.4 Q .579
(gument, which should be separated from it by white space.)-.18 F .578
(The colon and question mark char)5.579 F(-)-.2 E 1.665
(acters may not be used as option characters.)144 602.4 R 1.665
(acters may not be used as option characters.)144 614.4 R 1.665
(Each time it is in)6.665 F -.2(vo)-.4 G -.1(ke).2 G(d,).1 E F1(getopts)
4.165 E F0 1.665(places the ne)4.165 F(xt)-.15 E .797
(option in the shell v)144 614.4 R(ariable)-.25 E F2(name)3.297 E F0
(option in the shell v)144 626.4 R(ariable)-.25 E F2(name)3.297 E F0
3.297(,i).18 G(nitializing)-3.297 E F2(name)3.657 E F0 .797
(if it does not e)3.477 F .796(xist, and the inde)-.15 F 3.296(xo)-.15 G
3.296(ft)-3.296 G .796(he ne)-3.296 F(xt)-.15 E(ar)144 626.4 Q .085
3.296(ft)-3.296 G .796(he ne)-3.296 F(xt)-.15 E(ar)144 638.4 Q .085
(gument to be processed into the v)-.18 F(ariable)-.25 E F4(OPTIND)2.585
E/F5 9/Times-Roman@0 SF(.)A F4(OPTIND)4.585 E F0 .085
(is initialized to 1 each time the shell)2.335 F .846
(or a shell script is in)144 638.4 R -.2(vo)-.4 G -.1(ke).2 G 3.345
(or a shell script is in)144 650.4 R -.2(vo)-.4 G -.1(ke).2 G 3.345
(d. When).1 F .845(an option requires an ar)3.345 F(gument,)-.18 E F1
(getopts)3.345 E F0 .845(places that ar)3.345 F(gument)-.18 E .803
(into the v)144 650.4 R(ariable)-.25 E F4(OPT)3.303 E(ARG)-.81 E F5(.)A
(into the v)144 662.4 R(ariable)-.25 E F4(OPT)3.303 E(ARG)-.81 E F5(.)A
F0 .803(The shell does not reset)5.303 F F4(OPTIND)3.303 E F0 .804
(automatically; it must be manually)3.054 F .294
(reset between multiple calls to)144 662.4 R F1(getopts)2.793 E F0 .293
(reset between multiple calls to)144 674.4 R F1(getopts)2.793 E F0 .293
(within the same shell in)2.793 F -.2(vo)-.4 G .293(cation if a ne).2 F
2.793(ws)-.25 G .293(et of parameters)-2.793 F(is to be used.)144 674.4
Q 2.043(When the end of options is encountered,)144 698.4 R F1(getopts)
2.793(ws)-.25 G .293(et of parameters)-2.793 F(is to be used.)144 686.4
Q 2.043(When the end of options is encountered,)144 710.4 R F1(getopts)
4.543 E F0 -.15(ex)4.543 G 2.043(its with a return v).15 F 2.044
(alue greater than zero.)-.25 F F4(OPTIND)144 710.4 Q F0
(alue greater than zero.)-.25 F F4(OPTIND)144 722.4 Q F0
(is set to the inde)2.25 E 2.5(xo)-.15 G 2.5(ft)-2.5 G
(he \214rst non-option ar)-2.5 E(gument, and)-.18 E F1(name)2.5 E F0
(is set to ?.)2.5 E(GNU Bash-4.0)72 768 Q(2004 Apr 20)148.735 E(8)
@@ -2275,61 +2275,62 @@ F2(READLINE)3.88 E F0(abo)184 240 Q -.15(ve)-.15 G 2.5(\). This).15 F
(that line to be ignored in an interacti)184 300 R 1.267 -.15(ve s)-.25
H .967(hell \(see).15 F F2(COMMENTS)3.467 E F0(abo)3.217 E -.15(ve)-.15
G 3.467(\). This).15 F .967(option is)3.467 F(enabled by def)184 312 Q
(ault.)-.1 E F1(lithist)144 324 Q F0 .654(If set, and the)15.55 F F1
(cmdhist)3.154 E F0 .654(option is enabled, multi-line commands are sa)
3.154 F -.15(ve)-.2 G 3.155(dt).15 G 3.155(ot)-3.155 G .655(he history)
-3.155 F(with embedded ne)184 336 Q
(ault.)-.1 E F1(lastpipe)144 324 Q F0 1.211
(If set, and job control is not acti)6.66 F -.15(ve)-.25 G 3.712(,t).15
G 1.212(he shell runs the last command of a pipeline not)-3.712 F -.15
(exe)184 336 S(cuted in the background in the current shell en).15 E
(vironment.)-.4 E F1(lithist)144 348 Q F0 .655(If set, and the)15.55 F
F1(cmdhist)3.155 E F0 .654
(option is enabled, multi-line commands are sa)3.154 F -.15(ve)-.2 G
3.154(dt).15 G 3.154(ot)-3.154 G .654(he history)-3.154 F
(with embedded ne)184 360 Q
(wlines rather than using semicolon separators where possible.)-.25 E F1
(login_shell)144 348 Q F0 .486
(login_shell)144 372 Q F0 .486
(The shell sets this option if it is started as a login shell \(see)184
360 R F2(INV)2.986 E(OCA)-.405 E(TION)-.855 E F0(abo)2.736 E -.15(ve)
-.15 G 2.986(\). The).15 F -.25(va)184 372 S(lue may not be changed.).25
E F1(mailwar)144 384 Q(n)-.15 E F0 .814(If set, and a \214le that)184
396 R F1(bash)3.314 E F0 .815
(is checking for mail has been accessed since the last time it)3.314 F
-.1(wa)184 408 S 2.5(sc).1 G(heck)-2.5 E(ed, the message `)-.1 E
384 R F2(INV)2.987 E(OCA)-.405 E(TION)-.855 E F0(abo)2.737 E -.15(ve)
-.15 G 2.987(\). The).15 F -.25(va)184 396 S(lue may not be changed.).25
E F1(mailwar)144 408 Q(n)-.15 E F0 .815(If set, and a \214le that)184
420 R F1(bash)3.315 E F0 .814
(is checking for mail has been accessed since the last time it)3.315 F
-.1(wa)184 432 S 2.5(sc).1 G(heck)-2.5 E(ed, the message `)-.1 E
(`The mail in)-.74 E/F3 10/Times-Italic@0 SF(mail\214le)2.5 E F0
(has been read')2.5 E 2.5('i)-.74 G 2.5(sd)-2.5 G(isplayed.)-2.5 E F1
(no_empty_cmd_completion)144 420 Q F0 .325(If set, and)184 432 R F1 -.18
(re)2.825 G(adline).18 E F0 .325(is being used,)2.825 F F1(bash)2.824 E
F0 .324(will not attempt to search the)2.824 F F2 -.666(PA)2.824 G(TH)
-.189 E F0 .324(for possible)2.574 F
(completions when completion is attempted on an empty line.)184 444 Q F1
(nocaseglob)144 456 Q F0 .436(If set,)184 468 R F1(bash)2.936 E F0 .436
(matches \214lenames in a case\255insensiti)2.936 F .737 -.15(ve f)-.25
H .437(ashion when performing pathname).05 F -.15(ex)184 480 S
(no_empty_cmd_completion)144 444 Q F0 .324(If set, and)184 456 R F1 -.18
(re)2.824 G(adline).18 E F0 .324(is being used,)2.824 F F1(bash)2.824 E
F0 .324(will not attempt to search the)2.824 F F2 -.666(PA)2.825 G(TH)
-.189 E F0 .325(for possible)2.575 F
(completions when completion is attempted on an empty line.)184 468 Q F1
(nocaseglob)144 480 Q F0 .437(If set,)184 492 R F1(bash)2.937 E F0 .436
(matches \214lenames in a case\255insensiti)2.937 F .736 -.15(ve f)-.25
H .436(ashion when performing pathname).05 F -.15(ex)184 504 S
(pansion \(see).15 E F1 -.1(Pa)2.5 G(thname Expansion).1 E F0(abo)2.5 E
-.15(ve)-.15 G(\).).15 E F1(nocasematch)144 492 Q F0 1.194(If set,)184
504 R F1(bash)3.694 E F0 1.194(matches patterns in a case\255insensiti)
3.694 F 1.493 -.15(ve f)-.25 H 1.193(ashion when performing matching).05
F(while e)184 516 Q -.15(xe)-.15 G(cuting).15 E F1(case)2.5 E F0(or)2.5
E F1([[)2.5 E F0(conditional commands.)2.5 E F1(nullglob)144 528 Q F0
.854(If set,)184 540 R F1(bash)3.354 E F0(allo)3.354 E .855
(ws patterns which match no \214les \(see)-.25 F F1 -.1(Pa)3.355 G .855
(thname Expansion).1 F F0(abo)3.355 E -.15(ve)-.15 G 3.355(\)t).15 G(o)
-3.355 E -.15(ex)184 552 S(pand to a null string, rather than themselv)
.15 E(es.)-.15 E F1(pr)144 564 Q(ogcomp)-.18 E F0 .677
(If set, the programmable completion f)184 576 R .677(acilities \(see)
-.1 F F1(Pr)3.176 E .676(ogrammable Completion)-.18 F F0(abo)3.176 E
-.15(ve)-.15 G(\)).15 E(are enabled.)184 588 Q
(This option is enabled by def)5 E(ault.)-.1 E F1(pr)144 600 Q(omptv)
-.18 E(ars)-.1 E F0 1.447(If set, prompt strings under)184 612 R 1.448
(go parameter e)-.18 F 1.448(xpansion, command substitution, arithmetic)
-.15 F -.15(ex)184 624 S .171(pansion, and quote remo).15 F -.25(va)-.15
-.15(ve)-.15 G(\).).15 E F1(nocasematch)144 516 Q F0 1.193(If set,)184
528 R F1(bash)3.693 E F0 1.194(matches patterns in a case\255insensiti)
3.693 F 1.494 -.15(ve f)-.25 H 1.194(ashion when performing matching).05
F(while e)184 540 Q -.15(xe)-.15 G(cuting).15 E F1(case)2.5 E F0(or)2.5
E F1([[)2.5 E F0(conditional commands.)2.5 E F1(nullglob)144 552 Q F0
.855(If set,)184 564 R F1(bash)3.355 E F0(allo)3.355 E .855
(ws patterns which match no \214les \(see)-.25 F F1 -.1(Pa)3.354 G .854
(thname Expansion).1 F F0(abo)3.354 E -.15(ve)-.15 G 3.354(\)t).15 G(o)
-3.354 E -.15(ex)184 576 S(pand to a null string, rather than themselv)
.15 E(es.)-.15 E F1(pr)144 588 Q(ogcomp)-.18 E F0 .676
(If set, the programmable completion f)184 600 R .677(acilities \(see)
-.1 F F1(Pr)3.177 E .677(ogrammable Completion)-.18 F F0(abo)3.177 E
-.15(ve)-.15 G(\)).15 E(are enabled.)184 612 Q
(This option is enabled by def)5 E(ault.)-.1 E F1(pr)144 624 Q(omptv)
-.18 E(ars)-.1 E F0 1.448(If set, prompt strings under)184 636 R 1.448
(go parameter e)-.18 F 1.447(xpansion, command substitution, arithmetic)
-.15 F -.15(ex)184 648 S .17(pansion, and quote remo).15 F -.25(va)-.15
G 2.67(la).25 G .17(fter being e)-2.67 F .17(xpanded as described in)
-.15 F F2(PR)2.67 E(OMPTING)-.27 E F0(abo)2.42 E -.15(ve)-.15 G(.).15 E
(This option is enabled by def)184 636 Q(ault.)-.1 E F1 -.18(re)144 648
-.15 F F2(PR)2.671 E(OMPTING)-.27 E F0(abo)2.421 E -.15(ve)-.15 G(.).15
E(This option is enabled by def)184 660 Q(ault.)-.1 E F1 -.18(re)144 672
S(stricted_shell).18 E F0 1.069
(The shell sets this option if it is started in restricted mode \(see)
184 660 R F2 1.069(RESTRICTED SHELL)3.569 F F0(belo)184 672 Q 4.178
184 684 R F2 1.069(RESTRICTED SHELL)3.569 F F0(belo)184 696 Q 4.178
(w\). The)-.25 F -.25(va)4.178 G 1.678(lue may not be changed.).25 F
1.678(This is not reset when the startup \214les are)6.678 F -.15(exe)
184 684 S(cuted, allo).15 E(wing the startup \214les to disco)-.25 E
184 708 S(cuted, allo).15 E(wing the startup \214les to disco)-.25 E
-.15(ve)-.15 G 2.5(rw).15 G(hether or not a shell is restricted.)-2.5 E
F1(shift_v)144 696 Q(erbose)-.1 E F0 .501(If set, the)184 708 R F1
(shift)3.001 E F0 -.2(bu)3.001 G .501
(iltin prints an error message when the shift count e).2 F .502
(xceeds the number)-.15 F(of positional parameters.)184 720 Q
(GNU Bash-4.0)72 768 Q(2004 Apr 20)148.735 E(18)198.725 E 0 Cg EP
%%Page: 19 19
%%BeginPageSetup
@@ -2337,101 +2338,104 @@ BP
%%EndPageSetup
/F0 10/Times-Roman@0 SF -.35(BA)72 48 S(SH_B).35 E(UIL)-.1 E 290.48
(TINS\(1\) B)-.92 F(ASH_B)-.35 E(UIL)-.1 E(TINS\(1\))-.92 E/F1 10
/Times-Bold@0 SF(sour)144 84 Q(cepath)-.18 E F0 .771(If set, the)184 96
R F1(sour)3.271 E(ce)-.18 E F0(\()3.271 E F1(.)A F0 3.271(\)b)C .771
(uiltin uses the v)-3.471 F .771(alue of)-.25 F/F2 9/Times-Bold@0 SF
-.666(PA)3.27 G(TH)-.189 E F0 .77
(to \214nd the directory containing the)3.02 F(\214le supplied as an ar)
184 108 Q 2.5(gument. This)-.18 F(option is enabled by def)2.5 E(ault.)
-.1 E F1(xpg_echo)144 120 Q F0(If set, the)184 132 Q F1(echo)2.5 E F0
-.2(bu)2.5 G(iltin e).2 E(xpands backslash-escape sequences by def)-.15
E(ault.)-.1 E F1(suspend)108 144 Q F0([)2.5 E F1<ad66>A F0(])A 1.001
(Suspend the e)144 156 R -.15(xe)-.15 G 1.001
(cution of this shell until it recei).15 F -.15(ve)-.25 G 3.501(sa).15 G
F2(SIGCONT)A F0 3.502(signal. A)3.252 F 1.002(login shell cannot be)
3.502 F .023(suspended; the)144 168 R F1<ad66>2.523 E F0 .023
(option can be used to o)2.523 F -.15(ve)-.15 G .022
(rride this and force the suspension.).15 F .022(The return status is)
5.022 F 2.5(0u)144 180 S(nless the shell is a login shell and)-2.5 E F1
/Times-Bold@0 SF(shift_v)144 84 Q(erbose)-.1 E F0 .502(If set, the)184
96 R F1(shift)3.002 E F0 -.2(bu)3.002 G .501
(iltin prints an error message when the shift count e).2 F .501
(xceeds the number)-.15 F(of positional parameters.)184 108 Q F1(sour)
144 120 Q(cepath)-.18 E F0 .77(If set, the)184 132 R F1(sour)3.27 E(ce)
-.18 E F0(\()3.27 E F1(.)A F0 3.27(\)b)C .77(uiltin uses the v)-3.47 F
.771(alue of)-.25 F/F2 9/Times-Bold@0 SF -.666(PA)3.271 G(TH)-.189 E F0
.771(to \214nd the directory containing the)3.021 F
(\214le supplied as an ar)184 144 Q 2.5(gument. This)-.18 F
(option is enabled by def)2.5 E(ault.)-.1 E F1(xpg_echo)144 156 Q F0
(If set, the)184 168 Q F1(echo)2.5 E F0 -.2(bu)2.5 G(iltin e).2 E
(xpands backslash-escape sequences by def)-.15 E(ault.)-.1 E F1(suspend)
108 180 Q F0([)2.5 E F1<ad66>A F0(])A 1.002(Suspend the e)144 192 R -.15
(xe)-.15 G 1.002(cution of this shell until it recei).15 F -.15(ve)-.25
G 3.501(sa).15 G F2(SIGCONT)A F0 3.501(signal. A)3.251 F 1.001
(login shell cannot be)3.501 F .022(suspended; the)144 204 R F1<ad66>
2.522 E F0 .022(option can be used to o)2.522 F -.15(ve)-.15 G .022
(rride this and force the suspension.).15 F .023(The return status is)
5.023 F 2.5(0u)144 216 S(nless the shell is a login shell and)-2.5 E F1
<ad66>2.5 E F0(is not supplied, or if job control is not enabled.)2.5 E
F1(test)108 192 Q/F3 10/Times-Italic@0 SF -.2(ex)2.5 G(pr).2 E F1([)108
204 Q F3 -.2(ex)2.5 G(pr).2 E F1(])2.5 E F0 1.15
F1(test)108 228 Q/F3 10/Times-Italic@0 SF -.2(ex)2.5 G(pr).2 E F1([)108
240 Q F3 -.2(ex)2.5 G(pr).2 E F1(])2.5 E F0 1.15
(Return a status of 0 or 1 depending on the e)6.77 F -.25(va)-.25 G 1.15
(luation of the conditional e).25 F(xpression)-.15 E F3 -.2(ex)3.65 G
(pr).2 E F0 6.15(.E).73 G(ach)-6.15 E 1.188
(operator and operand must be a separate ar)144 216 R 3.688
(gument. Expressions)-.18 F 1.187(are composed of the primaries)3.688 F
1.889(described abo)144 228 R 2.189 -.15(ve u)-.15 H(nder).15 E F2
(CONDITION)4.389 E 1.889(AL EXPRESSIONS)-.18 F/F4 9/Times-Roman@0 SF(.)A
F1(test)6.389 E F0 1.89(does not accept an)4.389 F 4.39(yo)-.15 G 1.89
(ptions, nor)-4.39 F(does it accept and ignore an ar)144 240 Q
(pr).2 E F0 6.15(.E).73 G(ach)-6.15 E 1.187
(operator and operand must be a separate ar)144 252 R 3.688
(gument. Expressions)-.18 F 1.188(are composed of the primaries)3.688 F
1.89(described abo)144 264 R 2.19 -.15(ve u)-.15 H(nder).15 E F2
(CONDITION)4.39 E 1.89(AL EXPRESSIONS)-.18 F/F4 9/Times-Roman@0 SF(.)A
F1(test)6.39 E F0 1.889(does not accept an)4.389 F 4.389(yo)-.15 G 1.889
(ptions, nor)-4.389 F(does it accept and ignore an ar)144 276 Q
(gument of)-.18 E F1<adad>2.5 E F0(as signifying the end of options.)2.5
E .786(Expressions may be combined using the follo)144 258 R .785
E .785(Expressions may be combined using the follo)144 294 R .786
(wing operators, listed in decreasing order of prece-)-.25 F 2.5
(dence. The)144 270 R -.25(eva)2.5 G
(dence. The)144 306 R -.25(eva)2.5 G
(luation depends on the number of ar).25 E(guments; see belo)-.18 E -.65
(w.)-.25 G F1(!)144 282 Q F3 -.2(ex)2.5 G(pr).2 E F0 -.35(Tr)12.6 G
(w.)-.25 G F1(!)144 318 Q F3 -.2(ex)2.5 G(pr).2 E F0 -.35(Tr)12.6 G
(ue if).35 E F3 -.2(ex)2.5 G(pr).2 E F0(is f)3.23 E(alse.)-.1 E F1(\()
144 294 Q F3 -.2(ex)2.5 G(pr).2 E F1(\))2.5 E F0 .26(Returns the v)6.77
144 330 Q F3 -.2(ex)2.5 G(pr).2 E F1(\))2.5 E F0 .26(Returns the v)6.77
F .26(alue of)-.25 F F3 -.2(ex)2.76 G(pr).2 E F0 5.26(.T)C .26
(his may be used to o)-5.26 F -.15(ve)-.15 G .26
(rride the normal precedence of opera-).15 F(tors.)180 306 Q F3 -.2(ex)
144 318 S(pr1).2 E F0<ad>2.5 E F1(a)A F3 -.2(ex)2.5 G(pr2).2 E F0 -.35
(Tr)180 330 S(ue if both).35 E F3 -.2(ex)2.5 G(pr1).2 E F0(and)2.5 E F3
-.2(ex)2.5 G(pr2).2 E F0(are true.)2.52 E F3 -.2(ex)144 342 S(pr1).2 E
F0<ad>2.5 E F1(o)A F3 -.2(ex)2.5 G(pr2).2 E F0 -.35(Tr)180 354 S
(rride the normal precedence of opera-).15 F(tors.)180 342 Q F3 -.2(ex)
144 354 S(pr1).2 E F0<ad>2.5 E F1(a)A F3 -.2(ex)2.5 G(pr2).2 E F0 -.35
(Tr)180 366 S(ue if both).35 E F3 -.2(ex)2.5 G(pr1).2 E F0(and)2.5 E F3
-.2(ex)2.5 G(pr2).2 E F0(are true.)2.52 E F3 -.2(ex)144 378 S(pr1).2 E
F0<ad>2.5 E F1(o)A F3 -.2(ex)2.5 G(pr2).2 E F0 -.35(Tr)180 390 S
(ue if either).35 E F3 -.2(ex)2.5 G(pr1).2 E F0(or)2.5 E F3 -.2(ex)2.5 G
(pr2).2 E F0(is true.)2.52 E F1(test)144 370.8 Q F0(and)2.5 E F1([)2.5 E
(pr2).2 E F0(is true.)2.52 E F1(test)144 406.8 Q F0(and)2.5 E F1([)2.5 E
F0 -.25(eva)2.5 G(luate conditional e).25 E
(xpressions using a set of rules based on the number of ar)-.15 E
(guments.)-.18 E 2.5(0a)144 388.8 S -.18(rg)-2.5 G(uments).18 E(The e)
180 400.8 Q(xpression is f)-.15 E(alse.)-.1 E 2.5(1a)144 412.8 S -.18
(rg)-2.5 G(ument).18 E(The e)180 424.8 Q
(guments.)-.18 E 2.5(0a)144 424.8 S -.18(rg)-2.5 G(uments).18 E(The e)
180 436.8 Q(xpression is f)-.15 E(alse.)-.1 E 2.5(1a)144 448.8 S -.18
(rg)-2.5 G(ument).18 E(The e)180 460.8 Q
(xpression is true if and only if the ar)-.15 E(gument is not null.)-.18
E 2.5(2a)144 436.8 S -.18(rg)-2.5 G(uments).18 E .37(If the \214rst ar)
180 448.8 R .37(gument is)-.18 F F1(!)2.87 E F0 2.87(,t)C .37(he e)-2.87
E 2.5(2a)144 472.8 S -.18(rg)-2.5 G(uments).18 E .37(If the \214rst ar)
180 484.8 R .37(gument is)-.18 F F1(!)2.87 E F0 2.87(,t)C .37(he e)-2.87
F .37(xpression is true if and only if the second ar)-.15 F .37
(gument is null.)-.18 F .379(If the \214rst ar)180 460.8 R .38
(gument is one of the unary conditional operators listed abo)-.18 F .68
-.15(ve u)-.15 H(nder).15 E F2(CONDI-)2.88 E(TION)180 472.8 Q .553
(gument is null.)-.18 F .38(If the \214rst ar)180 496.8 R .38
(gument is one of the unary conditional operators listed abo)-.18 F .679
-.15(ve u)-.15 H(nder).15 E F2(CONDI-)2.879 E(TION)180 508.8 Q .552
(AL EXPRESSIONS)-.18 F F4(,)A F0 .552(the e)2.802 F .552
(xpression is true if the unary test is true.)-.15 F .552
(If the \214rst ar)5.552 F(gu-)-.18 E(ment is not a v)180 484.8 Q
(If the \214rst ar)5.552 F(gu-)-.18 E(ment is not a v)180 520.8 Q
(alid unary conditional operator)-.25 E 2.5(,t)-.4 G(he e)-2.5 E
(xpression is f)-.15 E(alse.)-.1 E 2.5(3a)144 496.8 S -.18(rg)-2.5 G
(uments).18 E .023(If the second ar)180 508.8 R .023
(xpression is f)-.15 E(alse.)-.1 E 2.5(3a)144 532.8 S -.18(rg)-2.5 G
(uments).18 E .024(If the second ar)180 544.8 R .023
(gument is one of the binary conditional operators listed abo)-.18 F
.324 -.15(ve u)-.15 H(nder).15 E F2(CON-)2.524 E(DITION)180 520.8 Q
1.478(AL EXPRESSIONS)-.18 F F4(,)A F0 1.477(the result of the e)3.727 F
.323 -.15(ve u)-.15 H(nder).15 E F2(CON-)2.523 E(DITION)180 556.8 Q
1.477(AL EXPRESSIONS)-.18 F F4(,)A F0 1.477(the result of the e)3.727 F
1.477(xpression is the result of the binary test)-.15 F .513
(using the \214rst and third ar)180 532.8 R .513(guments as operands.)
(using the \214rst and third ar)180 568.8 R .513(guments as operands.)
-.18 F(The)5.513 E F1<ad61>3.013 E F0(and)3.013 E F1<ad6f>3.013 E F0
.513(operators are considered)3.013 F .972
(binary operators when there are three ar)180 544.8 R 3.472(guments. If)
.512(operators are considered)3.013 F .972
(binary operators when there are three ar)180 580.8 R 3.472(guments. If)
-.18 F .972(the \214rst ar)3.472 F .972(gument is)-.18 F F1(!)3.472 E F0
3.472(,t)C .972(he v)-3.472 F .972(alue is)-.25 F .883(the ne)180 556.8
R -.05(ga)-.15 G .883(tion of the tw).05 F(o-ar)-.1 E .884
(gument test using the second and third ar)-.18 F 3.384(guments. If)-.18
F .884(the \214rst)3.384 F(ar)180 568.8 Q .875(gument is e)-.18 F
(xactly)-.15 E F1(\()3.375 E F0 .875(and the third ar)3.375 F .875
(gument is e)-.18 F(xactly)-.15 E F1(\))3.375 E F0 3.374(,t)C .874
(he result is the one-ar)-3.374 F(gument)-.18 E(test of the second ar)
180 580.8 Q 2.5(gument. Otherwise,)-.18 F(the e)2.5 E(xpression is f)
-.15 E(alse.)-.1 E 2.5(4a)144 592.8 S -.18(rg)-2.5 G(uments).18 E .384
(If the \214rst ar)180 604.8 R .384(gument is)-.18 F F1(!)2.884 E F0
2.885(,t)C .385(he result is the ne)-2.885 F -.05(ga)-.15 G .385
(tion of the three-ar).05 F .385(gument e)-.18 F .385(xpression com-)
-.15 F 1.648(posed of the remaining ar)180 616.8 R 4.147
(guments. Otherwise,)-.18 F 1.647(the e)4.147 F 1.647
3.472(,t)C .972(he v)-3.472 F .972(alue is)-.25 F .884(the ne)180 592.8
R -.05(ga)-.15 G .884(tion of the tw).05 F(o-ar)-.1 E .884
(gument test using the second and third ar)-.18 F 3.383(guments. If)-.18
F .883(the \214rst)3.383 F(ar)180 604.8 Q .874(gument is e)-.18 F
(xactly)-.15 E F1(\()3.374 E F0 .875(and the third ar)3.374 F .875
(gument is e)-.18 F(xactly)-.15 E F1(\))3.375 E F0 3.375(,t)C .875
(he result is the one-ar)-3.375 F(gument)-.18 E(test of the second ar)
180 616.8 Q 2.5(gument. Otherwise,)-.18 F(the e)2.5 E(xpression is f)
-.15 E(alse.)-.1 E 2.5(4a)144 628.8 S -.18(rg)-2.5 G(uments).18 E .385
(If the \214rst ar)180 640.8 R .385(gument is)-.18 F F1(!)2.885 E F0
2.885(,t)C .385(he result is the ne)-2.885 F -.05(ga)-.15 G .384
(tion of the three-ar).05 F .384(gument e)-.18 F .384(xpression com-)
-.15 F 1.647(posed of the remaining ar)180 652.8 R 4.147
(guments. Otherwise,)-.18 F 1.647(the e)4.147 F 1.648
(xpression is parsed and e)-.15 F -.25(va)-.25 G(luated).25 E
(according to precedence using the rules listed abo)180 628.8 Q -.15(ve)
-.15 G(.).15 E 2.5(5o)144 640.8 S 2.5(rm)-2.5 G(ore ar)-2.5 E(guments)
-.18 E 1.635(The e)180 652.8 R 1.635(xpression is parsed and e)-.15 F
(according to precedence using the rules listed abo)180 664.8 Q -.15(ve)
-.15 G(.).15 E 2.5(5o)144 676.8 S 2.5(rm)-2.5 G(ore ar)-2.5 E(guments)
-.18 E 1.635(The e)180 688.8 R 1.635(xpression is parsed and e)-.15 F
-.25(va)-.25 G 1.635
(luated according to precedence using the rules listed).25 F(abo)180
664.8 Q -.15(ve)-.15 G(.).15 E F1(times)108 681.6 Q F0 1.229(Print the \
700.8 Q -.15(ve)-.15 G(.).15 E F1(times)108 717.6 Q F0 1.229(Print the \
accumulated user and system times for the shell and for processes run f\
rom the shell.)13.23 F(The return status is 0.)144 693.6 Q(GNU Bash-4.0)
rom the shell.)13.23 F(The return status is 0.)144 729.6 Q(GNU Bash-4.0)
72 768 Q(2004 Apr 20)148.735 E(19)198.725 E 0 Cg EP
%%Page: 20 20
%%BeginPageSetup
@@ -2441,144 +2445,144 @@ BP
(TINS\(1\) B)-.92 F(ASH_B)-.35 E(UIL)-.1 E(TINS\(1\))-.92 E/F1 10
/Times-Bold@0 SF(trap)108 84 Q F0([)2.5 E F1(\255lp)A F0 2.5(][)C([)-2.5
E/F2 10/Times-Italic@0 SF(ar)A(g)-.37 E F0(])A F2(sigspec)2.5 E F0(...])
2.5 E .702(The command)144 96 R F2(ar)3.532 E(g)-.37 E F0 .702
(is to be read and e)3.422 F -.15(xe)-.15 G .702
(cuted when the shell recei).15 F -.15(ve)-.25 G 3.203(ss).15 G
(ignal\(s\))-3.203 E F2(sigspec)3.203 E F0 5.703(.I).31 G(f)-5.703 E F2
(ar)3.533 E(g)-.37 E F0(is)3.423 E .609(absent \(and there is a single)
2.5 E .703(The command)144 96 R F2(ar)3.533 E(g)-.37 E F0 .703
(is to be read and e)3.423 F -.15(xe)-.15 G .702
(cuted when the shell recei).15 F -.15(ve)-.25 G 3.202(ss).15 G
(ignal\(s\))-3.202 E F2(sigspec)3.202 E F0 5.702(.I).31 G(f)-5.702 E F2
(ar)3.532 E(g)-.37 E F0(is)3.422 E .608(absent \(and there is a single)
144 108 R F2(sigspec)3.108 E F0 3.108(\)o)C(r)-3.108 E F1<ad>3.108 E F0
3.108(,e)C .608
(ach speci\214ed signal is reset to its original disposition)-3.108 F
.658(\(the v)144 120 R .658(alue it had upon entrance to the shell\).)
-.25 F(If)5.658 E F2(ar)3.488 E(g)-.37 E F0 .659
.659(\(the v)144 120 R .659(alue it had upon entrance to the shell\).)
-.25 F(If)5.658 E F2(ar)3.488 E(g)-.37 E F0 .658
(is the null string the signal speci\214ed by each)3.378 F F2(sigspec)
144.34 132 Q F0 .581(is ignored by the shell and by the commands it in)
3.391 F -.2(vo)-.4 G -.1(ke).2 G 3.08(s. If).1 F F2(ar)3.41 E(g)-.37 E
F0 .58(is not present and)3.3 F F1<ad70>3.08 E F0(has)3.08 E 1.214
144.34 132 Q F0 .58(is ignored by the shell and by the commands it in)
3.39 F -.2(vo)-.4 G -.1(ke).2 G 3.081(s. If).1 F F2(ar)3.411 E(g)-.37 E
F0 .581(is not present and)3.301 F F1<ad70>3.081 E F0(has)3.081 E 1.215
(been supplied, then the trap commands associated with each)144 144 R F2
(sigspec)4.054 E F0 1.215(are displayed.)4.024 F 1.215(If no ar)6.215 F
(sigspec)4.054 E F0 1.214(are displayed.)4.024 F 1.214(If no ar)6.214 F
(gu-)-.18 E .86(ments are supplied or if only)144 156 R F1<ad70>3.36 E
F0 .86(is gi)3.36 F -.15(ve)-.25 G(n,).15 E F1(trap)3.36 E F0 .86
(prints the list of commands associated with each)3.36 F 2.83
(signal. The)144 168 R F1<ad6c>2.83 E F0 .33(option causes the shell to\
print a list of signal names and their corresponding num-)2.83 F 4.311
(bers. Each)144 180 R F2(sigspec)4.651 E F0 1.811
(is either a signal name de\214ned in <)4.621 F F2(signal.h)A F0 1.81
(>, or a signal number)B 6.81(.S)-.55 G(ignal)-6.81 E
print a list of signal names and their corresponding num-)2.83 F 4.31
(bers. Each)144 180 R F2(sigspec)4.65 E F0 1.811
(is either a signal name de\214ned in <)4.62 F F2(signal.h)A F0 1.811
(>, or a signal number)B 6.811(.S)-.55 G(ignal)-6.811 E
(names are case insensiti)144 192 Q .3 -.15(ve a)-.25 H(nd the).15 E/F3
9/Times-Bold@0 SF(SIG)2.5 E F0(pre\214x is optional.)2.25 E 1.648(If a)
144 210 R F2(sigspec)4.488 E F0(is)4.458 E F3(EXIT)4.148 E F0 1.648
(\(0\) the command)3.898 F F2(ar)4.479 E(g)-.37 E F0 1.649(is e)4.369 F
-.15(xe)-.15 G 1.649(cuted on e).15 F 1.649(xit from the shell.)-.15 F
1.649(If a)6.649 F F2(sigspec)4.489 E F0(is)4.459 E F3(DEB)144 222 Q(UG)
-.09 E/F4 9/Times-Roman@0 SF(,)A F0 1.168(the command)3.418 F F2(ar)
3.998 E(g)-.37 E F0 1.168(is e)3.888 F -.15(xe)-.15 G 1.167
(cuted before e).15 F -.15(ve)-.25 G(ry).15 E F2 1.167(simple command)
3.667 F F0(,)A F2(for)3.667 E F0(command,)3.667 E F2(case)3.667 E F0
(com-)3.667 E(mand,)144 234 Q F2(select)2.646 E F0 .146(command, e)2.646
F -.15(ve)-.25 G .146(ry arithmetic).15 F F2(for)2.646 E F0 .147
(command, and before the \214rst command e)2.646 F -.15(xe)-.15 G .147
(cutes in a).15 F .146(shell function \(see)144 246 R F3 .146
(SHELL GRAMMAR)2.646 F F0(abo)2.396 E -.15(ve)-.15 G 2.646(\). Refer).15
F .146(to the description of the)2.646 F F1(extdeb)2.645 E(ug)-.2 E F0
.145(option to)2.645 F(the)144 258 Q F1(shopt)3.2 E F0 -.2(bu)3.2 G .7
(iltin for details of its ef).2 F .7(fect on the)-.25 F F1(DEB)3.2 E(UG)
-.1 E F0 3.2(trap. If)3.2 F(a)3.2 E F2(sigspec)3.54 E F0(is)3.51 E F3
(RETURN)3.2 E F4(,)A F0 .701(the com-)2.951 F(mand)144 270 Q F2(ar)3.474
E(g)-.37 E F0 .644(is e)3.364 F -.15(xe)-.15 G .643
9/Times-Bold@0 SF(SIG)2.5 E F0(pre\214x is optional.)2.25 E 1.649(If a)
144 210 R F2(sigspec)4.489 E F0(is)4.459 E F3(EXIT)4.149 E F0 1.649
(\(0\) the command)3.899 F F2(ar)4.479 E(g)-.37 E F0 1.649(is e)4.369 F
-.15(xe)-.15 G 1.649(cuted on e).15 F 1.648(xit from the shell.)-.15 F
1.648(If a)6.648 F F2(sigspec)4.488 E F0(is)4.458 E F3(DEB)144 222 Q(UG)
-.09 E/F4 9/Times-Roman@0 SF(,)A F0 1.167(the command)3.417 F F2(ar)
3.997 E(g)-.37 E F0 1.167(is e)3.887 F -.15(xe)-.15 G 1.167
(cuted before e).15 F -.15(ve)-.25 G(ry).15 E F2 1.168(simple command)
3.667 F F0(,)A F2(for)3.668 E F0(command,)3.668 E F2(case)3.668 E F0
(com-)3.668 E(mand,)144 234 Q F2(select)2.647 E F0 .147(command, e)2.647
F -.15(ve)-.25 G .147(ry arithmetic).15 F F2(for)2.647 E F0 .146
(command, and before the \214rst command e)2.647 F -.15(xe)-.15 G .146
(cutes in a).15 F .145(shell function \(see)144 246 R F3 .145
(SHELL GRAMMAR)2.645 F F0(abo)2.395 E -.15(ve)-.15 G 2.646(\). Refer).15
F .146(to the description of the)2.646 F F1(extdeb)2.646 E(ug)-.2 E F0
.146(option to)2.646 F(the)144 258 Q F1(shopt)3.201 E F0 -.2(bu)3.201 G
.7(iltin for details of its ef).2 F .7(fect on the)-.25 F F1(DEB)3.2 E
(UG)-.1 E F0 3.2(trap. If)3.2 F(a)3.2 E F2(sigspec)3.54 E F0(is)3.51 E
F3(RETURN)3.2 E F4(,)A F0 .7(the com-)2.95 F(mand)144 270 Q F2(ar)3.473
E(g)-.37 E F0 .643(is e)3.363 F -.15(xe)-.15 G .643
(cuted each time a shell function or a script e).15 F -.15(xe)-.15 G
.643(cuted with the).15 F F1(.)3.143 E F0(or)3.143 E F1(sour)3.143 E(ce)
-.18 E F0 -.2(bu)3.143 G(iltins).2 E(\214nishes e)144 282 Q -.15(xe)-.15
G(cuting.).15 E .928(If a)144 300 R F2(sigspec)3.768 E F0(is)3.738 E F3
.644(cuted with the).15 F F1(.)3.144 E F0(or)3.144 E F1(sour)3.144 E(ce)
-.18 E F0 -.2(bu)3.144 G(iltins).2 E(\214nishes e)144 282 Q -.15(xe)-.15
G(cuting.).15 E .929(If a)144 300 R F2(sigspec)3.769 E F0(is)3.739 E F3
(ERR)3.429 E F4(,)A F0 .929(the command)3.179 F F2(ar)3.759 E(g)-.37 E
F0 .929(is e)3.649 F -.15(xe)-.15 G .929(cuted whene).15 F -.15(ve)-.25
G 3.429(ras).15 G .929(imple command has a non\255zero)-3.429 F -.15(ex)
144 312 S 1.009(it status, subject to the follo).15 F 1.009
G 3.429(ras).15 G .928(imple command has a non\255zero)-3.429 F -.15(ex)
144 312 S 1.008(it status, subject to the follo).15 F 1.009
(wing conditions.)-.25 F(The)6.009 E F3(ERR)3.509 E F0 1.009
(trap is not e)3.259 F -.15(xe)-.15 G 1.008(cuted if the f).15 F 1.008
(trap is not e)3.259 F -.15(xe)-.15 G 1.009(cuted if the f).15 F 1.009
(ailed com-)-.1 F .324
(mand is part of the command list immediately follo)144 324 R .324
(wing a)-.25 F F1(while)2.824 E F0(or)2.824 E F1(until)2.824 E F0 -.1
(ke)2.824 G(yw)-.05 E .324(ord, part of the test)-.1 F 1.129(in an)144
(ke)2.824 G(yw)-.05 E .324(ord, part of the test)-.1 F 1.128(in an)144
336 R F2(if)3.639 E F0 1.129(statement, part of a command e)5.589 F -.15
(xe)-.15 G 1.129(cuted in a).15 F F1(&&)3.629 E F0(or)3.629 E/F5 10
/Symbol SF<efef>3.629 E F0 1.129(list, or if the command')3.629 F 3.628
(sr)-.55 G(eturn)-3.628 E -.25(va)144 348 S(lue is being in).25 E -.15
/Symbol SF<efef>3.629 E F0 1.129(list, or if the command')3.629 F 3.629
(sr)-.55 G(eturn)-3.629 E -.25(va)144 348 S(lue is being in).25 E -.15
(ve)-.4 G(rted via).15 E F1(!)2.5 E F0 5(.T)C
(hese are the same conditions obe)-5 E(yed by the)-.15 E F1(err)2.5 E
(exit)-.18 E F0(option.)2.5 E 1.095
(Signals ignored upon entry to the shell cannot be trapped or reset.)144
366 R -.35(Tr)6.095 G 1.095(apped signals that are not).35 F .662
(being ignored are reset to their original v)144 378 R .662
(alues in a subshell or subshell en)-.25 F .661(vironment when one is)
(alues in a subshell or subshell en)-.25 F .662(vironment when one is)
-.4 F 2.5(created. The)144 390 R(return status is f)2.5 E(alse if an)-.1
E(y)-.15 E F2(sigspec)2.84 E F0(is in)2.81 E -.25(va)-.4 G
(lid; otherwise).25 E F1(trap)2.5 E F0(returns true.)2.5 E F1(type)108
406.8 Q F0([)2.5 E F1(\255aftpP)A F0(])A F2(name)2.5 E F0([)2.5 E F2
(name)A F0(...])2.5 E -.4(Wi)144 418.8 S .173
(th no options, indicate ho).4 F 2.673(we)-.25 G(ach)-2.673 E F2(name)
3.033 E F0 -.1(wo)2.853 G .174
(uld be interpreted if used as a command name.).1 F .174(If the)5.174 F
F1<ad74>144 430.8 Q F0 .843(option is used,)3.343 F F1(type)3.343 E F0
(name)A F0(...])2.5 E -.4(Wi)144 418.8 S .174
(th no options, indicate ho).4 F 2.674(we)-.25 G(ach)-2.674 E F2(name)
3.034 E F0 -.1(wo)2.854 G .173
(uld be interpreted if used as a command name.).1 F .173(If the)5.173 F
F1<ad74>144 430.8 Q F0 .842(option is used,)3.342 F F1(type)3.342 E F0
.843(prints a string which is one of)3.343 F F2(alias)3.343 E F0(,).27 E
F2 -.1(ke)3.343 G(ywor)-.2 E(d)-.37 E F0(,).77 E F2(function)3.343 E F0
(,).24 E F2 -.2(bu)3.342 G(iltin).2 E F0 3.342(,o).24 G(r)-3.342 E F2
(\214le)5.252 E F0(if)3.522 E F2(name)144.36 442.8 Q F0 .086
(is an alias, shell reserv)2.766 F .086(ed w)-.15 F .086
(ord, function, b)-.1 F .087(uiltin, or disk \214le, respecti)-.2 F -.15
(ve)-.25 G(ly).15 E 5.087(.I)-.65 G 2.587(ft)-5.087 G(he)-2.587 E F2
(name)2.947 E F0 .087(is not)2.767 F .119
(,).24 E F2 -.2(bu)3.343 G(iltin).2 E F0 3.343(,o).24 G(r)-3.343 E F2
(\214le)5.253 E F0(if)3.523 E F2(name)144.36 442.8 Q F0 .087
(is an alias, shell reserv)2.767 F .087(ed w)-.15 F .087
(ord, function, b)-.1 F .086(uiltin, or disk \214le, respecti)-.2 F -.15
(ve)-.25 G(ly).15 E 5.086(.I)-.65 G 2.586(ft)-5.086 G(he)-2.586 E F2
(name)2.946 E F0 .086(is not)2.766 F .118
(found, then nothing is printed, and an e)144 454.8 R .118
(xit status of f)-.15 F .118(alse is returned.)-.1 F .118(If the)5.118 F
F1<ad70>2.618 E F0 .118(option is used,)2.618 F F1(type)2.618 E F0 .855
(xit status of f)-.15 F .118(alse is returned.)-.1 F .119(If the)5.119 F
F1<ad70>2.619 E F0 .119(option is used,)2.619 F F1(type)2.619 E F0 .855
(either returns the name of the disk \214le that w)144 466.8 R .855
(ould be e)-.1 F -.15(xe)-.15 G .855(cuted if).15 F F2(name)3.715 E F0
.855(were speci\214ed as a com-)3.535 F .641(mand name, or nothing if)
144 478.8 R/F6 10/Courier@0 SF .641(type -t name)3.141 F F0 -.1(wo)3.141
G .641(uld not return).1 F F2(\214le)3.14 E F0 5.64(.T).18 G(he)-5.64 E
F1<ad50>3.14 E F0 .64(option forces a)3.14 F F3 -.666(PA)3.14 G(TH)-.189
E F0 .112(search for each)144 490.8 R F2(name)2.612 E F0 2.612(,e)C -.15
(ve)-2.862 G 2.613(ni).15 G(f)-2.613 E F6 .113(type -t name)2.613 F F0
-.1(wo)2.613 G .113(uld not return).1 F F2(\214le)2.613 E F0 5.113(.I)
.18 G 2.613(fac)-5.113 G .113(ommand is hashed,)-2.613 F F1<ad70>2.613 E
F0(and)144 502.8 Q F1<ad50>2.945 E F0 .445(print the hashed v)2.945 F
.444(alue, not necessarily the \214le that appears \214rst in)-.25 F F3
-.666(PA)2.944 G(TH)-.189 E F4(.)A F0 .444(If the)4.944 F F1<ad61>2.944
E F0(option)2.944 E .265(is used,)144 514.8 R F1(type)2.765 E F0 .265
(prints all of the places that contain an e)2.765 F -.15(xe)-.15 G .265
(cutable named).15 F F2(name)2.765 E F0 5.265(.T).18 G .265
(his includes aliases)-5.265 F .427(and functions, if and only if the)
.855(were speci\214ed as a com-)3.535 F .64(mand name, or nothing if)144
478.8 R/F6 10/Courier@0 SF .64(type -t name)3.14 F F0 -.1(wo)3.14 G .641
(uld not return).1 F F2(\214le)3.141 E F0 5.641(.T).18 G(he)-5.641 E F1
<ad50>3.141 E F0 .641(option forces a)3.141 F F3 -.666(PA)3.141 G(TH)
-.189 E F0 .113(search for each)144 490.8 R F2(name)2.613 E F0 2.613(,e)
C -.15(ve)-2.863 G 2.613(ni).15 G(f)-2.613 E F6 .113(type -t name)2.613
F F0 -.1(wo)2.613 G .113(uld not return).1 F F2(\214le)2.613 E F0 5.113
(.I).18 G 2.613(fa)-5.113 G .112(command is hashed,)-.001 F F1<ad70>
2.612 E F0(and)144 502.8 Q F1<ad50>2.944 E F0 .444(print the hashed v)
2.944 F .444(alue, not necessarily the \214le that appears \214rst in)
-.25 F F3 -.666(PA)2.945 G(TH)-.189 E F4(.)A F0 .445(If the)4.945 F F1
<ad61>2.945 E F0(option)2.945 E .265(is used,)144 514.8 R F1(type)2.765
E F0 .265(prints all of the places that contain an e)2.765 F -.15(xe)
-.15 G .265(cutable named).15 F F2(name)2.765 E F0 5.265(.T).18 G .265
(his includes aliases)-5.265 F .426(and functions, if and only if the)
144 526.8 R F1<ad70>2.926 E F0 .426(option is not also used.)2.926 F
.426(The table of hashed commands is not)5.426 F .548
(consulted when using)144 538.8 R F1<ad61>3.048 E F0 5.548(.T)C(he)
-5.548 E F1<ad66>3.048 E F0 .549
(option suppresses shell function lookup, as with the)3.048 F F1
(command)3.049 E F0 -.2(bu)144 550.8 S(iltin.).2 E F1(type)5 E F0
.427(The table of hashed commands is not)5.426 F .549
(consulted when using)144 538.8 R F1<ad61>3.049 E F0 5.549(.T)C(he)
-5.549 E F1<ad66>3.049 E F0 .548
(option suppresses shell function lookup, as with the)3.049 F F1
(command)3.048 E F0 -.2(bu)144 550.8 S(iltin.).2 E F1(type)5 E F0
(returns true if all of the ar)2.5 E(guments are found, f)-.18 E
(alse if an)-.1 E 2.5(ya)-.15 G(re not found.)-2.5 E F1(ulimit)108 567.6
Q F0([)2.5 E F1(\255HST)A(abcde\214lmnpqrstuvx)-.92 E F0([)2.5 E F2
(limit)A F0(]])A(Pro)144 579.6 Q .244(vides control o)-.15 F -.15(ve)
-.15 G 2.744(rt).15 G .244(he resources a)-2.744 F -.25(va)-.2 G .244
(limit)A F0(]])A(Pro)144 579.6 Q .243(vides control o)-.15 F -.15(ve)
-.15 G 2.743(rt).15 G .243(he resources a)-2.743 F -.25(va)-.2 G .244
(ilable to the shell and to processes started by it, on systems).25 F
.943(that allo)144 591.6 R 3.443(ws)-.25 G .943(uch control.)-3.443 F
(The)5.943 E F1<ad48>3.443 E F0(and)3.443 E F1<ad53>3.444 E F0 .944
.944(that allo)144 591.6 R 3.444(ws)-.25 G .944(uch control.)-3.444 F
(The)5.944 E F1<ad48>3.444 E F0(and)3.444 E F1<ad53>3.444 E F0 .943
(options specify that the hard or soft limit is set for the)3.444 F(gi)
144 603.6 Q -.15(ve)-.25 G 2.709(nr).15 G 2.709(esource. A)-2.709 F .208
144 603.6 Q -.15(ve)-.25 G 2.708(nr).15 G 2.708(esource. A)-2.708 F .208
(hard limit cannot be increased by a non-root user once it is set; a so\
ft limit may)2.709 F .425(be increased up to the v)144 615.6 R .425
(alue of the hard limit.)-.25 F .426(If neither)5.425 F F1<ad48>2.926 E
F0(nor)2.926 E F1<ad53>2.926 E F0 .426
(is speci\214ed, both the soft and)2.926 F .139(hard limits are set.)144
ft limit may)2.708 F .426(be increased up to the v)144 615.6 R .426
(alue of the hard limit.)-.25 F .425(If neither)5.426 F F1<ad48>2.925 E
F0(nor)2.925 E F1<ad53>2.925 E F0 .425
(is speci\214ed, both the soft and)2.925 F .139(hard limits are set.)144
627.6 R .139(The v)5.139 F .139(alue of)-.25 F F2(limit)2.729 E F0 .139
(can be a number in the unit speci\214ed for the resource or one)3.319 F
.741(of the special v)144 639.6 R(alues)-.25 E F1(hard)3.241 E F0(,)A F1
.742(of the special v)144 639.6 R(alues)-.25 E F1(hard)3.242 E F0(,)A F1
(soft)3.241 E F0 3.241(,o)C(r)-3.241 E F1(unlimited)3.241 E F0 3.241(,w)
C .741(hich stand for the current hard limit, the current)-3.241 F .78
(soft limit, and no limit, respecti)144 651.6 R -.15(ve)-.25 G(ly).15 E
5.78(.I)-.65 G(f)-5.78 E F2(limit)3.37 E F0 .78
(is omitted, the current v)3.96 F .78(alue of the soft limit of the)-.25
F .498(resource is printed, unless the)144 663.6 R F1<ad48>2.999 E F0
.499(option is gi)2.999 F -.15(ve)-.25 G 2.999(n. When).15 F .499
F .499(resource is printed, unless the)144 663.6 R F1<ad48>2.999 E F0
.499(option is gi)2.999 F -.15(ve)-.25 G 2.999(n. When).15 F .498
(more than one resource is speci\214ed, the)2.999 F
(limit name and unit are printed before the v)144 675.6 Q 2.5
(alue. Other)-.25 F(options are interpreted as follo)2.5 E(ws:)-.25 E F1
@@ -2602,8 +2606,8 @@ E F1<ad69>144 120 Q F0(The maximum number of pending signals)27.52 E F1
(The maximum resident set size \(man)21.97 E 2.5(ys)-.15 G
(ystems do not honor this limit\))-2.5 E F1<ad6e>144 156 Q F0 .791(The \
maximum number of open \214le descriptors \(most systems do not allo)
24.74 F 3.29(wt)-.25 G .79(his v)-3.29 F .79(alue to)-.25 F(be set\))180
168 Q F1<ad70>144 180 Q F0
24.74 F 3.291(wt)-.25 G .791(his v)-3.291 F .791(alue to)-.25 F
(be set\))180 168 Q F1<ad70>144 180 Q F0
(The pipe size in 512-byte blocks \(this may not be set\))24.74 E F1
<ad71>144 192 Q F0(The maximum number of bytes in POSIX message queues)
24.74 E F1<ad72>144 204 Q F0(The maximum real-time scheduling priority)
@@ -2618,16 +2622,16 @@ Q F1<ad78>144 276 Q F0(The maximum number of \214le locks)25.3 E F1
/F2 10/Times-Italic@0 SF(limit)2.933 E F0 .343(is gi)3.523 F -.15(ve)
-.25 G .343(n, it is the ne).15 F 2.843(wv)-.25 G .343
(alue of the speci\214ed resource \(the)-3.093 F F1<ad61>2.843 E F0 .343
(option is display only\).)2.843 F .343(If no)5.343 F .175(option is gi)
144 316.8 R -.15(ve)-.25 G .175(n, then).15 F F1<ad66>2.675 E F0 .175
(is assumed.)2.675 F -1.11(Va)5.175 G .175
(lues are in 1024-byte increments, e)1.11 F .176(xcept for)-.15 F F1
<ad74>2.676 E F0 2.676(,w)C .176(hich is in)-2.676 F(seconds,)144 328.8
Q F1<ad70>2.516 E F0 2.516(,w)C .016
(hich is in units of 512-byte blocks, and)-2.516 F F1<ad54>2.516 E F0(,)
A F1<ad62>2.515 E F0(,)A F1<ad6e>2.515 E F0 2.515(,a)C(nd)-2.515 E F1
<ad75>2.515 E F0 2.515(,w)C .015(hich are unscaled v)-2.515 F(al-)-.25 E
3.787(ues. The)144 340.8 R 1.287(return status is 0 unless an in)3.787 F
(option is display only\).)2.843 F .343(If no)5.343 F .176(option is gi)
144 316.8 R -.15(ve)-.25 G .176(n, then).15 F F1<ad66>2.676 E F0 .175
(is assumed.)2.676 F -1.11(Va)5.175 G .175
(lues are in 1024-byte increments, e)1.11 F .175(xcept for)-.15 F F1
<ad74>2.675 E F0 2.675(,w)C .175(hich is in)-2.675 F(seconds,)144 328.8
Q F1<ad70>2.515 E F0 2.515(,w)C .015
(hich is in units of 512-byte blocks, and)-2.515 F F1<ad54>2.516 E F0(,)
A F1<ad62>2.516 E F0(,)A F1<ad6e>2.516 E F0 2.516(,a)C(nd)-2.516 E F1
<ad75>2.516 E F0 2.516(,w)C .016(hich are unscaled v)-2.516 F(al-)-.25 E
3.788(ues. The)144 340.8 R 1.287(return status is 0 unless an in)3.787 F
-.25(va)-.4 G 1.287(lid option or ar).25 F 1.287
(gument is supplied, or an error occurs)-.18 F(while setting a ne)144
352.8 Q 2.5(wl)-.25 G(imit.)-2.5 E F1(umask)108 369.6 Q F0([)2.5 E F1
@@ -2637,15 +2641,15 @@ A F1<ad62>2.515 E F0(,)A F1<ad6e>2.515 E F0 2.515(,a)C(nd)-2.515 E F1
(gins with a digit, it is interpreted as an octal)-.15 F .066(number; o\
therwise it is interpreted as a symbolic mode mask similar to that acce\
pted by)144 393.6 R F2 -.15(ch)2.566 G(mod).15 E F0(\(1\).).77 E(If)144
405.6 Q F2(mode)3.263 E F0 .382(is omitted, the current v)3.063 F .382
405.6 Q F2(mode)3.262 E F0 .382(is omitted, the current v)3.062 F .382
(alue of the mask is printed.)-.25 F(The)5.382 E F1<ad53>2.882 E F0 .382
(option causes the mask to be)2.882 F .547
(printed in symbolic form; the def)144 417.6 R .547
(ault output is an octal number)-.1 F 5.547(.I)-.55 G 3.047(ft)-5.547 G
(he)-3.047 E F1<ad70>3.047 E F0 .547(option is supplied, and)3.047 F F2
(mode)144.38 429.6 Q F0 .552
(is omitted, the output is in a form that may be reused as input.)3.232
F .551(The return status is 0 if the)5.551 F(mode w)144 441.6 Q
(mode)144.38 429.6 Q F0 .551
(is omitted, the output is in a form that may be reused as input.)3.231
F .552(The return status is 0 if the)5.552 F(mode w)144 441.6 Q
(as successfully changed or if no)-.1 E F2(mode)2.5 E F0(ar)2.5 E
(gument w)-.18 E(as supplied, and f)-.1 E(alse otherwise.)-.1 E F1
(unalias)108 458.4 Q F0<5bad>2.5 E F1(a)A F0 2.5(][)C F2(name)-2.5 E F0
@@ -2655,40 +2659,40 @@ F1<ad61>4.155 E F0 1.655(is supplied, all alias de\214nitions are)4.155
F(remo)144 482.4 Q -.15(ve)-.15 G 2.5(d. The).15 F(return v)2.5 E
(alue is true unless a supplied)-.25 E F2(name)2.86 E F0
(is not a de\214ned alias.)2.68 E F1(unset)108 499.2 Q F0<5bad>2.5 E F1
(fv)A F0 2.5(][)C F2(name)-2.5 E F0(...])2.5 E -.15(Fo)144 511.2 S 3.107
(re).15 G(ach)-3.107 E F2(name)3.107 E F0 3.107(,r).18 G(emo)-3.107 E
.907 -.15(ve t)-.15 H .607(he corresponding v).15 F .607
(ariable or function.)-.25 F .606(If no options are supplied, or the)
5.607 F F1<ad76>144 523.2 Q F0 .304(option is gi)2.804 F -.15(ve)-.25 G
.304(n, each).15 F F2(name)3.164 E F0 .305(refers to a shell v)2.985 F
2.805(ariable. Read-only)-.25 F -.25(va)2.805 G .305
(riables may not be unset.).25 F(If)5.305 E F1<ad66>144 535.2 Q F0 .46
(is speci\214ed, each)2.96 F F2(name)3.32 E F0 .459
(refers to a shell function, and the function de\214nition is remo)3.14
F -.15(ve)-.15 G 2.959(d. Each).15 F .902(unset v)144 547.2 R .902
(fv)A F0 2.5(][)C F2(name)-2.5 E F0(...])2.5 E -.15(Fo)144 511.2 S 3.106
(re).15 G(ach)-3.106 E F2(name)3.106 E F0 3.106(,r).18 G(emo)-3.106 E
.906 -.15(ve t)-.15 H .606(he corresponding v).15 F .607
(ariable or function.)-.25 F .607(If no options are supplied, or the)
5.607 F F1<ad76>144 523.2 Q F0 .305(option is gi)2.805 F -.15(ve)-.25 G
.305(n, each).15 F F2(name)3.165 E F0 .305(refers to a shell v)2.985 F
2.805(ariable. Read-only)-.25 F -.25(va)2.805 G .304
(riables may not be unset.).25 F(If)5.304 E F1<ad66>144 535.2 Q F0 .459
(is speci\214ed, each)2.959 F F2(name)3.319 E F0 .459
(refers to a shell function, and the function de\214nition is remo)3.139
F -.15(ve)-.15 G 2.96(d. Each).15 F .903(unset v)144 547.2 R .903
(ariable or function is remo)-.25 F -.15(ve)-.15 G 3.402(df).15 G .902
(rom the en)-3.402 F .903(vironment passed to subsequent commands.)-.4 F
(If)5.903 E(an)144 559.2 Q 6.916(yo)-.15 G(f)-6.916 E/F3 9/Times-Bold@0
SF(COMP_W)6.916 E(ORDBREAKS)-.09 E/F4 9/Times-Roman@0 SF(,)A F3(RANDOM)
(rom the en)-3.402 F .902(vironment passed to subsequent commands.)-.4 F
(If)5.902 E(an)144 559.2 Q 6.915(yo)-.15 G(f)-6.915 E/F3 9/Times-Bold@0
SF(COMP_W)6.915 E(ORDBREAKS)-.09 E/F4 9/Times-Roman@0 SF(,)A F3(RANDOM)
6.665 E F4(,)A F3(SECONDS)6.665 E F4(,)A F3(LINENO)6.665 E F4(,)A F3
(HISTCMD)6.665 E F4(,)A F3(FUNCN)6.665 E(AME)-.18 E F4(,)A F3(GR)144
571.2 Q(OUPS)-.27 E F4(,)A F0(or)2.522 E F3(DIRST)2.772 E -.495(AC)-.81
(HISTCMD)6.666 E F4(,)A F3(FUNCN)6.666 E(AME)-.18 E F4(,)A F3(GR)144
571.2 Q(OUPS)-.27 E F4(,)A F0(or)2.523 E F3(DIRST)2.773 E -.495(AC)-.81
G(K).495 E F0 .272(are unset, the)2.522 F 2.772(yl)-.15 G .272
(ose their special properties, e)-2.772 F -.15(ve)-.25 G 2.772(ni).15 G
2.772(ft)-2.772 G(he)-2.772 E 2.773(ya)-.15 G .273(re subsequently)
-2.773 F 2.5(reset. The)144 583.2 R -.15(ex)2.5 G
2.772(ft)-2.772 G(he)-2.772 E 2.772(ya)-.15 G .272(re subsequently)
-2.772 F 2.5(reset. The)144 583.2 R -.15(ex)2.5 G
(it status is true unless a).15 E F2(name)2.86 E F0(is readonly)2.68 E
(.)-.65 E F1(wait)108 600 Q F0([)2.5 E F2 2.5(n.)C(..)-2.5 E F0(])A -.8
(Wa)144 612 S .288
(it for each speci\214ed process and return its termination status.).8 F
(Each)5.288 E F2(n)3.148 E F0 .287(may be a process ID or a)3.028 F .722
(Each)5.288 E F2(n)3.148 E F0 .288(may be a process ID or a)3.028 F .722
(job speci\214cation; if a job spec is gi)144 624 R -.15(ve)-.25 G .722
(n, all processes in that job').15 F 3.222(sp)-.55 G .722(ipeline are w)
-3.222 F .722(aited for)-.1 F 5.722(.I)-.55 G(f)-5.722 E F2(n)3.583 E F0
(is)3.463 E 1.266(not gi)144 636 R -.15(ve)-.25 G 1.266
(n, all currently acti).15 F 1.566 -.15(ve c)-.25 H 1.265
(hild processes are w).15 F 1.265(aited for)-.1 F 3.765(,a)-.4 G 1.265
(nd the return status is zero.)-3.765 F(If)6.265 E F2(n)4.125 E F0 .456
-3.222 F .722(aited for)-.1 F 5.722(.I)-.55 G(f)-5.722 E F2(n)3.582 E F0
(is)3.462 E 1.265(not gi)144 636 R -.15(ve)-.25 G 1.265
(n, all currently acti).15 F 1.565 -.15(ve c)-.25 H 1.265
(hild processes are w).15 F 1.265(aited for)-.1 F 3.765(,a)-.4 G 1.266
(nd the return status is zero.)-3.765 F(If)6.266 E F2(n)4.126 E F0 .457
(speci\214es a non-e)144 648 R .457
(xistent process or job, the return status is 127.)-.15 F .457
(Otherwise, the return status is the)5.457 F -.15(ex)144 660 S
+1 -1
View File
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.19.2
%%CreationDate: Tue Jun 29 14:02:44 2010
%%CreationDate: Wed Jul 21 08:54:50 2010
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%DocumentSuppliedResources: procset grops 1.19 2
+4 -5
View File
@@ -2,10 +2,9 @@
Copyright (C) 1988-2010 Free Software Foundation, Inc.
@end ignore
@set LASTCHANGE Fri Jul 2 17:30:39 EDT 2010
@set LASTCHANGE Wed Jul 21 08:54:40 EDT 2010
@set EDITION 4.1
@set VERSION 4.1
@set UPDATED 2 July 2010
@set EDITION 4.2
@set VERSION 4.2
@set UPDATED 21 July 2010
@set UPDATED-MONTH July 2010