mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-28 07:59:50 +02:00
commit bash-20041122 snapshot
This commit is contained in:
@@ -10600,3 +10600,17 @@ redir.c
|
||||
-----
|
||||
doc/{bash.1,bashref.texi}
|
||||
- correct some minor typos, forwarded from doko@debian.org
|
||||
|
||||
11/22
|
||||
-----
|
||||
doc/bash.1,lib/readline/doc/{readline.3,rluser.texi}
|
||||
- documented detail that yank-last-arg and yank-nth-arg use the history
|
||||
arg expansion code (and, as a result, are subject to restrictions
|
||||
of the history-comment character)
|
||||
|
||||
11/23
|
||||
-----
|
||||
execute_cmd.c
|
||||
- changes so that BASH_COMMAND preserves its value into a DEBUG trap:
|
||||
for commands, arithmetic for command expressions, select commands,
|
||||
case commands, (( commands, [[ commands, simple commands
|
||||
|
||||
@@ -10595,3 +10595,20 @@ redir.c
|
||||
using explicit redirections (e.g., `exec 3>&1'). This keeps file
|
||||
descriptors pointing to pipes from being left open but doesn't
|
||||
change the shell's file descriptor semantics
|
||||
|
||||
11/20
|
||||
-----
|
||||
doc/{bash.1,bashref.texi}
|
||||
- correct some minor typos, forwarded from doko@debian.org
|
||||
|
||||
11/22
|
||||
-----
|
||||
doc/bash.1,lib/readline/doc/{readline.3,rluser.texi}
|
||||
- documented detail that yank-last-arg and yank-nth-arg use the history
|
||||
arg expansion code (and, as a result, are subject to restrictions
|
||||
of the history-comment character)
|
||||
|
||||
11/23
|
||||
-----
|
||||
execute_cmd.c
|
||||
- changes so that BASH_COMMAND preserves its value into a DEBUG trap
|
||||
|
||||
@@ -826,6 +826,7 @@ tests/redir4.sub f
|
||||
tests/redir4.in1 f
|
||||
tests/redir5.sub f
|
||||
tests/redir6.sub f
|
||||
tests/redir7.sub f
|
||||
tests/rhs-exp.tests f
|
||||
tests/rhs-exp.right f
|
||||
tests/rsh.tests f
|
||||
|
||||
@@ -675,6 +675,8 @@ examples/misc/cshtobash f
|
||||
tests/README f
|
||||
tests/alias.tests f
|
||||
tests/alias.right f
|
||||
tests/appendop.tests f
|
||||
tests/appendop.right f
|
||||
tests/arith-for.tests f
|
||||
tests/arith-for.right f
|
||||
tests/arith.tests f
|
||||
@@ -683,6 +685,9 @@ tests/arith1.sub f
|
||||
tests/arith2.sub f
|
||||
tests/array.tests f
|
||||
tests/array.right f
|
||||
tests/array1.sub f
|
||||
tests/array2.sub f
|
||||
tests/array3.sub f
|
||||
tests/array-at-star f
|
||||
tests/array2.right f
|
||||
tests/braces.tests f
|
||||
@@ -781,6 +786,7 @@ tests/new-exp1.sub f
|
||||
tests/new-exp2.sub f
|
||||
tests/new-exp3.sub f
|
||||
tests/new-exp4.sub f
|
||||
tests/new-exp5.sub f
|
||||
tests/new-exp.right f
|
||||
tests/nquote.tests f
|
||||
tests/nquote.right f
|
||||
@@ -827,6 +833,7 @@ tests/rsh.right f
|
||||
tests/run-all f
|
||||
tests/run-minimal f
|
||||
tests/run-alias f
|
||||
tests/run-appendop f
|
||||
tests/run-arith-for f
|
||||
tests/run-arith f
|
||||
tests/run-array f
|
||||
|
||||
+1505
-1476
File diff suppressed because it is too large
Load Diff
+6
-2
@@ -6,12 +6,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet@po.CWRU.Edu
|
||||
.\"
|
||||
.\" Last Change: Sat Nov 20 12:23:43 EST 2004
|
||||
.\" Last Change: Mon Nov 22 11:06:21 EST 2004
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2004 Nov 20" "GNU Bash-3.1-devel"
|
||||
.TH BASH 1 "2004 Nov 22" "GNU Bash-3.1-devel"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -4894,6 +4894,8 @@ With an argument
|
||||
insert the \fIn\fPth word from the previous command (the words
|
||||
in the previous command begin with word 0). A negative argument
|
||||
inserts the \fIn\fPth word from the end of the previous command.
|
||||
Once the argument \fIn\fP is computed, the argument is extracted
|
||||
as if the "!\fIn\fP" history expansion had been specified.
|
||||
.TP
|
||||
.B
|
||||
yank\-last\-arg (M\-.\^, M\-_\^)
|
||||
@@ -4902,6 +4904,8 @@ the previous history entry). With an argument,
|
||||
behave exactly like \fByank\-nth\-arg\fP.
|
||||
Successive calls to \fByank\-last\-arg\fP move back through the history
|
||||
list, inserting the last argument of each line in turn.
|
||||
The history expansion facilities are used to extract the last argument,
|
||||
as if the "!$" history expansion had been specified.
|
||||
.TP
|
||||
.B shell\-expand\-line (M\-C\-e)
|
||||
Expand the line as the shell does. This
|
||||
|
||||
+52
-19
@@ -2,7 +2,7 @@
|
||||
<TITLE>BASH(1) Manual Page</TITLE>
|
||||
</HEAD>
|
||||
<BODY><TABLE WIDTH=100%>
|
||||
<TH ALIGN=LEFT>BASH(1)<TH ALIGN=CENTER>2004 Sep 17<TH ALIGN=RIGHT>BASH(1)
|
||||
<TH ALIGN=LEFT>BASH(1)<TH ALIGN=CENTER>2004 Nov 22<TH ALIGN=RIGHT>BASH(1)
|
||||
</TABLE>
|
||||
<BR><A HREF="#index">Index</A>
|
||||
<HR>
|
||||
@@ -131,7 +131,7 @@ when invoking an interactive shell.
|
||||
|
||||
<DD>
|
||||
A list of all double-quoted strings preceded by <B>$</B>
|
||||
is printed on the standard ouput.
|
||||
is printed on the standard output.
|
||||
These are the strings that
|
||||
are subject to language translation when the current locale
|
||||
is not <B>C</B> or <B>POSIX</B>.
|
||||
@@ -1230,7 +1230,7 @@ below).
|
||||
|
||||
Words of the form <B>$</B>'<I>string</I>' are treated specially. The
|
||||
word expands to <I>string</I>, with backslash-escaped characters replaced
|
||||
as specifed by the ANSI C standard. Backslash escape sequences, if
|
||||
as specified by the ANSI C standard. Backslash escape sequences, if
|
||||
present, are decoded as follows:
|
||||
<DL COMPACT><DT><DD>
|
||||
|
||||
@@ -1403,6 +1403,22 @@ and
|
||||
<B>local</B>
|
||||
|
||||
builtin commands.
|
||||
<P>
|
||||
|
||||
In the context where an assignment statement is assigning a value
|
||||
to a shell variable or array index, the += operator can be used to
|
||||
append to or add to the variable's previous value.
|
||||
When += is applied to a variable for which the integer attribute has been
|
||||
set, <I>value</I> is evaluated as an arithmetic expression and added to the
|
||||
variable's current value, which is also evaluated.
|
||||
When += is applied to an array variable using compound assignment (see
|
||||
<B>Arrays</B>
|
||||
|
||||
below), the
|
||||
variable's value is not unset (as it is when using =), and new values are
|
||||
appended to the array beginning at one greater than the array's maximum index.
|
||||
When applied to a string-valued variable, <I>value</I> is expanded and
|
||||
appended to the variable's value.
|
||||
<A NAME="lbAT"> </A>
|
||||
<H3>Positional Parameters</H3>
|
||||
|
||||
@@ -2534,10 +2550,7 @@ job identifier (see
|
||||
</FONT>
|
||||
below). If set to any other value, the supplied string must
|
||||
be a prefix of a stopped job's name; this provides functionality
|
||||
analogous to the
|
||||
<B>%</B>
|
||||
|
||||
job identifier.
|
||||
analogous to the <B>%</B><I>string</I> job identifier.
|
||||
<DT><B>histchars</B>
|
||||
|
||||
<DD>
|
||||
@@ -2893,7 +2906,7 @@ Each variable assignment is checked for unquoted tilde-prefixes immediately
|
||||
following a
|
||||
<B>:</B>
|
||||
|
||||
or
|
||||
or the first
|
||||
<B>=</B>.
|
||||
|
||||
In these cases, tilde expansion is also performed.
|
||||
@@ -2924,7 +2937,7 @@ interpreted as part of the name.
|
||||
|
||||
When braces are used, the matching ending brace is the first `<B>}</B>'
|
||||
not escaped by a backslash or within a quoted string, and not within an
|
||||
embedded arithmetic expansion, command substitution, or paramter
|
||||
embedded arithmetic expansion, command substitution, or parameter
|
||||
expansion.
|
||||
<P>
|
||||
|
||||
@@ -3037,6 +3050,10 @@ parameters beginning at <I>offset</I>.
|
||||
If <I>parameter</I> is an array name indexed by @ or *,
|
||||
the result is the <I>length</I>
|
||||
members of the array beginning with ${<I>parameter</I>[<I>offset</I>]}.
|
||||
A negative <I>offset</I> is taken relative to one greater than the maximum
|
||||
index of the specified array.
|
||||
Note that a negative offset must be separated from the colon by at least
|
||||
one space to avoid being confused with the :- expansion.
|
||||
Substring indexing is zero-based unless the positional parameters
|
||||
are used, in which case the indexing starts at 1.
|
||||
<DT>${<B>!</B><I>prefix</I><B>*</B>}<DD>
|
||||
@@ -3668,7 +3685,7 @@ Matches zero or more occurrences of the given patterns
|
||||
<DT><B>+(</B><I>pattern-list</I><B>)</B><DD>
|
||||
Matches one or more occurrences of the given patterns
|
||||
<DT><B>@(</B><I>pattern-list</I><B>)</B><DD>
|
||||
Matches exactly one of the given patterns
|
||||
Matches one of the given patterns
|
||||
<DT><B>!(</B><I>pattern-list</I><B>)</B><DD>
|
||||
Matches anything except one of the given patterns
|
||||
</DL></DL>
|
||||
@@ -3801,6 +3818,11 @@ a UDP connection to the corresponding socket.
|
||||
<P>
|
||||
|
||||
A failure to open or create a file causes the redirection to fail.
|
||||
<P>
|
||||
|
||||
Redirections using file descriptors greater than 9 should be used with
|
||||
care, as they may conflict with file descriptors the shell uses
|
||||
internally.
|
||||
<A NAME="lbBI"> </A>
|
||||
<H3>Redirecting Input</H3>
|
||||
|
||||
@@ -4485,7 +4507,7 @@ If <I>base#</I> is omitted, then base 10 is used.
|
||||
The digits greater than 9 are represented by the lowercase letters,
|
||||
the uppercase letters, @, and _, in that order.
|
||||
If <I>base</I> is less than or equal to 36, lowercase and uppercase
|
||||
letters may be used interchangably to represent numbers between 10
|
||||
letters may be used interchangeably to represent numbers between 10
|
||||
and 35.
|
||||
<P>
|
||||
|
||||
@@ -5275,6 +5297,8 @@ command), the current job is always flagged with a
|
||||
and the previous job with a
|
||||
<B>-</B>.
|
||||
|
||||
A single % (with no accompanying job specification) also refers to the
|
||||
current job.
|
||||
<P>
|
||||
|
||||
Simply naming a job can be used to bring it into the
|
||||
@@ -5886,6 +5910,12 @@ Controls what happens when readline wants to ring the terminal bell.
|
||||
If set to <B>none</B>, readline never rings the bell. If set to
|
||||
<B>visible</B>, readline uses a visible bell if one is available.
|
||||
If set to <B>audible</B>, readline attempts to ring the terminal's bell.
|
||||
<DT><B>bind-tty-special-chars (On)</B>
|
||||
|
||||
<DD>
|
||||
If set to <B>On</B>, readline attempts to bind the control characters
|
||||
treated specially by the kernel's terminal driver to their readline
|
||||
equivalents.
|
||||
<DT><B>comment-begin (``#'')</B>
|
||||
|
||||
<DD>
|
||||
@@ -5957,7 +5987,7 @@ attempts word completion.
|
||||
|
||||
<DD>
|
||||
If set to <B>on</B>, the history code attempts to place point at the
|
||||
same location on each history line retrived with <B>previous-history</B>
|
||||
same location on each history line retrieved with <B>previous-history</B>
|
||||
or <B>next-history</B>.
|
||||
<DT><B>horizontal-scroll-mode (Off)</B>
|
||||
|
||||
@@ -6338,6 +6368,8 @@ With an argument
|
||||
insert the <I>n</I>th word from the previous command (the words
|
||||
in the previous command begin with word 0). A negative argument
|
||||
inserts the <I>n</I>th word from the end of the previous command.
|
||||
Once the argument <I>n</I> is computed, the argument is extracted
|
||||
as if the "!<I>n</I>" history expansion had been specified.
|
||||
<DT><B>yank-last-arg (M-., M-_)</B>
|
||||
|
||||
<DD>
|
||||
@@ -6346,6 +6378,8 @@ the previous history entry). With an argument,
|
||||
behave exactly like <B>yank-nth-arg</B>.
|
||||
Successive calls to <B>yank-last-arg</B> move back through the history
|
||||
list, inserting the last argument of each line in turn.
|
||||
The history expansion facilities are used to extract the last argument,
|
||||
as if the "!$" history expansion had been specified.
|
||||
<DT><B>shell-expand-line (M-C-e)</B>
|
||||
|
||||
<DD>
|
||||
@@ -6882,7 +6916,7 @@ of an <I>inputrc</I> file.
|
||||
|
||||
<DD>
|
||||
Print all of the readline key sequences bound to macros and the
|
||||
strings they ouput. If a numeric argument is supplied,
|
||||
strings they output. If a numeric argument is supplied,
|
||||
the output is formatted in such a way that it can be made part
|
||||
of an <I>inputrc</I> file.
|
||||
<DT><B>display-shell-version (C-x C-v)</B>
|
||||
@@ -10940,8 +10974,7 @@ Read-only variables may not be unset.
|
||||
If
|
||||
<B>-f</B>
|
||||
|
||||
is specifed,
|
||||
each
|
||||
is specified, each
|
||||
<I>name</I>
|
||||
|
||||
refers to a shell function, and the function definition
|
||||
@@ -10976,9 +11009,9 @@ subsequently reset. The exit status is true unless a
|
||||
<I>name</I>
|
||||
|
||||
is readonly.
|
||||
<DT><B>wait</B> [<I>n</I>]<DD>
|
||||
Wait for the specified process and return its termination
|
||||
status.
|
||||
<DT><B>wait</B> [<I>n ...</I>]<DD>
|
||||
Wait for each specified process and return its termination status.
|
||||
Each
|
||||
<I>n</I>
|
||||
|
||||
may be a process
|
||||
@@ -11373,6 +11406,6 @@ Array variables may not (yet) be exported.
|
||||
</DL>
|
||||
<HR>
|
||||
This document was created by man2html from bash.1.<BR>
|
||||
Time: 21 September 2004 11:57:09 EDT
|
||||
Time: 22 November 2004 12:04:08 EST
|
||||
</BODY>
|
||||
</HTML>
|
||||
|
||||
Binary file not shown.
+5037
-4920
File diff suppressed because it is too large
Load Diff
+5
-5
@@ -86,7 +86,7 @@
|
||||
@xrdef{Tilde Expansion-pg}{18}
|
||||
@xrdef{Tilde Expansion-snt}{Section@tie 3.5.2}
|
||||
@xrdef{Shell Parameter Expansion-title}{Shell Parameter Expansion}
|
||||
@xrdef{Shell Parameter Expansion-pg}{18}
|
||||
@xrdef{Shell Parameter Expansion-pg}{19}
|
||||
@xrdef{Shell Parameter Expansion-snt}{Section@tie 3.5.3}
|
||||
@xrdef{Command Substitution-title}{Command Substitution}
|
||||
@xrdef{Command Substitution-pg}{21}
|
||||
@@ -101,7 +101,7 @@
|
||||
@xrdef{Word Splitting-pg}{22}
|
||||
@xrdef{Word Splitting-snt}{Section@tie 3.5.7}
|
||||
@xrdef{Filename Expansion-title}{Filename Expansion}
|
||||
@xrdef{Filename Expansion-pg}{22}
|
||||
@xrdef{Filename Expansion-pg}{23}
|
||||
@xrdef{Filename Expansion-snt}{Section@tie 3.5.8}
|
||||
@xrdef{Pattern Matching-title}{Pattern Matching}
|
||||
@xrdef{Pattern Matching-pg}{23}
|
||||
@@ -119,7 +119,7 @@
|
||||
@xrdef{Simple Command Expansion-pg}{28}
|
||||
@xrdef{Simple Command Expansion-snt}{Section@tie 3.7.1}
|
||||
@xrdef{Command Search and Execution-title}{Command Search and Execution}
|
||||
@xrdef{Command Search and Execution-pg}{28}
|
||||
@xrdef{Command Search and Execution-pg}{29}
|
||||
@xrdef{Command Search and Execution-snt}{Section@tie 3.7.2}
|
||||
@xrdef{Command Execution Environment-title}{Command Execution Environment}
|
||||
@xrdef{Command Execution Environment-pg}{29}
|
||||
@@ -128,13 +128,13 @@
|
||||
@xrdef{Environment-pg}{30}
|
||||
@xrdef{Environment-snt}{Section@tie 3.7.4}
|
||||
@xrdef{Exit Status-title}{Exit Status}
|
||||
@xrdef{Exit Status-pg}{30}
|
||||
@xrdef{Exit Status-pg}{31}
|
||||
@xrdef{Exit Status-snt}{Section@tie 3.7.5}
|
||||
@xrdef{Signals-title}{Signals}
|
||||
@xrdef{Signals-pg}{31}
|
||||
@xrdef{Signals-snt}{Section@tie 3.7.6}
|
||||
@xrdef{Shell Scripts-title}{Shell Scripts}
|
||||
@xrdef{Shell Scripts-pg}{31}
|
||||
@xrdef{Shell Scripts-pg}{32}
|
||||
@xrdef{Shell Scripts-snt}{Section@tie 3.8}
|
||||
@xrdef{Shell Builtin Commands-title}{Shell Builtin Commands}
|
||||
@xrdef{Shell Builtin Commands-pg}{33}
|
||||
|
||||
+10
-10
@@ -48,28 +48,28 @@
|
||||
\entry{expansion, brace}{17}{expansion, brace}
|
||||
\entry{tilde expansion}{18}{tilde expansion}
|
||||
\entry{expansion, tilde}{18}{expansion, tilde}
|
||||
\entry{parameter expansion}{18}{parameter expansion}
|
||||
\entry{expansion, parameter}{18}{expansion, parameter}
|
||||
\entry{parameter expansion}{19}{parameter expansion}
|
||||
\entry{expansion, parameter}{19}{expansion, parameter}
|
||||
\entry{command substitution}{21}{command substitution}
|
||||
\entry{expansion, arithmetic}{21}{expansion, arithmetic}
|
||||
\entry{arithmetic expansion}{21}{arithmetic expansion}
|
||||
\entry{process substitution}{22}{process substitution}
|
||||
\entry{word splitting}{22}{word splitting}
|
||||
\entry{expansion, filename}{22}{expansion, filename}
|
||||
\entry{expansion, pathname}{22}{expansion, pathname}
|
||||
\entry{filename expansion}{22}{filename expansion}
|
||||
\entry{pathname expansion}{22}{pathname expansion}
|
||||
\entry{expansion, filename}{23}{expansion, filename}
|
||||
\entry{expansion, pathname}{23}{expansion, pathname}
|
||||
\entry{filename expansion}{23}{filename expansion}
|
||||
\entry{pathname expansion}{23}{pathname expansion}
|
||||
\entry{pattern matching}{23}{pattern matching}
|
||||
\entry{matching, pattern}{23}{matching, pattern}
|
||||
\entry{redirection}{24}{redirection}
|
||||
\entry{command expansion}{28}{command expansion}
|
||||
\entry{command execution}{28}{command execution}
|
||||
\entry{command search}{28}{command search}
|
||||
\entry{command execution}{29}{command execution}
|
||||
\entry{command search}{29}{command search}
|
||||
\entry{execution environment}{29}{execution environment}
|
||||
\entry{environment}{30}{environment}
|
||||
\entry{exit status}{30}{exit status}
|
||||
\entry{exit status}{31}{exit status}
|
||||
\entry{signal handling}{31}{signal handling}
|
||||
\entry{shell script}{31}{shell script}
|
||||
\entry{shell script}{32}{shell script}
|
||||
\entry{special builtin}{53}{special builtin}
|
||||
\entry{login shell}{65}{login shell}
|
||||
\entry{interactive shell}{65}{interactive shell}
|
||||
|
||||
+10
-10
@@ -13,10 +13,10 @@
|
||||
\entry {builtin}{3}
|
||||
\initial {C}
|
||||
\entry {command editing}{85}
|
||||
\entry {command execution}{28}
|
||||
\entry {command execution}{29}
|
||||
\entry {command expansion}{28}
|
||||
\entry {command history}{111}
|
||||
\entry {command search}{28}
|
||||
\entry {command search}{29}
|
||||
\entry {command substitution}{21}
|
||||
\entry {command timing}{8}
|
||||
\entry {commands, compound}{9}
|
||||
@@ -39,13 +39,13 @@
|
||||
\entry {evaluation, arithmetic}{70}
|
||||
\entry {event designators}{113}
|
||||
\entry {execution environment}{29}
|
||||
\entry {exit status}{3, 30}
|
||||
\entry {exit status}{3, 31}
|
||||
\entry {expansion}{16}
|
||||
\entry {expansion, arithmetic}{21}
|
||||
\entry {expansion, brace}{17}
|
||||
\entry {expansion, filename}{22}
|
||||
\entry {expansion, parameter}{18}
|
||||
\entry {expansion, pathname}{22}
|
||||
\entry {expansion, filename}{23}
|
||||
\entry {expansion, parameter}{19}
|
||||
\entry {expansion, pathname}{23}
|
||||
\entry {expansion, tilde}{18}
|
||||
\entry {expressions, arithmetic}{70}
|
||||
\entry {expressions, conditional}{69}
|
||||
@@ -53,7 +53,7 @@
|
||||
\entry {FDL, GNU Free Documentation License}{133}
|
||||
\entry {field}{3}
|
||||
\entry {filename}{3}
|
||||
\entry {filename expansion}{22}
|
||||
\entry {filename expansion}{23}
|
||||
\entry {foreground}{81}
|
||||
\entry {functions, shell}{13}
|
||||
\initial {H}
|
||||
@@ -88,11 +88,11 @@
|
||||
\initial {O}
|
||||
\entry {operator, shell}{3}
|
||||
\initial {P}
|
||||
\entry {parameter expansion}{18}
|
||||
\entry {parameter expansion}{19}
|
||||
\entry {parameters}{15}
|
||||
\entry {parameters, positional}{15}
|
||||
\entry {parameters, special}{15}
|
||||
\entry {pathname expansion}{22}
|
||||
\entry {pathname expansion}{23}
|
||||
\entry {pattern matching}{23}
|
||||
\entry {pipeline}{8}
|
||||
\entry {POSIX}{3}
|
||||
@@ -114,7 +114,7 @@
|
||||
\initial {S}
|
||||
\entry {shell arithmetic}{70}
|
||||
\entry {shell function}{13}
|
||||
\entry {shell script}{31}
|
||||
\entry {shell script}{32}
|
||||
\entry {shell variable}{15}
|
||||
\entry {shell, interactive}{67}
|
||||
\entry {signal}{4}
|
||||
|
||||
Binary file not shown.
+402
-364
File diff suppressed because it is too large
Load Diff
+204
-174
@@ -1,11 +1,11 @@
|
||||
This is bashref.info, produced by makeinfo version 4.7 from
|
||||
/usr/homes/chet/src/bash/src/doc/bashref.texi.
|
||||
/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 3.0, 17 September 2004).
|
||||
the Bash shell (version 3.1-devel, 22 November 2004).
|
||||
|
||||
This is Edition 3.0, last updated 17 September 2004, of `The GNU
|
||||
Bash Reference Manual', for `Bash', Version 3.0.
|
||||
This is Edition 3.1-devel, last updated 22 November 2004, of `The
|
||||
GNU Bash Reference Manual', for `Bash', Version 3.1-devel.
|
||||
|
||||
Copyright (C) 1988-2004 Free Software Foundation, Inc.
|
||||
|
||||
@@ -37,10 +37,10 @@ Bash Features
|
||||
*************
|
||||
|
||||
This text is a brief description of the features that are present in
|
||||
the Bash shell (version 3.0, 17 September 2004)..
|
||||
the Bash shell (version 3.1-devel, 22 November 2004)..
|
||||
|
||||
This is Edition 3.0, last updated 17 September 2004, of `The GNU
|
||||
Bash Reference Manual', for `Bash', Version 3.0.
|
||||
This is Edition 3.1-devel, last updated 22 November 2004, of `The
|
||||
GNU Bash Reference Manual', for `Bash', Version 3.1-devel.
|
||||
|
||||
Bash contains features that appear in other popular shells, and some
|
||||
features that only appear in Bash. Some of the shells that Bash has
|
||||
@@ -1046,6 +1046,18 @@ expansion is not performed. Assignment statements may also appear as
|
||||
arguments to the `alias', `declare', `typeset', `export', `readonly',
|
||||
and `local' builtin commands.
|
||||
|
||||
In the context where an assignment statement is assigning a value to
|
||||
a shell variable or array index (*note Arrays::), the `+=' operator can
|
||||
be used to append to or add to the variable's previous value. When
|
||||
`+=' is applied to a variable for which the integer attribute has been
|
||||
set, VALUE is evaluated as an arithmetic expression and added to the
|
||||
variable's current value, which is also evaluated. When `+=' is
|
||||
applied to an array variable using compound assignment (*note
|
||||
Arrays::), the variable's value is not unset (as it is when using `='),
|
||||
and new values are appended to the array beginning at one greater than
|
||||
the array's maximum index. When applied to a string-valued variable,
|
||||
VALUE is expanded and appended to the variable's value.
|
||||
|
||||
|
||||
File: bashref.info, Node: Positional Parameters, Next: Special Parameters, Up: Shell Parameters
|
||||
|
||||
@@ -1271,10 +1283,10 @@ without a leading `+' or `-', `+' is assumed.
|
||||
is left unchanged.
|
||||
|
||||
Each variable assignment is checked for unquoted tilde-prefixes
|
||||
immediately following a `:' or `='. In these cases, tilde expansion is
|
||||
also performed. Consequently, one may use file names with tildes in
|
||||
assignments to `PATH', `MAILPATH', and `CDPATH', and the shell assigns
|
||||
the expanded value.
|
||||
immediately following a `:' or the first `='. In these cases, tilde
|
||||
expansion is also performed. Consequently, one may use file names with
|
||||
tildes in assignments to `PATH', `MAILPATH', and `CDPATH', and the
|
||||
shell assigns the expanded value.
|
||||
|
||||
The following table shows how Bash treats unquoted tilde-prefixes:
|
||||
|
||||
@@ -1379,9 +1391,12 @@ if the colon is omitted, the operator tests only for existence.
|
||||
is `@', the result is LENGTH positional parameters beginning at
|
||||
OFFSET. If PARAMETER is an array name indexed by `@' or `*', the
|
||||
result is the LENGTH members of the array beginning with
|
||||
`${PARAMETER[OFFSET]}'. Substring indexing is zero-based unless
|
||||
the positional parameters are used, in which case the indexing
|
||||
starts at 1.
|
||||
`${PARAMETER[OFFSET]}'. A negative OFFSET is taken relative to
|
||||
one greater than the maximum index of the specified array. Note
|
||||
that a negative offset must be separated from the colon by at least
|
||||
one space to avoid being confused with the `:-' expansion.
|
||||
Substring indexing is zero-based unless the positional parameters
|
||||
are used, in which case the indexing starts at 1.
|
||||
|
||||
`${!PREFIX*}'
|
||||
`${!PREFIX@}'
|
||||
@@ -1675,7 +1690,7 @@ of the following sub-patterns:
|
||||
Matches one or more occurrences of the given patterns.
|
||||
|
||||
`@(PATTERN-LIST)'
|
||||
Matches exactly one of the given patterns.
|
||||
Matches one of the given patterns.
|
||||
|
||||
`!(PATTERN-LIST)'
|
||||
Matches anything except one of the given patterns.
|
||||
@@ -1753,6 +1768,10 @@ redirections, as described in the following table:
|
||||
|
||||
A failure to open or create a file causes the redirection to fail.
|
||||
|
||||
Redirections using file descriptors greater than 9 should be used
|
||||
with care, as they may conflict with file descriptors the shell uses
|
||||
internally.
|
||||
|
||||
3.6.1 Redirecting Input
|
||||
-----------------------
|
||||
|
||||
@@ -4199,7 +4218,7 @@ the single-character options to be recognized.
|
||||
|
||||
`--dump-po-strings'
|
||||
A list of all double-quoted strings preceded by `$' is printed on
|
||||
the standard ouput in the GNU `gettext' PO (portable object) file
|
||||
the standard output in the GNU `gettext' PO (portable object) file
|
||||
format. Equivalent to `-D' except for the output format.
|
||||
|
||||
`--dump-strings'
|
||||
@@ -4280,7 +4299,7 @@ invocation which are not available with the `set' builtin.
|
||||
|
||||
`-D'
|
||||
A list of all double-quoted strings preceded by `$' is printed on
|
||||
the standard ouput. These are the strings that are subject to
|
||||
the standard output. These are the strings that are subject to
|
||||
language translation when the current locale is not `C' or `POSIX'
|
||||
(*note Locale Translation::). This implies the `-n' option; no
|
||||
commands will be executed.
|
||||
@@ -4783,7 +4802,7 @@ representing the arithmetic base, and N is a number in that base. If
|
||||
BASE`#' is omitted, then base 10 is used. The digits greater than 9
|
||||
are represented by the lowercase letters, the uppercase letters, `@',
|
||||
and `_', in that order. If BASE is less than or equal to 36, lowercase
|
||||
and uppercase letters may be used interchangably to represent numbers
|
||||
and uppercase letters may be used interchangeably to represent numbers
|
||||
between 10 and 35.
|
||||
|
||||
Operators are evaluated in order of precedence. Sub-expressions in
|
||||
@@ -5414,9 +5433,10 @@ character `%' introduces a job name.
|
||||
|
||||
Job number `n' may be referred to as `%n'. The symbols `%%' and
|
||||
`%+' refer to the shell's notion of the current job, which is the last
|
||||
job stopped while it was in the foreground or started in the
|
||||
background. The previous job may be referenced using `%-'. In output
|
||||
pertaining to jobs (e.g., the output of the `jobs' command), the
|
||||
job stopped while it was in the foreground or started in the background.
|
||||
A single `%' (with no accompanying job specification) also refers to
|
||||
the current job. The previous job may be referenced using `%-'. In
|
||||
output pertaining to jobs (e.g., the output of the `jobs' command), the
|
||||
current job is always flagged with a `+', and the previous job with a
|
||||
`-'.
|
||||
|
||||
@@ -5518,11 +5538,11 @@ File: bashref.info, Node: Job Control Builtins, Next: Job Control Variables,
|
||||
occurs or an invalid option is encountered.
|
||||
|
||||
`wait'
|
||||
wait [JOBSPEC or PID]
|
||||
Wait until the child process specified by process ID PID or job
|
||||
specification JOBSPEC exits and return the exit status of the last
|
||||
command waited for. If a job spec is given, all processes in the
|
||||
job are waited for. If no arguments are given, all currently
|
||||
wait [JOBSPEC or PID ...]
|
||||
Wait until the child process specified by each process ID PID or
|
||||
job specification JOBSPEC exits and return the exit status of the
|
||||
last command waited for. If a job spec is given, all processes in
|
||||
the job are waited for. If no arguments are given, all currently
|
||||
active child processes are waited for, and the return status is
|
||||
zero. If neither JOBSPEC nor PID specifies an active child process
|
||||
of the shell, the return status is 127.
|
||||
@@ -5921,6 +5941,11 @@ Variable Settings
|
||||
one is available. If set to `audible' (the default),
|
||||
Readline attempts to ring the terminal's bell.
|
||||
|
||||
`bind-tty-special-chars'
|
||||
If set to `on', Readline attempts to bind the control
|
||||
characters treated specially by the kernel's terminal driver
|
||||
to their Readline equivalents.
|
||||
|
||||
`comment-begin'
|
||||
The string to insert at the beginning of the line when the
|
||||
`insert-comment' command is executed. The default value is
|
||||
@@ -6471,14 +6496,17 @@ File: bashref.info, Node: Commands For History, Next: Commands For Text, Prev
|
||||
second word on the previous line) at point. With an argument N,
|
||||
insert the Nth word from the previous command (the words in the
|
||||
previous command begin with word 0). A negative argument inserts
|
||||
the Nth word from the end of the previous command.
|
||||
the Nth word from the end of the previous command. Once the
|
||||
argument N is computed, the argument is extracted as if the `!N'
|
||||
history expansion had been specified.
|
||||
|
||||
`yank-last-arg (M-. or M-_)'
|
||||
Insert last argument to the previous command (the last word of the
|
||||
previous history entry). With an argument, behave exactly like
|
||||
`yank-nth-arg'. Successive calls to `yank-last-arg' move back
|
||||
through the history list, inserting the last argument of each line
|
||||
in turn.
|
||||
in turn. The history expansion facilities are used to extract the
|
||||
last argument, as if the `!$' history expansion had been specified.
|
||||
|
||||
|
||||
|
||||
@@ -9022,32 +9050,34 @@ Parameter and Variable Index
|
||||
* BASH_VERSION: Bash Variables. (line 93)
|
||||
* bell-style: Readline Init File Syntax.
|
||||
(line 34)
|
||||
* bind-tty-special-chars: Readline Init File Syntax.
|
||||
(line 41)
|
||||
* CDPATH: Bourne Shell Variables.
|
||||
(line 9)
|
||||
* COLUMNS: Bash Variables. (line 96)
|
||||
* comment-begin: Readline Init File Syntax.
|
||||
(line 41)
|
||||
(line 46)
|
||||
* COMP_CWORD: Bash Variables. (line 101)
|
||||
* COMP_LINE: Bash Variables. (line 107)
|
||||
* COMP_POINT: Bash Variables. (line 112)
|
||||
* COMP_WORDBREAKS: Bash Variables. (line 120)
|
||||
* COMP_WORDS: Bash Variables. (line 126)
|
||||
* completion-query-items: Readline Init File Syntax.
|
||||
(line 51)
|
||||
(line 56)
|
||||
* COMPREPLY: Bash Variables. (line 132)
|
||||
* convert-meta: Readline Init File Syntax.
|
||||
(line 60)
|
||||
(line 65)
|
||||
* DIRSTACK: Bash Variables. (line 137)
|
||||
* disable-completion: Readline Init File Syntax.
|
||||
(line 66)
|
||||
* editing-mode: Readline Init File Syntax.
|
||||
(line 71)
|
||||
* editing-mode: Readline Init File Syntax.
|
||||
(line 76)
|
||||
* EMACS: Bash Variables. (line 147)
|
||||
* enable-keypad: Readline Init File Syntax.
|
||||
(line 77)
|
||||
(line 82)
|
||||
* EUID: Bash Variables. (line 152)
|
||||
* expand-tilde: Readline Init File Syntax.
|
||||
(line 82)
|
||||
(line 87)
|
||||
* FCEDIT: Bash Variables. (line 156)
|
||||
* FIGNORE: Bash Variables. (line 160)
|
||||
* FUNCNAME: Bash Variables. (line 166)
|
||||
@@ -9060,13 +9090,13 @@ Parameter and Variable Index
|
||||
* HISTFILESIZE: Bash Variables. (line 227)
|
||||
* HISTIGNORE: Bash Variables. (line 234)
|
||||
* history-preserve-point: Readline Init File Syntax.
|
||||
(line 85)
|
||||
(line 90)
|
||||
* HISTSIZE: Bash Variables. (line 253)
|
||||
* HISTTIMEFORMAT: Bash Variables. (line 257)
|
||||
* HOME: Bourne Shell Variables.
|
||||
(line 13)
|
||||
* horizontal-scroll-mode: Readline Init File Syntax.
|
||||
(line 90)
|
||||
(line 95)
|
||||
* HOSTFILE: Bash Variables. (line 264)
|
||||
* HOSTNAME: Bash Variables. (line 275)
|
||||
* HOSTTYPE: Bash Variables. (line 278)
|
||||
@@ -9074,12 +9104,12 @@ Parameter and Variable Index
|
||||
(line 18)
|
||||
* IGNOREEOF: Bash Variables. (line 281)
|
||||
* input-meta: Readline Init File Syntax.
|
||||
(line 97)
|
||||
(line 102)
|
||||
* INPUTRC: Bash Variables. (line 291)
|
||||
* isearch-terminators: Readline Init File Syntax.
|
||||
(line 104)
|
||||
(line 109)
|
||||
* keymap: Readline Init File Syntax.
|
||||
(line 111)
|
||||
(line 116)
|
||||
* LANG: Bash Variables. (line 295)
|
||||
* LC_ALL: Bash Variables. (line 299)
|
||||
* LC_COLLATE: Bash Variables. (line 303)
|
||||
@@ -9096,13 +9126,13 @@ Parameter and Variable Index
|
||||
* MAILPATH: Bourne Shell Variables.
|
||||
(line 27)
|
||||
* mark-modified-lines: Readline Init File Syntax.
|
||||
(line 124)
|
||||
* mark-symlinked-directories: Readline Init File Syntax.
|
||||
(line 129)
|
||||
* match-hidden-files: Readline Init File Syntax.
|
||||
* mark-symlinked-directories: Readline Init File Syntax.
|
||||
(line 134)
|
||||
* match-hidden-files: Readline Init File Syntax.
|
||||
(line 139)
|
||||
* meta-flag: Readline Init File Syntax.
|
||||
(line 97)
|
||||
(line 102)
|
||||
* OLDPWD: Bash Variables. (line 344)
|
||||
* OPTARG: Bourne Shell Variables.
|
||||
(line 34)
|
||||
@@ -9111,9 +9141,9 @@ Parameter and Variable Index
|
||||
(line 38)
|
||||
* OSTYPE: Bash Variables. (line 351)
|
||||
* output-meta: Readline Init File Syntax.
|
||||
(line 141)
|
||||
* page-completions: Readline Init File Syntax.
|
||||
(line 146)
|
||||
* page-completions: Readline Init File Syntax.
|
||||
(line 151)
|
||||
* PATH: Bourne Shell Variables.
|
||||
(line 42)
|
||||
* PIPESTATUS: Bash Variables. (line 354)
|
||||
@@ -9134,16 +9164,16 @@ Parameter and Variable Index
|
||||
* SHELLOPTS: Bash Variables. (line 409)
|
||||
* SHLVL: Bash Variables. (line 418)
|
||||
* show-all-if-ambiguous: Readline Init File Syntax.
|
||||
(line 156)
|
||||
(line 161)
|
||||
* show-all-if-unmodified: Readline Init File Syntax.
|
||||
(line 162)
|
||||
(line 167)
|
||||
* TEXTDOMAIN: Locale Translation. (line 11)
|
||||
* TEXTDOMAINDIR: Locale Translation. (line 11)
|
||||
* TIMEFORMAT: Bash Variables. (line 423)
|
||||
* TMOUT: Bash Variables. (line 461)
|
||||
* UID: Bash Variables. (line 473)
|
||||
* visible-stats: Readline Init File Syntax.
|
||||
(line 171)
|
||||
(line 176)
|
||||
|
||||
|
||||
File: bashref.info, Node: Function Index, Next: Concept Index, Prev: Variable Index, Up: Top
|
||||
@@ -9243,7 +9273,7 @@ Function Index
|
||||
* unix-word-rubout (C-w): Commands For Killing. (line 28)
|
||||
* upcase-word (M-u): Commands For Text. (line 38)
|
||||
* yank (C-y): Commands For Killing. (line 59)
|
||||
* yank-last-arg (M-. or M-_): Commands For History. (line 63)
|
||||
* yank-last-arg (M-. or M-_): Commands For History. (line 65)
|
||||
* yank-nth-arg (M-C-y): Commands For History. (line 56)
|
||||
* yank-pop (M-y): Commands For Killing. (line 62)
|
||||
|
||||
@@ -9409,129 +9439,129 @@ Concept Index
|
||||
|
||||
|
||||
Tag Table:
|
||||
Node: Top1363
|
||||
Node: Introduction3509
|
||||
Node: What is Bash?3738
|
||||
Node: What is a shell?4831
|
||||
Node: Definitions7372
|
||||
Node: Basic Shell Features10113
|
||||
Node: Shell Syntax11332
|
||||
Node: Shell Operation12364
|
||||
Node: Quoting13658
|
||||
Node: Escape Character14932
|
||||
Node: Single Quotes15417
|
||||
Node: Double Quotes15765
|
||||
Node: ANSI-C Quoting16791
|
||||
Node: Locale Translation17747
|
||||
Node: Comments18643
|
||||
Node: Shell Commands19257
|
||||
Node: Simple Commands20023
|
||||
Node: Pipelines20654
|
||||
Node: Lists22529
|
||||
Node: Compound Commands24160
|
||||
Node: Looping Constructs24944
|
||||
Node: Conditional Constructs27391
|
||||
Node: Command Grouping34458
|
||||
Node: Shell Functions35907
|
||||
Node: Shell Parameters40175
|
||||
Node: Positional Parameters41756
|
||||
Node: Special Parameters42656
|
||||
Node: Shell Expansions45581
|
||||
Node: Brace Expansion47506
|
||||
Node: Tilde Expansion49831
|
||||
Node: Shell Parameter Expansion52172
|
||||
Node: Command Substitution59435
|
||||
Node: Arithmetic Expansion60768
|
||||
Node: Process Substitution61618
|
||||
Node: Word Splitting62668
|
||||
Node: Filename Expansion64129
|
||||
Node: Pattern Matching66265
|
||||
Node: Quote Removal69598
|
||||
Node: Redirections69893
|
||||
Node: Executing Commands77472
|
||||
Node: Simple Command Expansion78147
|
||||
Node: Command Search and Execution80077
|
||||
Node: Command Execution Environment82083
|
||||
Node: Environment84854
|
||||
Node: Exit Status86514
|
||||
Node: Signals87718
|
||||
Node: Shell Scripts89682
|
||||
Node: Shell Builtin Commands92200
|
||||
Node: Bourne Shell Builtins93779
|
||||
Node: Bash Builtins110732
|
||||
Node: The Set Builtin138859
|
||||
Node: Special Builtins147082
|
||||
Node: Shell Variables148059
|
||||
Node: Bourne Shell Variables148499
|
||||
Node: Bash Variables150480
|
||||
Node: Bash Features170187
|
||||
Node: Invoking Bash171070
|
||||
Node: Bash Startup Files176889
|
||||
Node: Interactive Shells181747
|
||||
Node: What is an Interactive Shell?182157
|
||||
Node: Is this Shell Interactive?182807
|
||||
Node: Interactive Shell Behavior183622
|
||||
Node: Bash Conditional Expressions186898
|
||||
Node: Shell Arithmetic190477
|
||||
Node: Aliases193222
|
||||
Node: Arrays195790
|
||||
Node: The Directory Stack199057
|
||||
Node: Directory Stack Builtins199771
|
||||
Node: Printing a Prompt202662
|
||||
Node: The Restricted Shell205376
|
||||
Node: Bash POSIX Mode207208
|
||||
Node: Job Control214541
|
||||
Node: Job Control Basics215008
|
||||
Node: Job Control Builtins219298
|
||||
Node: Job Control Variables223641
|
||||
Node: Command Line Editing224799
|
||||
Node: Introduction and Notation225798
|
||||
Node: Readline Interaction227420
|
||||
Node: Readline Bare Essentials228611
|
||||
Node: Readline Movement Commands230400
|
||||
Node: Readline Killing Commands231365
|
||||
Node: Readline Arguments233285
|
||||
Node: Searching234329
|
||||
Node: Readline Init File236515
|
||||
Node: Readline Init File Syntax237574
|
||||
Node: Conditional Init Constructs249227
|
||||
Node: Sample Init File251760
|
||||
Node: Bindable Readline Commands254877
|
||||
Node: Commands For Moving256084
|
||||
Node: Commands For History256945
|
||||
Node: Commands For Text259846
|
||||
Node: Commands For Killing262519
|
||||
Node: Numeric Arguments264661
|
||||
Node: Commands For Completion265800
|
||||
Node: Keyboard Macros269393
|
||||
Node: Miscellaneous Commands269964
|
||||
Node: Readline vi Mode275275
|
||||
Node: Programmable Completion276189
|
||||
Node: Programmable Completion Builtins282001
|
||||
Node: Using History Interactively289597
|
||||
Node: Bash History Facilities290277
|
||||
Node: Bash History Builtins292972
|
||||
Node: History Interaction296829
|
||||
Node: Event Designators299385
|
||||
Node: Word Designators300400
|
||||
Node: Modifiers302039
|
||||
Node: Installing Bash303445
|
||||
Node: Basic Installation304582
|
||||
Node: Compilers and Options307274
|
||||
Node: Compiling For Multiple Architectures308015
|
||||
Node: Installation Names309679
|
||||
Node: Specifying the System Type310497
|
||||
Node: Sharing Defaults311213
|
||||
Node: Operation Controls311886
|
||||
Node: Optional Features312844
|
||||
Node: Reporting Bugs321123
|
||||
Node: Major Differences From The Bourne Shell322317
|
||||
Node: Copying This Manual338089
|
||||
Node: GNU Free Documentation License338365
|
||||
Node: Builtin Index360771
|
||||
Node: Reserved Word Index367320
|
||||
Node: Variable Index369756
|
||||
Node: Function Index380475
|
||||
Node: Concept Index387195
|
||||
Node: Top1375
|
||||
Node: Introduction3537
|
||||
Node: What is Bash?3766
|
||||
Node: What is a shell?4859
|
||||
Node: Definitions7400
|
||||
Node: Basic Shell Features10141
|
||||
Node: Shell Syntax11360
|
||||
Node: Shell Operation12392
|
||||
Node: Quoting13686
|
||||
Node: Escape Character14960
|
||||
Node: Single Quotes15445
|
||||
Node: Double Quotes15793
|
||||
Node: ANSI-C Quoting16819
|
||||
Node: Locale Translation17775
|
||||
Node: Comments18671
|
||||
Node: Shell Commands19285
|
||||
Node: Simple Commands20051
|
||||
Node: Pipelines20682
|
||||
Node: Lists22557
|
||||
Node: Compound Commands24188
|
||||
Node: Looping Constructs24972
|
||||
Node: Conditional Constructs27419
|
||||
Node: Command Grouping34486
|
||||
Node: Shell Functions35935
|
||||
Node: Shell Parameters40203
|
||||
Node: Positional Parameters42533
|
||||
Node: Special Parameters43433
|
||||
Node: Shell Expansions46358
|
||||
Node: Brace Expansion48283
|
||||
Node: Tilde Expansion50608
|
||||
Node: Shell Parameter Expansion52959
|
||||
Node: Command Substitution60468
|
||||
Node: Arithmetic Expansion61801
|
||||
Node: Process Substitution62651
|
||||
Node: Word Splitting63701
|
||||
Node: Filename Expansion65162
|
||||
Node: Pattern Matching67298
|
||||
Node: Quote Removal70623
|
||||
Node: Redirections70918
|
||||
Node: Executing Commands78648
|
||||
Node: Simple Command Expansion79323
|
||||
Node: Command Search and Execution81253
|
||||
Node: Command Execution Environment83259
|
||||
Node: Environment86030
|
||||
Node: Exit Status87690
|
||||
Node: Signals88894
|
||||
Node: Shell Scripts90858
|
||||
Node: Shell Builtin Commands93376
|
||||
Node: Bourne Shell Builtins94955
|
||||
Node: Bash Builtins111908
|
||||
Node: The Set Builtin140035
|
||||
Node: Special Builtins148258
|
||||
Node: Shell Variables149235
|
||||
Node: Bourne Shell Variables149675
|
||||
Node: Bash Variables151656
|
||||
Node: Bash Features171363
|
||||
Node: Invoking Bash172246
|
||||
Node: Bash Startup Files178067
|
||||
Node: Interactive Shells182925
|
||||
Node: What is an Interactive Shell?183335
|
||||
Node: Is this Shell Interactive?183985
|
||||
Node: Interactive Shell Behavior184800
|
||||
Node: Bash Conditional Expressions188076
|
||||
Node: Shell Arithmetic191655
|
||||
Node: Aliases194401
|
||||
Node: Arrays196969
|
||||
Node: The Directory Stack200236
|
||||
Node: Directory Stack Builtins200950
|
||||
Node: Printing a Prompt203841
|
||||
Node: The Restricted Shell206555
|
||||
Node: Bash POSIX Mode208387
|
||||
Node: Job Control215720
|
||||
Node: Job Control Basics216187
|
||||
Node: Job Control Builtins220563
|
||||
Node: Job Control Variables224915
|
||||
Node: Command Line Editing226073
|
||||
Node: Introduction and Notation227072
|
||||
Node: Readline Interaction228694
|
||||
Node: Readline Bare Essentials229885
|
||||
Node: Readline Movement Commands231674
|
||||
Node: Readline Killing Commands232639
|
||||
Node: Readline Arguments234559
|
||||
Node: Searching235603
|
||||
Node: Readline Init File237789
|
||||
Node: Readline Init File Syntax238848
|
||||
Node: Conditional Init Constructs250707
|
||||
Node: Sample Init File253240
|
||||
Node: Bindable Readline Commands256357
|
||||
Node: Commands For Moving257564
|
||||
Node: Commands For History258425
|
||||
Node: Commands For Text261580
|
||||
Node: Commands For Killing264253
|
||||
Node: Numeric Arguments266395
|
||||
Node: Commands For Completion267534
|
||||
Node: Keyboard Macros271127
|
||||
Node: Miscellaneous Commands271698
|
||||
Node: Readline vi Mode277009
|
||||
Node: Programmable Completion277923
|
||||
Node: Programmable Completion Builtins283735
|
||||
Node: Using History Interactively291331
|
||||
Node: Bash History Facilities292011
|
||||
Node: Bash History Builtins294706
|
||||
Node: History Interaction298563
|
||||
Node: Event Designators301119
|
||||
Node: Word Designators302134
|
||||
Node: Modifiers303773
|
||||
Node: Installing Bash305179
|
||||
Node: Basic Installation306316
|
||||
Node: Compilers and Options309008
|
||||
Node: Compiling For Multiple Architectures309749
|
||||
Node: Installation Names311413
|
||||
Node: Specifying the System Type312231
|
||||
Node: Sharing Defaults312947
|
||||
Node: Operation Controls313620
|
||||
Node: Optional Features314578
|
||||
Node: Reporting Bugs322857
|
||||
Node: Major Differences From The Bourne Shell324051
|
||||
Node: Copying This Manual339823
|
||||
Node: GNU Free Documentation License340099
|
||||
Node: Builtin Index362505
|
||||
Node: Reserved Word Index369054
|
||||
Node: Variable Index371490
|
||||
Node: Function Index382350
|
||||
Node: Concept Index389070
|
||||
|
||||
End Tag Table
|
||||
|
||||
+22
-22
@@ -1,6 +1,6 @@
|
||||
This is TeX, Version 3.14159 (Web2C 7.4.5) (format=tex 2003.12.31) 21 SEP 2004 11:57
|
||||
**/usr/homes/chet/src/bash/src/doc/bashref.texi
|
||||
(/usr/homes/chet/src/bash/src/doc/bashref.texi (./texinfo.tex
|
||||
This is TeX, Version 3.14159 (Web2C 7.4.5) (format=tex 2003.12.31) 22 NOV 2004 12:04
|
||||
**/Users/chet/src/bash/src/doc/bashref.texi
|
||||
(/Users/chet/src/bash/src/doc/bashref.texi (./texinfo.tex
|
||||
Loading texinfo [version 2003-02-03.16]: Basics,
|
||||
\bindingoffset=\dimen16
|
||||
\normaloffset=\dimen17
|
||||
@@ -172,7 +172,7 @@ textttsl pat-tern@texttt ][]) @textttsl command-list @texttt ;;][] esac[][]
|
||||
|
||||
[11] [12] [13] [14] [15] [16] [17] [18] [19] [20] [21] [22] [23] [24] [25]
|
||||
[26] [27] [28] [29] [30] [31] Chapter 4 [32] [33] [34] [35] [36] [37] [38]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 3106--3119
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 3129--3142
|
||||
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
|
||||
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
|
||||
@@ -185,7 +185,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
.etc.
|
||||
|
||||
[39] [40] [41] [42] [43]
|
||||
Overfull \hbox (43.33536pt too wide) in paragraph at lines 3443--3443
|
||||
Overfull \hbox (43.33536pt too wide) in paragraph at lines 3466--3466
|
||||
[]@texttt read [-ers] [-a @textttsl aname@texttt ] [-d @textttsl de-lim@texttt
|
||||
] [-n @textttsl nchars@texttt ] [-p @textttsl prompt@texttt ] [-t @textttsl ti
|
||||
me-
|
||||
@@ -199,7 +199,7 @@ me-
|
||||
.etc.
|
||||
|
||||
[44] [45] [46] [47] [48] [49] [50] [51]
|
||||
Underfull \hbox (badness 4036) in paragraph at lines 4052--4059
|
||||
Underfull \hbox (badness 4036) in paragraph at lines 4075--4082
|
||||
@texttt -x[]@textrm Print a trace of sim-ple com-mands, @texttt \@textrm fB-fo
|
||||
r@texttt \@textrm fP com-mands,
|
||||
|
||||
@@ -212,7 +212,7 @@ r@texttt \@textrm fP com-mands,
|
||||
.etc.
|
||||
|
||||
[52] [53] Chapter 5 [54] [55] [56] [57] [58] [59] [60] [61] Chapter 6 [62]
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 4769--4769
|
||||
Overfull \hbox (51.96864pt too wide) in paragraph at lines 4792--4792
|
||||
[]@texttt bash [long-opt] [-ir] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@t
|
||||
exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -225,7 +225,7 @@ exttt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 4770--4770
|
||||
Overfull \hbox (76.23077pt too wide) in paragraph at lines 4793--4793
|
||||
[]@texttt bash [long-opt] [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@texttt
|
||||
] [-O @textttsl shopt_option@texttt ] -c @textttsl string @texttt [@textttsl ar
|
||||
-
|
||||
@@ -239,7 +239,7 @@ Overfull \hbox (76.23077pt too wide) in paragraph at lines 4770--4770
|
||||
.etc.
|
||||
|
||||
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 4771--4771
|
||||
Overfull \hbox (34.72258pt too wide) in paragraph at lines 4794--4794
|
||||
[]@texttt bash [long-opt] -s [-abefhkmnptuvxdBCDHP] [-o @textttsl op-tion@text
|
||||
tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
|
||||
@@ -252,7 +252,7 @@ tt ] [-O @textttsl shopt_option@texttt ] [@textttsl ar-
|
||||
.etc.
|
||||
|
||||
[63] [64]
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 4945--4947
|
||||
Underfull \hbox (badness 2245) in paragraph at lines 4968--4970
|
||||
[]@textrm When a lo-gin shell ex-its, Bash reads and ex-e-cutes com-mands from
|
||||
the file
|
||||
|
||||
@@ -266,9 +266,9 @@ the file
|
||||
|
||||
[65] [66] [67] [68] [69] [70] [71] [72] [73] [74] [75] [76] [77] [78]
|
||||
Chapter 7 [79] [80] [81] [82] [83]
|
||||
(/usr/homes/chet/src/bash/src/lib/readline/doc/rluser.texi Chapter 8 [84]
|
||||
[85] [86] [87] [88] [89]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 488--504
|
||||
(/Users/chet/src/bash/src/lib/readline/doc/rluser.texi Chapter 8 [84] [85]
|
||||
[86] [87] [88] [89]
|
||||
Underfull \hbox (badness 5231) in paragraph at lines 494--510
|
||||
@texttt emacs-meta[]@textrm , @texttt emacs-ctlx[]@textrm , @texttt vi[]@textr
|
||||
m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
|
||||
@@ -281,7 +281,7 @@ m , @texttt vi-move[]@textrm , @texttt vi-command[]@textrm , and
|
||||
.etc.
|
||||
|
||||
[90] [91] [92] [93] [94]
|
||||
Overfull \hbox (26.43913pt too wide) in paragraph at lines 801--801
|
||||
Overfull \hbox (26.43913pt too wide) in paragraph at lines 807--807
|
||||
[]@texttt Meta-Control-h: backward-kill-word Text after the function name is i
|
||||
gnored[]
|
||||
|
||||
@@ -294,7 +294,7 @@ gnored[]
|
||||
.etc.
|
||||
|
||||
[95] [96] [97] [98] [99] [100] [101] [102] [103] [104] [105] [106]
|
||||
Overfull \hbox (17.80585pt too wide) in paragraph at lines 1646--1646
|
||||
Overfull \hbox (17.80585pt too wide) in paragraph at lines 1656--1656
|
||||
[]@texttt complete [-abcdefgjksuv] [-o @textttsl comp-option@texttt ] [-A @tex
|
||||
tttsl ac-tion@texttt ] [-G @textttsl glob-
|
||||
|
||||
@@ -307,7 +307,7 @@ tttsl ac-tion@texttt ] [-G @textttsl glob-
|
||||
.etc.
|
||||
|
||||
[107] [108]
|
||||
Underfull \hbox (badness 2753) in paragraph at lines 1748--1751
|
||||
Underfull \hbox (badness 2753) in paragraph at lines 1758--1761
|
||||
@texttt hostname[]@textrm Hostnames, as taken from the file spec-i-fied by
|
||||
|
||||
@hbox(7.60416+2.12917)x433.62, glue set 3.02202
|
||||
@@ -318,9 +318,9 @@ Underfull \hbox (badness 2753) in paragraph at lines 1748--1751
|
||||
.@texttt o
|
||||
.etc.
|
||||
|
||||
[109]) (/usr/homes/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
|
||||
[109]) (/Users/chet/src/bash/src/lib/readline/doc/hsuser.texi Chapter 9
|
||||
[110] [111] [112] [113] [114]) Chapter 10 [115] [116] [117] [118] [119]
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 6642--6646
|
||||
Underfull \hbox (badness 2772) in paragraph at lines 6666--6670
|
||||
[]@textrm Enable sup-port for large files (@texttt http://www.sas.com/standard
|
||||
s/large_
|
||||
|
||||
@@ -358,11 +358,11 @@ Overfull \vbox (42.26959pt too high) has occurred while \output is active
|
||||
(Concept Index) [148] (./bashref.cps [149]) [150] )
|
||||
Here is how much of TeX's memory you used:
|
||||
1726 strings out of 98002
|
||||
23533 string characters out of 1221986
|
||||
52375 words of memory out of 1000001
|
||||
23501 string characters out of 1221986
|
||||
52385 words of memory out of 1000001
|
||||
2577 multiletter control sequences out of 10000+50000
|
||||
31953 words of font info for 111 fonts, out of 500000 for 1000
|
||||
19 hyphenation exceptions out of 1000
|
||||
15i,8n,11p,273b,465s stack positions out of 1500i,500n,5000p,200000b,5000s
|
||||
15i,8n,11p,269b,465s stack positions out of 1500i,500n,5000p,200000b,5000s
|
||||
|
||||
Output written on bashref.dvi (156 pages, 582000 bytes).
|
||||
Output written on bashref.dvi (156 pages, 584368 bytes).
|
||||
|
||||
+3578
-3547
File diff suppressed because it is too large
Load Diff
+1697
-1649
File diff suppressed because it is too large
Load Diff
+10
-10
@@ -26,33 +26,33 @@
|
||||
\subsecentry{Special Parameters}{3}{4}{2}{15}
|
||||
\secentry{Shell Expansions}{3}{5}{16}
|
||||
\subsecentry{Brace Expansion}{3}{5}{1}{17}
|
||||
\subsecentry{Tilde Expansion}{3}{5}{2}{17}
|
||||
\subsecentry{Tilde Expansion}{3}{5}{2}{18}
|
||||
\subsecentry{Shell Parameter Expansion}{3}{5}{3}{18}
|
||||
\subsecentry{Command Substitution}{3}{5}{4}{21}
|
||||
\subsecentry{Arithmetic Expansion}{3}{5}{5}{21}
|
||||
\subsecentry{Process Substitution}{3}{5}{6}{21}
|
||||
\subsecentry{Process Substitution}{3}{5}{6}{22}
|
||||
\subsecentry{Word Splitting}{3}{5}{7}{22}
|
||||
\subsecentry{Filename Expansion}{3}{5}{8}{22}
|
||||
\subsubsecentry{Pattern Matching}{3}{5}{8}{1}{23}
|
||||
\subsecentry{Quote Removal}{3}{5}{9}{24}
|
||||
\secentry{Redirections}{3}{6}{24}
|
||||
\subsecentry{Redirecting Input}{3}{6}{1}{25}
|
||||
\subsecentry{Redirecting Output}{3}{6}{2}{25}
|
||||
\subsecentry{Redirecting Output}{3}{6}{2}{26}
|
||||
\subsecentry{Appending Redirected Output}{3}{6}{3}{26}
|
||||
\subsecentry{Redirecting Standard Output and Standard Error}{3}{6}{4}{26}
|
||||
\subsecentry{Here Documents}{3}{6}{5}{26}
|
||||
\subsecentry{Here Strings}{3}{6}{6}{26}
|
||||
\subsecentry{Here Strings}{3}{6}{6}{27}
|
||||
\subsecentry{Duplicating File Descriptors}{3}{6}{7}{27}
|
||||
\subsecentry{Moving File Descriptors}{3}{6}{8}{27}
|
||||
\subsecentry{Opening File Descriptors for Reading and Writing}{3}{6}{9}{27}
|
||||
\secentry{Executing Commands}{3}{7}{27}
|
||||
\subsecentry{Simple Command Expansion}{3}{7}{1}{27}
|
||||
\subsecentry{Opening File Descriptors for Reading and Writing}{3}{6}{9}{28}
|
||||
\secentry{Executing Commands}{3}{7}{28}
|
||||
\subsecentry{Simple Command Expansion}{3}{7}{1}{28}
|
||||
\subsecentry{Command Search and Execution}{3}{7}{2}{28}
|
||||
\subsecentry{Command Execution Environment}{3}{7}{3}{29}
|
||||
\subsecentry{Environment}{3}{7}{4}{30}
|
||||
\subsecentry{Exit Status}{3}{7}{5}{30}
|
||||
\subsecentry{Exit Status}{3}{7}{5}{31}
|
||||
\subsecentry{Signals}{3}{7}{6}{31}
|
||||
\secentry{Shell Scripts}{3}{8}{31}
|
||||
\secentry{Shell Scripts}{3}{8}{32}
|
||||
\chapentry{Shell Builtin Commands}{4}{33}
|
||||
\secentry{Bourne Shell Builtins}{4}{1}{33}
|
||||
\secentry{Bash Builtin Commands}{4}{2}{39}
|
||||
@@ -96,7 +96,7 @@
|
||||
\secentry{Bindable Readline Commands}{8}{4}{97}
|
||||
\subsecentry{Commands For Moving}{8}{4}{1}{97}
|
||||
\subsecentry{Commands For Manipulating The History}{8}{4}{2}{97}
|
||||
\subsecentry{Commands For Changing Text}{8}{4}{3}{98}
|
||||
\subsecentry{Commands For Changing Text}{8}{4}{3}{99}
|
||||
\subsecentry{Killing And Yanking}{8}{4}{4}{100}
|
||||
\subsecentry{Specifying Numeric Arguments}{8}{4}{5}{101}
|
||||
\subsecentry{Letting Readline Type For You}{8}{4}{6}{101}
|
||||
|
||||
+4
-3
@@ -1,8 +1,8 @@
|
||||
\entry{LC_MESSAGES}{7}{\code {LC_MESSAGES}}
|
||||
\entry{TEXTDOMAIN}{7}{\code {TEXTDOMAIN}}
|
||||
\entry{TEXTDOMAINDIR}{7}{\code {TEXTDOMAINDIR}}
|
||||
\entry{*}{15}{\code {*}}
|
||||
\entry{@}{15}{\code {@}}
|
||||
\entry{*}{16}{\code {*}}
|
||||
\entry{@}{16}{\code {@}}
|
||||
\entry{#}{16}{\code {#}}
|
||||
\entry{?}{16}{\code {?}}
|
||||
\entry{-}{16}{\code {-}}
|
||||
@@ -91,10 +91,11 @@
|
||||
\entry{UID}{62}{\code {UID}}
|
||||
\entry{auto_resume}{84}{\code {auto_resume}}
|
||||
\entry{bell-style}{89}{\code {bell-style}}
|
||||
\entry{bind-tty-special-chars}{89}{\code {bind-tty-special-chars}}
|
||||
\entry{comment-begin}{89}{\code {comment-begin}}
|
||||
\entry{completion-query-items}{89}{\code {completion-query-items}}
|
||||
\entry{convert-meta}{89}{\code {convert-meta}}
|
||||
\entry{disable-completion}{89}{\code {disable-completion}}
|
||||
\entry{disable-completion}{90}{\code {disable-completion}}
|
||||
\entry{editing-mode}{90}{\code {editing-mode}}
|
||||
\entry{enable-keypad}{90}{\code {enable-keypad}}
|
||||
\entry{expand-tilde}{90}{\code {expand-tilde}}
|
||||
|
||||
+4
-3
@@ -5,13 +5,13 @@
|
||||
\initial {$}
|
||||
\entry {\code {$}}{16}
|
||||
\initial {*}
|
||||
\entry {\code {*}}{15}
|
||||
\entry {\code {*}}{16}
|
||||
\initial {-}
|
||||
\entry {\code {-}}{16}
|
||||
\initial {?}
|
||||
\entry {\code {?}}{16}
|
||||
\initial {@}
|
||||
\entry {\code {@}}{15}
|
||||
\entry {\code {@}}{16}
|
||||
\initial {_}
|
||||
\entry {\code {_}}{16}
|
||||
\initial {0}
|
||||
@@ -32,6 +32,7 @@
|
||||
\entry {\code {BASH_VERSINFO}}{56}
|
||||
\entry {\code {BASH_VERSION}}{57}
|
||||
\entry {\code {bell-style}}{89}
|
||||
\entry {\code {bind-tty-special-chars}}{89}
|
||||
\initial {C}
|
||||
\entry {\code {CDPATH}}{55}
|
||||
\entry {\code {COLUMNS}}{57}
|
||||
@@ -46,7 +47,7 @@
|
||||
\entry {\code {convert-meta}}{89}
|
||||
\initial {D}
|
||||
\entry {\code {DIRSTACK}}{58}
|
||||
\entry {\code {disable-completion}}{89}
|
||||
\entry {\code {disable-completion}}{90}
|
||||
\initial {E}
|
||||
\entry {\code {editing-mode}}{90}
|
||||
\entry {\code {EMACS}}{58}
|
||||
|
||||
+16
-16
@@ -1357,23 +1357,23 @@ BBAASSHH BBUUIILLTTIINN CCOOMMMMAANNDDSS
|
||||
For each _n_a_m_e, remove the corresponding variable or function.
|
||||
If no options are supplied, or the --vv option is given, each _n_a_m_e
|
||||
refers to a shell variable. Read-only variables may not be
|
||||
unset. If --ff is specifed, each _n_a_m_e refers to a shell function,
|
||||
and the function definition is removed. Each unset variable or
|
||||
function is removed from the environment passed to subsequent
|
||||
commands. If any of RRAANNDDOOMM, SSEECCOONNDDSS, LLIINNEENNOO, HHIISSTTCCMMDD, FFUUNNCCNNAAMMEE,
|
||||
GGRROOUUPPSS, or DDIIRRSSTTAACCKK are unset, they lose their special proper-
|
||||
ties, even if they are subsequently reset. The exit status is
|
||||
true unless a _n_a_m_e is readonly.
|
||||
unset. If --ff is specified, each _n_a_m_e refers to a shell func-
|
||||
tion, and the function definition is removed. Each unset vari-
|
||||
able or function is removed from the environment passed to sub-
|
||||
sequent commands. If any of RRAANNDDOOMM, SSEECCOONNDDSS, LLIINNEENNOO, HHIISSTTCCMMDD,
|
||||
FFUUNNCCNNAAMMEE, GGRROOUUPPSS, or DDIIRRSSTTAACCKK are unset, they lose their special
|
||||
properties, even if they are subsequently reset. The exit sta-
|
||||
tus is true unless a _n_a_m_e is readonly.
|
||||
|
||||
wwaaiitt [_n]
|
||||
Wait for the specified process and return its termination sta-
|
||||
tus. _n may be a process ID or a job specification; if a job
|
||||
spec is given, all processes in that job's pipeline are waited
|
||||
for. If _n is not given, all currently active child processes
|
||||
are waited for, and the return status is zero. If _n specifies a
|
||||
non-existent process or job, the return status is 127. Other-
|
||||
wise, the return status is the exit status of the last process
|
||||
or job waited for.
|
||||
wwaaiitt [_n _._._.]
|
||||
Wait for each specified process and return its termination sta-
|
||||
tus. Each _n may be a process ID or a job specification; if a
|
||||
job spec is given, all processes in that job's pipeline are
|
||||
waited for. If _n is not given, all currently active child pro-
|
||||
cesses are waited for, and the return status is zero. If _n
|
||||
specifies a non-existent process or job, the return status is
|
||||
127. Otherwise, the return status is the exit status of the
|
||||
last process or job waited for.
|
||||
|
||||
SSEEEE AALLSSOO
|
||||
bash(1), sh(1)
|
||||
|
||||
+17
-17
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.18.1
|
||||
%%CreationDate: Tue Sep 21 11:57:03 2004
|
||||
%%CreationDate: Mon Nov 22 12:03:34 2004
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%+ font Times-Italic
|
||||
@@ -2288,8 +2288,8 @@ F2(name)4.11 E F1 4.11(,r).35 G 1.61(emove the corr)-4.29 F 1.61
|
||||
4.11(es)-.18 G(up-)-4.11 E .473(plied, or the)144 213.6 R F3<ad76>2.973
|
||||
E F1 .473(option is given, each)2.973 F F2(name)3.233 E F1 -.18(re)3.323
|
||||
G .474(fers to a shell variable.).18 F .474(Read-only variables)5.474 F
|
||||
.48(may not be unset.)144 225.6 R(If)5.48 E F3<ad66>2.98 E F1 .48
|
||||
(is specifed, each)2.98 F F2(name)3.24 E F1 -.18(re)3.33 G .48
|
||||
.32(may not be unset.)144 225.6 R(If)5.32 E F3<ad66>2.82 E F1 .32
|
||||
(is speci\214ed, each)2.82 F F2(name)3.08 E F1 -.18(re)3.17 G .32
|
||||
(fers to a shell function, and the function).18 F .405
|
||||
(de\214nition is r)144 237.6 R 2.905(emoved. Each)-.18 F .405
|
||||
(unset variable or function is r)2.905 F .405(emoved fr)-.18 F .405
|
||||
@@ -2302,20 +2302,20 @@ E F5(,)A F4(HISTCMD)3.724 E F5(,)A F4(FUNCNAME)144 261.6 Q F5(,)A F4
|
||||
.553(operties, even if)-.18 F(they ar)144 273.6 Q 2.5(es)-.18 G
|
||||
(ubsequently r)-2.5 E 2.5(eset. The)-.18 F(exit status is tr)2.5 E
|
||||
(ue unless a)-.08 E F2(name)2.76 E F1(is r)2.85 E(eadonly)-.18 E(.)-1.11
|
||||
E F3(wait)108 290.4 Q F1([)2.5 E F2(n)A F1(])A -.92(Wa)144 302.4 S .299
|
||||
(it for the speci\214ed pr).92 F .298(ocess and r)-.18 F .298
|
||||
(eturn its termination status.)-.18 F F2(n)5.558 E F1 .298(may be a pr)
|
||||
2.878 F .298(ocess ID or)-.18 F 2.798(aj)144 314.4 S .298
|
||||
(ob speci\214cation; if a job spec is given, all pr)-2.798 F .298
|
||||
(ocesses in that job's pipeline ar)-.18 F 2.799(ew)-.18 G .299
|
||||
(aited for)-2.799 F(.)-.74 E(If)144 326.4 Q F2(n)2.78 E F1 .02
|
||||
(is not given, all curr)2.6 F .02(ently active child pr)-.18 F .02
|
||||
(ocesses ar)-.18 F 2.52(ew)-.18 G .02(aited for)-2.52 F 2.52(,a)-.74 G
|
||||
.02(nd the r)-2.52 F .02(eturn status is)-.18 F(zer)144 338.4 Q 3.137
|
||||
(o. If)-.18 F F2(n)3.397 E F1 .637(speci\214es a non-existent pr)3.217 F
|
||||
.637(ocess or job, the r)-.18 F .638(eturn status is 127.)-.18 F .638
|
||||
(Otherwise, the)5.638 F -.18(re)144 350.4 S
|
||||
(turn status is the exit status of the last pr).18 E
|
||||
E F3(wait)108 290.4 Q F1([)2.5 E F2 2.5(n.)C(..)-2.5 E F1(])A -.92(Wa)
|
||||
144 302.4 S .016(it for each speci\214ed pr).92 F .016(ocess and r)-.18
|
||||
F .016(eturn its termination status.)-.18 F(Each)5.016 E F2(n)2.776 E F1
|
||||
.016(may be a pr)2.596 F(ocess)-.18 E 1.733
|
||||
(ID or a job speci\214cation; if a job spec is given, all pr)144 314.4 R
|
||||
1.733(ocesses in that job's pipeline ar)-.18 F(e)-.18 E 1.015
|
||||
(waited for)144 326.4 R 6.015(.I)-.74 G(f)-6.015 E F2(n)3.775 E F1 1.015
|
||||
(is not given, all curr)3.595 F 1.014(ently active child pr)-.18 F 1.014
|
||||
(ocesses ar)-.18 F 3.514(ew)-.18 G 1.014(aited for)-3.514 F 3.514(,a)
|
||||
-.74 G 1.014(nd the)-3.514 F -.18(re)144 338.4 S .693
|
||||
(turn status is zer).18 F 3.193(o. If)-.18 F F2(n)3.453 E F1 .693
|
||||
(speci\214es a non-existent pr)3.273 F .693(ocess or job, the r)-.18 F
|
||||
.694(eturn status is 127.)-.18 F(Otherwise, the r)144 350.4 Q
|
||||
(eturn status is the exit status of the last pr)-.18 E
|
||||
(ocess or job waited for)-.18 E(.)-.74 E/F6 10.95/Palatino-Bold@0 SF
|
||||
(SEE ALSO)72 367.2 Q F1(bash\(1\), sh\(1\))108 379.2 Q F0(GNU Bash-3.0)
|
||||
72 768 Q(2004 Apr 20)148.735 E(19)198.725 E 0 Cg EP
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
%!PS-Adobe-3.0
|
||||
%%Creator: groff version 1.18.1
|
||||
%%CreationDate: Tue Sep 21 11:57:03 2004
|
||||
%%CreationDate: Mon Nov 22 12:03:34 2004
|
||||
%%DocumentNeededResources: font Times-Roman
|
||||
%%+ font Times-Bold
|
||||
%%DocumentSuppliedResources: procset grops 1.18 1
|
||||
|
||||
+2
-2
@@ -2,9 +2,9 @@
|
||||
Copyright (C) 1988-2004 Free Software Foundation, Inc.
|
||||
@end ignore
|
||||
|
||||
@set LASTCHANGE Sat Nov 20 12:34:34 EST 2004
|
||||
@set LASTCHANGE Mon Nov 22 11:08:58 EST 2004
|
||||
|
||||
@set EDITION 3.1-devel
|
||||
@set VERSION 3.1-devel
|
||||
@set UPDATED 20 November 2004
|
||||
@set UPDATED 22 November 2004
|
||||
@set UPDATED-MONTH November 2004
|
||||
|
||||
+27
-12
@@ -1619,8 +1619,9 @@ execute_for_command (for_command)
|
||||
if (echo_command_at_execute)
|
||||
xtrace_print_for_command_head (for_command);
|
||||
|
||||
/* Save this command unless it's a trap command. */
|
||||
if (this_command_name == 0 || (STREQ (this_command_name, "trap") == 0))
|
||||
/* Save this command unless it's a trap command and we're not running
|
||||
a debug trap. */
|
||||
if (signal_in_progress (DEBUG_TRAP) == 0 && (this_command_name == 0 || (STREQ (this_command_name, "trap") == 0)))
|
||||
{
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
@@ -1728,8 +1729,11 @@ eval_arith_for_expr (l, okp)
|
||||
|
||||
command_string_index = 0;
|
||||
print_arith_command (new);
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
if (signal_in_progress (DEBUG_TRAP) == 0)
|
||||
{
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
}
|
||||
|
||||
r = run_debug_trap ();
|
||||
/* In debugging mode, if the DEBUG trap returns a non-zero status, we
|
||||
@@ -2036,8 +2040,11 @@ execute_select_command (select_command)
|
||||
if (echo_command_at_execute)
|
||||
xtrace_print_select_command_head (select_command);
|
||||
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
if (signal_in_progress (DEBUG_TRAP) == 0 && (this_command_name == 0 || (STREQ (this_command_name, "trap") == 0)))
|
||||
{
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
}
|
||||
|
||||
retval = run_debug_trap ();
|
||||
#if defined (DEBUGGER)
|
||||
@@ -2165,7 +2172,7 @@ execute_case_command (case_command)
|
||||
if (echo_command_at_execute)
|
||||
xtrace_print_case_command_head (case_command);
|
||||
|
||||
if (this_command_name == 0 || (STREQ (this_command_name, "trap") == 0))
|
||||
if (signal_in_progress (DEBUG_TRAP == 0) && (this_command_name == 0 || (STREQ (this_command_name, "trap") == 0)))
|
||||
{
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
@@ -2375,8 +2382,12 @@ execute_arith_command (arith_command)
|
||||
|
||||
command_string_index = 0;
|
||||
print_arith_command (arith_command->exp);
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
|
||||
if (signal_in_progress (DEBUG_TRAP) == 0)
|
||||
{
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
}
|
||||
|
||||
/* Run the debug trap before each arithmetic command, but do it after we
|
||||
update the line number information and before we expand the various
|
||||
@@ -2532,8 +2543,12 @@ execute_cond_command (cond_command)
|
||||
|
||||
command_string_index = 0;
|
||||
print_cond_command (cond_command);
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
|
||||
if (signal_in_progress (DEBUG_TRAP) == 0)
|
||||
{
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = savestring (the_printed_command);
|
||||
}
|
||||
|
||||
/* Run the debug trap before each conditional command, but do it after we
|
||||
update the line number information. */
|
||||
@@ -2686,7 +2701,7 @@ execute_simple_command (simple_command, pipe_in, pipe_out, async, fds_to_close)
|
||||
command_string_index = 0;
|
||||
print_simple_command (simple_command);
|
||||
|
||||
if (this_command_name == 0 || (STREQ (this_command_name, "trap") == 0))
|
||||
if (signal_in_progress (DEBUG_TRAP) == 0 && (this_command_name == 0 || (STREQ (this_command_name, "trap") == 0)))
|
||||
{
|
||||
FREE (the_printed_command_except_trap);
|
||||
the_printed_command_except_trap = the_printed_command ? savestring (the_printed_command) : (char *)0;
|
||||
|
||||
+5
-5
@@ -1,6 +1,6 @@
|
||||
/* execute_command.c -- Execute a COMMAND structure. */
|
||||
|
||||
/* Copyright (C) 1987-2003 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 1987-2004 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GNU Bash, the Bourne Again SHell.
|
||||
|
||||
@@ -1635,7 +1635,7 @@ execute_for_command (for_command)
|
||||
#endif
|
||||
|
||||
this_command_name = (char *)NULL;
|
||||
v = bind_variable (identifier, list->word->word);
|
||||
v = bind_variable (identifier, list->word->word, 0);
|
||||
if (readonly_p (v) || noassign_p (v))
|
||||
{
|
||||
line_number = save_line_number;
|
||||
@@ -1682,7 +1682,7 @@ execute_for_command (for_command)
|
||||
{
|
||||
SHELL_VAR *new_value;
|
||||
|
||||
new_value = bind_variable (identifier, value_cell(old_value));
|
||||
new_value = bind_variable (identifier, value_cell(old_value), 0);
|
||||
new_value->attributes = old_value->attributes;
|
||||
dispose_variable (old_value);
|
||||
}
|
||||
@@ -2089,7 +2089,7 @@ execute_select_command (select_command)
|
||||
break;
|
||||
}
|
||||
|
||||
v = bind_variable (identifier, selection);
|
||||
v = bind_variable (identifier, selection, 0);
|
||||
if (readonly_p (v) || noassign_p (v))
|
||||
{
|
||||
if (readonly_p (v) && interactive_shell == 0 && posixly_correct)
|
||||
@@ -2566,7 +2566,7 @@ bind_lastarg (arg)
|
||||
|
||||
if (arg == 0)
|
||||
arg = "";
|
||||
var = bind_variable ("_", arg);
|
||||
var = bind_variable ("_", arg, 0);
|
||||
VUNSETATTR (var, att_exported);
|
||||
}
|
||||
|
||||
|
||||
@@ -6,9 +6,9 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet@ins.CWRU.Edu
|
||||
.\"
|
||||
.\" Last Change: Wed Jan 28 15:43:53 EST 2004
|
||||
.\" Last Change: Mon Nov 22 11:10:14 EST 2004
|
||||
.\"
|
||||
.TH READLINE 3 "2004 October 15" "GNU Readline 5.0"
|
||||
.TH READLINE 3 "2004 Nov 22" "GNU Readline 5.1-devel"
|
||||
.\"
|
||||
.\" File Name macro. This used to be `.PN', for Path Name,
|
||||
.\" but Sun doesn't seem to like that very much.
|
||||
@@ -696,6 +696,8 @@ With an argument
|
||||
insert the \fIn\fPth word from the previous command (the words
|
||||
in the previous command begin with word 0). A negative argument
|
||||
inserts the \fIn\fPth word from the end of the previous command.
|
||||
Once the argument \fIn\fP is computed, the argument is extracted
|
||||
as if the "!\fIn\fP" history expansion had been specified.
|
||||
.TP
|
||||
.B
|
||||
yank\-last\-arg (M\-.\^, M\-_\^)
|
||||
@@ -704,6 +706,8 @@ the previous history entry). With an argument,
|
||||
behave exactly like \fByank\-nth\-arg\fP.
|
||||
Successive calls to \fByank\-last\-arg\fP move back through the history
|
||||
list, inserting the last argument of each line in turn.
|
||||
The history expansion facilities are used to extract the last argument,
|
||||
as if the "!$" history expansion had been specified.
|
||||
.PD
|
||||
.SS Commands for Changing Text
|
||||
.PP
|
||||
|
||||
@@ -405,7 +405,7 @@ If set to @samp{audible} (the default), Readline attempts to ring
|
||||
the terminal's bell.
|
||||
|
||||
@item bind-tty-special-chars
|
||||
@vinded bind-tty-special-chars
|
||||
@vindex bind-tty-special-chars
|
||||
If set to @samp{on}, Readline attempts to bind the control characters
|
||||
treated specially by the kernel's terminal driver to their Readline
|
||||
equivalents.
|
||||
@@ -1018,6 +1018,8 @@ With an argument @var{n},
|
||||
insert the @var{n}th word from the previous command (the words
|
||||
in the previous command begin with word 0). A negative argument
|
||||
inserts the @var{n}th word from the end of the previous command.
|
||||
Once the argument @var{n} is computed, the argument is extracted
|
||||
as if the @samp{!@var{n}} history expansion had been specified.
|
||||
|
||||
@item yank-last-arg (M-. or M-_)
|
||||
Insert last argument to the previous command (the last word of the
|
||||
@@ -1025,6 +1027,8 @@ previous history entry). With an
|
||||
argument, behave exactly like @code{yank-nth-arg}.
|
||||
Successive calls to @code{yank-last-arg} move back through the history
|
||||
list, inserting the last argument of each line in turn.
|
||||
The history expansion facilities are used to extract the last argument,
|
||||
as if the @samp{!$} history expansion had been specified.
|
||||
|
||||
@end ftable
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ Copyright (C) 1988-2004 Free Software Foundation, Inc.
|
||||
|
||||
@set EDITION 5.1-devel
|
||||
@set VERSION 5.1-devel
|
||||
@set UPDATED 16 October 2004
|
||||
@set UPDATED-MONTH October 2004
|
||||
@set UPDATED 22 November 2004
|
||||
@set UPDATED-MONTH November 2004
|
||||
|
||||
@set LASTCHANGE Sat Oct 16 19:08:23 EDT 2004
|
||||
@set LASTCHANGE Mon Nov 22 12:01:42 EST 2004
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
BUILD_DIR=/usr/local/build/bash/bash-current
|
||||
THIS_SH=ksh93
|
||||
PATH=$PATH:$BUILD_DIR
|
||||
|
||||
export THIS_SH PATH
|
||||
|
||||
rm -f /tmp/xx
|
||||
|
||||
/bin/sh "$@"
|
||||
@@ -96,3 +96,7 @@ after read
|
||||
0
|
||||
before block
|
||||
after block
|
||||
c1 is 1
|
||||
c2 is 2
|
||||
c3 is 3
|
||||
c4 is 4
|
||||
|
||||
@@ -0,0 +1,98 @@
|
||||
abc
|
||||
./redir.tests: line 13: /tmp/redir-test: cannot overwrite existing file
|
||||
abc
|
||||
def
|
||||
def
|
||||
./redir.tests: line 29: $z: ambiguous redirect
|
||||
Point 1
|
||||
Point 2
|
||||
to a
|
||||
to b
|
||||
Point 3
|
||||
to a
|
||||
to a
|
||||
to b
|
||||
to b
|
||||
Point 4
|
||||
to c
|
||||
Point 5
|
||||
this is redir1.sub
|
||||
this is redir2.sub
|
||||
read line1 "ab"
|
||||
read line2 "root"
|
||||
read line3 "cd"
|
||||
read line4 "daemon"
|
||||
from stdin: aa
|
||||
to stdout
|
||||
./redir4.sub: line 32: $fd: ambiguous redirect
|
||||
./redir4.sub: line 33: $fd: ambiguous redirect
|
||||
/tmp/err-and-out:
|
||||
to stdout
|
||||
to stderr
|
||||
/tmp/err-and-out:
|
||||
to stdout
|
||||
to stderr
|
||||
0 -- 3 0
|
||||
0 -- 4 0
|
||||
ab
|
||||
cd
|
||||
ef
|
||||
gh
|
||||
ij
|
||||
kl
|
||||
0
|
||||
ab
|
||||
cd
|
||||
cd
|
||||
./redir.tests: line 152: redir1.*: No such file or directory
|
||||
# tests of ksh93-like dup-and-close redirection operators
|
||||
exec 9<$0
|
||||
|
||||
f()
|
||||
{
|
||||
exec 5<$0
|
||||
|
||||
exec 0<&5-
|
||||
|
||||
while read line; do
|
||||
echo "$line"
|
||||
done
|
||||
}
|
||||
|
||||
f
|
||||
|
||||
typeset -f f
|
||||
|
||||
# make sure it was closed
|
||||
read -u 5 foo
|
||||
echo after read
|
||||
|
||||
exec 5<&0
|
||||
|
||||
exec <&-
|
||||
|
||||
read abcde
|
||||
|
||||
exec 0<&9-
|
||||
read line
|
||||
echo $line
|
||||
f ()
|
||||
{
|
||||
exec 5<$0;
|
||||
exec 0<&5-;
|
||||
while read line; do
|
||||
echo "$line";
|
||||
done
|
||||
}
|
||||
./redir5.sub: line 20: read: 5: invalid file descriptor: Bad file descriptor
|
||||
after read
|
||||
./redir5.sub: line 27: read: read error: 0: Bad file descriptor
|
||||
# tests of ksh93-like dup-and-close redirection operators
|
||||
/
|
||||
/
|
||||
/
|
||||
0
|
||||
0
|
||||
0
|
||||
before block
|
||||
after block
|
||||
@@ -171,3 +171,4 @@ echo before block
|
||||
|
||||
echo after block
|
||||
|
||||
${THIS_SH} ./redir7.sub
|
||||
|
||||
@@ -156,3 +156,18 @@ ${THIS_SH} ./redir5.sub
|
||||
|
||||
# test behavior after a write error with a builtin command
|
||||
${THIS_SH} ./redir6.sub
|
||||
|
||||
# problem with redirections using fds bash uses internally
|
||||
: ${TMPDIR:=/tmp}
|
||||
|
||||
trap 'rm -f $TMPDIR/bash-redir-$$' 0 1 2 3 6 15
|
||||
|
||||
echo before block
|
||||
{
|
||||
echo before redir
|
||||
exec 10>&1
|
||||
echo after redir
|
||||
} > $TMPDIR/bash-redir-$$
|
||||
|
||||
echo after block
|
||||
|
||||
|
||||
@@ -0,0 +1,67 @@
|
||||
# weird redirections that caused trouble and were fixed in post-3.0 bash
|
||||
stuff()
|
||||
{
|
||||
c=1
|
||||
( sleep 5 < /dev/null >/dev/null 2>&1 & ) &
|
||||
}
|
||||
|
||||
exec 3>&1
|
||||
eval `
|
||||
exec 4>&1 >&3 3>&-
|
||||
{
|
||||
stuff 4>&-
|
||||
echo "c=$c" >&4
|
||||
}`
|
||||
echo c1 is $c
|
||||
|
||||
unset -f stuff
|
||||
|
||||
stuff()
|
||||
{
|
||||
c=2
|
||||
( sleep 5 < /dev/null >/dev/null 2>&1 & )
|
||||
}
|
||||
|
||||
exec 3>&1
|
||||
eval `
|
||||
exec 4>&1 >&3 3>&-
|
||||
{
|
||||
stuff 4>&-
|
||||
echo "c=$c" >&4
|
||||
}`
|
||||
echo c2 is $c
|
||||
|
||||
unset -f stuff
|
||||
|
||||
stuff()
|
||||
{
|
||||
c=3
|
||||
{ sleep 5 < /dev/null >/dev/null 2>&1 & } &
|
||||
}
|
||||
|
||||
exec 3>&1
|
||||
eval `
|
||||
exec 4>&1 >&3 3>&-
|
||||
{
|
||||
stuff 4>&-
|
||||
echo "c=$c" >&4
|
||||
}`
|
||||
echo c3 is $c
|
||||
|
||||
unset -f stuff
|
||||
|
||||
stuff()
|
||||
{
|
||||
c=4
|
||||
{ sleep 5 < /dev/null >/dev/null 2>&1 & }
|
||||
}
|
||||
|
||||
exec 3>&1
|
||||
eval `
|
||||
exec 4>&1 >&3 3>&-
|
||||
{
|
||||
stuff 4>&-
|
||||
echo "c=$c" >&4
|
||||
}`
|
||||
echo c4 is $c
|
||||
|
||||
Reference in New Issue
Block a user