commit bash-20041209 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:41:01 -05:00
parent 76a8d78dfd
commit 8fed35894b
22 changed files with 2156 additions and 1525 deletions
+22
View File
@@ -10674,3 +10674,25 @@ execute_cmd.c
lib/glob/xmbsrtowcs.c
- change xmbsrtowcs to handle the one case where malloc can fail
(though it should not matter) -- don't try to free a null pointer
12/9
----
subst.c
- fix get_var_and_type to handle var[@], where `var' is a scalar
variable, identically to var -- all calling expansions can now
handle var[@] like var. Bug reported by agriffis@gentoo.org
12/10
-----
lib/readline/bind.c
- make new-style "\M-x" keybindings obey `convert-meta' settings
(bug reported by twaugh@redhat.com)
12/14
-----
builtins/set.def
- added description of `-' option to help text
builtins/shopt.def
- fix bug that caused `gnu_errfmt' to not be compiled in unless
READLINE is defined
+44 -1
View File
@@ -2874,7 +2874,7 @@ lib/sh/stringlist.c
subst.c
- in skip_to_delim(), if we have an unclosed ${, and it's at the end
of the string (string[i] == '{', string[i+1] == '{' and
string[i+2] == 0, return si (i +2) immediately without bothering
string[i+2] == 0, return si (i + 2) immediately without bothering
to call extract_dollar_brace_string or extract_delimited_string
- in skip_to_delim(), if string[i] is 0 after a call to
extract_dollar_brace_string or extract_delimited_string (meaning we
@@ -10644,3 +10644,46 @@ execute_cmd.c
trap.c
- change reset_or_restore_signal_handlers so that the RETURN trap is
not inherited by command substitution when DEBUGGER is not defined
11/30
-----
lib/readline/misc.c
- fix memory leaks in _rl_free_history_entry and rl_maybe_replace_line
caused by not freeing `timestamp' member of history entry
- make sure timestamp is initialized to NULL in rl_maybe_save_line
12/1
----
execute_cmd.c
- fix execute_function so a function calling `return' will run the
RETURN trap, if one's defined
doc/{bash.1,bashref.texi}
- fix description of RETURN trap in various places to indicate that it's
only inherited by shell functions if function tracing is on globally
or has been enabled for that function
- fix documentation to indicate that the DEBUG and RETURN traps are
inherited under the same conditions
execute_cmd.c
- a function does not inherit the RETURN trap if a DEBUG trap is
currently running
12/2
----
lib/glob/xmbsrtowcs.c
- change xmbsrtowcs to handle the one case where malloc can fail
(though it should not matter) -- don't try to free a null pointer
12/9
----
subst.c
- fix get_var_and_type to handle var[@], where `var' is a scalar
variable, identically to var -- all calling expansions can now
handle var[@] like var. Bug reported by agriffis@gentoo.org
12/10
-----
lib/readline/bind.c
- make new-style "\M-x" keybindings obey `convert-meta' settings
(bug reported by twaugh@redhat.com)
+2
View File
@@ -133,6 +133,8 @@ $SHORT_DOC set [--abefhkmnptuvxBCHP] [-o option] [arg ...]
-P If set, do not follow symbolic links when executing commands
such as cd which change the current directory.
-T If set, the DEBUG trap is inherited by shell functions.
- Assign any remaining arguments to the positional parameters.
The -x and -v options are turned off.
Using + rather than - causes these flags to be turned off. The
flags can also be used upon invocation of the shell. The current
+1 -1
View File
@@ -1,7 +1,7 @@
This file is set.def, from which is created set.c.
It implements the "set" and "unset" builtins in Bash.
Copyright (C) 1987-2002 Free Software Foundation, Inc.
Copyright (C) 1987-2004 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
+2 -2
View File
@@ -134,13 +134,13 @@ static struct {
{ "failglob", &fail_glob_expansion, (shopt_set_func_t *)NULL },
#if defined (READLINE)
{ "force_fignore", &force_fignore, (shopt_set_func_t *)NULL },
{ "gnu_errfmt", &gnu_error_format, (shopt_set_func_t *)NULL },
{ "histreedit", &history_reediting, (shopt_set_func_t *)NULL },
#endif
{ "gnu_errfmt", &gnu_error_format, (shopt_set_func_t *)NULL },
#if defined (HISTORY)
{ "histappend", &force_append_history, (shopt_set_func_t *)NULL },
#endif
#if defined (READLINE)
{ "histreedit", &history_reediting, (shopt_set_func_t *)NULL },
{ "histverify", &hist_verify, (shopt_set_func_t *)NULL },
{ "hostcomplete", &perform_hostname_completion, enable_hostname_completion },
#endif
+539
View File
@@ -0,0 +1,539 @@
This file is shopt.def, from which is created shopt.c.
It implements the Bash `shopt' builtin.
Copyright (C) 1994-2003 Free Software Foundation, Inc.
This file is part of GNU Bash, the Bourne Again SHell.
Bash is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Software Foundation; either version 2, or (at your option) any later
version.
Bash is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License along
with Bash; see the file COPYING. If not, write to the Free Software
Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA.
$PRODUCES shopt.c
$BUILTIN shopt
$FUNCTION shopt_builtin
$SHORT_DOC shopt [-pqsu] [-o long-option] optname [optname...]
Toggle the values of variables controlling optional behavior.
The -s flag means to enable (set) each OPTNAME; the -u flag
unsets each OPTNAME. The -q flag suppresses output; the exit
status indicates whether each OPTNAME is set or unset. The -o
option restricts the OPTNAMEs to those defined for use with
`set -o'. With no options, or with the -p option, a list of all
settable options is displayed, with an indication of whether or
not each is set.
$END
#include <config.h>
#if defined (HAVE_UNISTD_H)
# ifdef _MINIX
# include <sys/types.h>
# endif
# include <unistd.h>
#endif
#include <stdio.h>
#include "../bashintl.h"
#include "../shell.h"
#include "../flags.h"
#include "common.h"
#include "bashgetopt.h"
#define UNSETOPT 0
#define SETOPT 1
#define OPTFMT "%-15s\t%s\n"
extern int allow_null_glob_expansion, fail_glob_expansion, glob_dot_filenames;
extern int cdable_vars, mail_warning, source_uses_path;
extern int no_exit_on_failed_exec, print_shift_error;
extern int check_hashed_filenames, promptvars;
extern int cdspelling, expand_aliases;
extern int extended_quote;
extern int check_window_size;
extern int glob_ignore_case;
extern int hup_on_exit;
extern int xpg_echo;
extern int gnu_error_format;
#if defined (EXTENDED_GLOB)
extern int extended_glob;
#endif
#if defined (HISTORY)
extern int literal_history, command_oriented_history;
extern int force_append_history;
#endif
#if defined (READLINE)
extern int hist_verify, history_reediting, perform_hostname_completion;
extern int no_empty_command_completion;
extern int force_fignore;
extern int enable_hostname_completion __P((int));
#endif
#if defined (PROGRAMMABLE_COMPLETION)
extern int prog_completion_enabled;
#endif
#if defined (RESTRICTED_SHELL)
extern char *shell_name;
#endif
#if defined (DEBUGGER)
extern int debugging_mode;
#endif
static void shopt_error __P((char *));
static int set_shellopts_after_change __P((int));
#if defined (RESTRICTED_SHELL)
static int set_restricted_shell __P((int));
#endif
static int shopt_login_shell;
typedef int shopt_set_func_t __P((int));
static struct {
char *name;
int *value;
shopt_set_func_t *set_func;
} shopt_vars[] = {
{ "cdable_vars", &cdable_vars, (shopt_set_func_t *)NULL },
{ "cdspell", &cdspelling, (shopt_set_func_t *)NULL },
{ "checkhash", &check_hashed_filenames, (shopt_set_func_t *)NULL },
{ "checkwinsize", &check_window_size, (shopt_set_func_t *)NULL },
#if defined (HISTORY)
{ "cmdhist", &command_oriented_history, (shopt_set_func_t *)NULL },
#endif
{ "dotglob", &glob_dot_filenames, (shopt_set_func_t *)NULL },
{ "execfail", &no_exit_on_failed_exec, (shopt_set_func_t *)NULL },
{ "expand_aliases", &expand_aliases, (shopt_set_func_t *)NULL },
#if defined (DEBUGGER)
{ "extdebug", &debugging_mode, (shopt_set_func_t *)NULL },
#endif
#if defined (EXTENDED_GLOB)
{ "extglob", &extended_glob, (shopt_set_func_t *)NULL },
#endif
{ "extquote", &extended_quote, (shopt_set_func_t *)NULL },
{ "failglob", &fail_glob_expansion, (shopt_set_func_t *)NULL },
#if defined (READLINE)
{ "force_fignore", &force_fignore, (shopt_set_func_t *)NULL },
{ "gnu_errfmt", &gnu_error_format, (shopt_set_func_t *)NULL },
{ "histreedit", &history_reediting, (shopt_set_func_t *)NULL },
#endif
#if defined (HISTORY)
{ "histappend", &force_append_history, (shopt_set_func_t *)NULL },
#endif
#if defined (READLINE)
{ "histverify", &hist_verify, (shopt_set_func_t *)NULL },
{ "hostcomplete", &perform_hostname_completion, enable_hostname_completion },
#endif
{ "huponexit", &hup_on_exit, (shopt_set_func_t *)NULL },
{ "interactive_comments", &interactive_comments, set_shellopts_after_change },
#if defined (HISTORY)
{ "lithist", &literal_history, (shopt_set_func_t *)NULL },
#endif
{ "login_shell", &shopt_login_shell, set_login_shell },
{ "mailwarn", &mail_warning, (shopt_set_func_t *)NULL },
#if defined (READLINE)
{ "no_empty_cmd_completion", &no_empty_command_completion, (shopt_set_func_t *)NULL },
#endif
{ "nocaseglob", &glob_ignore_case, (shopt_set_func_t *)NULL },
{ "nullglob", &allow_null_glob_expansion, (shopt_set_func_t *)NULL },
#if defined (PROGRAMMABLE_COMPLETION)
{ "progcomp", &prog_completion_enabled, (shopt_set_func_t *)NULL },
#endif
{ "promptvars", &promptvars, (shopt_set_func_t *)NULL },
#if defined (RESTRICTED_SHELL)
{ "restricted_shell", &restricted_shell, set_restricted_shell },
#endif
{ "shift_verbose", &print_shift_error, (shopt_set_func_t *)NULL },
{ "sourcepath", &source_uses_path, (shopt_set_func_t *)NULL },
{ "xpg_echo", &xpg_echo, (shopt_set_func_t *)NULL },
{ (char *)0, (int *)0, (shopt_set_func_t *)NULL }
};
static char *on = "on";
static char *off = "off";
static int find_shopt __P((char *));
static int toggle_shopts __P((int, WORD_LIST *, int));
static void print_shopt __P((char *, int, int));
static int list_shopts __P((WORD_LIST *, int));
static int list_some_shopts __P((int, int));
static int list_shopt_o_options __P((WORD_LIST *, int));
static int list_some_o_options __P((int, int));
static int set_shopt_o_options __P((int, WORD_LIST *, int));
#define SFLAG 0x01
#define UFLAG 0x02
#define QFLAG 0x04
#define OFLAG 0x08
#define PFLAG 0x10
int
shopt_builtin (list)
WORD_LIST *list;
{
int opt, flags, rval;
flags = 0;
reset_internal_getopt ();
while ((opt = internal_getopt (list, "psuoq")) != -1)
{
switch (opt)
{
case 's':
flags |= SFLAG;
break;
case 'u':
flags |= UFLAG;
break;
case 'q':
flags |= QFLAG;
break;
case 'o':
flags |= OFLAG;
break;
case 'p':
flags |= PFLAG;
break;
default:
builtin_usage ();
return (EX_USAGE);
}
}
list = loptend;
if ((flags & (SFLAG|UFLAG)) == (SFLAG|UFLAG))
{
builtin_error (_("cannot set and unset shell options simultaneously"));
return (EXECUTION_FAILURE);
}
rval = EXECUTION_SUCCESS;
if ((flags & OFLAG) && ((flags & (SFLAG|UFLAG)) == 0)) /* shopt -o */
rval = list_shopt_o_options (list, flags);
else if (list && (flags & OFLAG)) /* shopt -so args */
rval = set_shopt_o_options ((flags & SFLAG) ? FLAG_ON : FLAG_OFF, list, flags & QFLAG);
else if (flags & OFLAG) /* shopt -so */
rval = list_some_o_options ((flags & SFLAG) ? 1 : 0, flags);
else if (list && (flags & (SFLAG|UFLAG))) /* shopt -su args */
rval = toggle_shopts ((flags & SFLAG) ? SETOPT : UNSETOPT, list, flags & QFLAG);
else if ((flags & (SFLAG|UFLAG)) == 0) /* shopt [args] */
rval = list_shopts (list, flags);
else /* shopt -su */
rval = list_some_shopts ((flags & SFLAG) ? SETOPT : UNSETOPT, flags);
return (rval);
}
/* Reset the options managed by `shopt' to the values they would have at
shell startup. */
void
reset_shopt_options ()
{
allow_null_glob_expansion = glob_dot_filenames = 0;
cdable_vars = mail_warning = 0;
no_exit_on_failed_exec = print_shift_error = 0;
check_hashed_filenames = cdspelling = expand_aliases = check_window_size = 0;
source_uses_path = promptvars = 1;
#if defined (EXTENDED_GLOB)
extended_glob = 0;
#endif
#if defined (HISTORY)
literal_history = force_append_history = 0;
command_oriented_history = 1;
#endif
#if defined (READLINE)
hist_verify = history_reediting = 0;
perform_hostname_completion = 1;
#endif
shopt_login_shell = login_shell;
}
static int
find_shopt (name)
char *name;
{
int i;
for (i = 0; shopt_vars[i].name; i++)
if (STREQ (name, shopt_vars[i].name))
return i;
return -1;
}
static void
shopt_error (s)
char *s;
{
builtin_error (_("%s: invalid shell option name"), s);
}
static int
toggle_shopts (mode, list, quiet)
int mode;
WORD_LIST *list;
int quiet;
{
WORD_LIST *l;
int ind, rval;
for (l = list, rval = EXECUTION_SUCCESS; l; l = l->next)
{
ind = find_shopt (l->word->word);
if (ind < 0)
{
shopt_error (l->word->word);
rval = EXECUTION_FAILURE;
}
else
{
*shopt_vars[ind].value = mode; /* 1 for set, 0 for unset */
if (shopt_vars[ind].set_func)
(*shopt_vars[ind].set_func) (mode);
}
}
return (rval);
}
static void
print_shopt (name, val, flags)
char *name;
int val, flags;
{
if (flags & PFLAG)
printf ("shopt %s %s\n", val ? "-s" : "-u", name);
else
printf (OPTFMT, name, val ? on : off);
}
/* List the values of all or any of the `shopt' options. Returns 0 if
all were listed or all variables queried were on; 1 otherwise. */
static int
list_shopts (list, flags)
WORD_LIST *list;
int flags;
{
WORD_LIST *l;
int i, val, rval;
if (list == 0)
{
for (i = 0; shopt_vars[i].name; i++)
{
val = *shopt_vars[i].value;
if ((flags & QFLAG) == 0)
print_shopt (shopt_vars[i].name, val, flags);
}
return (EXECUTION_SUCCESS);
}
for (l = list, rval = EXECUTION_SUCCESS; l; l = l->next)
{
i = find_shopt (l->word->word);
if (i < 0)
{
shopt_error (l->word->word);
rval = EXECUTION_FAILURE;
continue;
}
val = *shopt_vars[i].value;
if (val == 0)
rval = EXECUTION_FAILURE;
if ((flags & QFLAG) == 0)
print_shopt (l->word->word, val, flags);
}
return (rval);
}
static int
list_some_shopts (mode, flags)
int mode, flags;
{
int val, i;
for (i = 0; shopt_vars[i].name; i++)
{
val = *shopt_vars[i].value;
if (((flags & QFLAG) == 0) && mode == val)
print_shopt (shopt_vars[i].name, val, flags);
}
return (EXECUTION_SUCCESS);
}
static int
list_shopt_o_options (list, flags)
WORD_LIST *list;
int flags;
{
WORD_LIST *l;
int val, rval;
if (list == 0)
{
if ((flags & QFLAG) == 0)
list_minus_o_opts (-1, (flags & PFLAG));
return (EXECUTION_SUCCESS);
}
for (l = list, rval = EXECUTION_SUCCESS; l; l = l->next)
{
val = minus_o_option_value (l->word->word);
if (val == -1)
{
sh_invalidoptname (l->word->word);
rval = EXECUTION_FAILURE;
continue;
}
if (val == 0)
rval = EXECUTION_FAILURE;
if ((flags & QFLAG) == 0)
{
if (flags & PFLAG)
printf ("set %co %s\n", val ? '-' : '+', l->word->word);
else
printf (OPTFMT, l->word->word, val ? on : off);
}
}
return (rval);
}
static int
list_some_o_options (mode, flags)
int mode, flags;
{
if ((flags & QFLAG) == 0)
list_minus_o_opts (mode, (flags & PFLAG));
return (EXECUTION_SUCCESS);
}
static int
set_shopt_o_options (mode, list, quiet)
int mode;
WORD_LIST *list;
int quiet;
{
WORD_LIST *l;
int rval;
for (l = list, rval = EXECUTION_SUCCESS; l; l = l->next)
{
if (set_minus_o_option (mode, l->word->word) == EXECUTION_FAILURE)
rval = EXECUTION_FAILURE;
}
set_shellopts ();
return rval;
}
/* If we set or unset interactive_comments with shopt, make sure the
change is reflected in $SHELLOPTS. */
static int
set_shellopts_after_change (mode)
int mode;
{
set_shellopts ();
return (0);
}
#if defined (RESTRICTED_SHELL)
/* Don't allow the value of restricted_shell to be modified. */
static int
set_restricted_shell (mode)
int mode;
{
static int save_restricted = -1;
if (save_restricted == -1)
save_restricted = shell_is_restricted (shell_name);
restricted_shell = save_restricted;
return (0);
}
#endif /* RESTRICTED_SHELL */
/* Not static so shell.c can call it to initialize shopt_login_shell */
int
set_login_shell (mode)
int mode;
{
shopt_login_shell = login_shell != 0;
return (0);
}
char **
get_shopt_options ()
{
char **ret;
int n, i;
n = sizeof (shopt_vars) / sizeof (shopt_vars[0]);
ret = strvec_create (n + 1);
for (i = 0; shopt_vars[i].name; i++)
ret[i] = savestring (shopt_vars[i].name);
ret[i] = (char *)NULL;
return ret;
}
/*
* External interface for other parts of the shell. NAME is a string option;
* MODE is 0 if we want to unset an option; 1 if we want to set an option.
* REUSABLE is 1 if we want to print output in a form that may be reused.
*/
int
shopt_setopt (name, mode)
char *name;
int mode;
{
WORD_LIST *wl;
int r;
wl = add_string_to_list (name, (WORD_LIST *)NULL);
r = toggle_shopts (mode, wl, 0);
dispose_words (wl);
return r;
}
int
shopt_listopt (name, reusable)
char *name;
int reusable;
{
int i;
if (name == 0)
return (list_shopts ((WORD_LIST *)NULL, reusable ? PFLAG : 0));
i = find_shopt (name);
if (i < 0)
{
shopt_error (name);
return (EXECUTION_FAILURE);
}
print_shopt (name, *shopt_vars[i].value, reusable ? PFLAG : 0);
return (EXECUTION_SUCCESS);
}
+530 -529
View File
File diff suppressed because it is too large Load Diff
+15 -9
View File
@@ -2,7 +2,7 @@
<TITLE>BASH(1) Manual Page</TITLE>
</HEAD>
<BODY><TABLE WIDTH=100%>
<TH ALIGN=LEFT>BASH(1)<TH ALIGN=CENTER>2004 Nov 22<TH ALIGN=RIGHT>BASH(1)
<TH ALIGN=LEFT>BASH(1)<TH ALIGN=CENTER>2004 Dec 1<TH ALIGN=RIGHT>BASH(1)
</TABLE>
<BR><A HREF="#index">Index</A>
<HR>
@@ -4313,14 +4313,17 @@ with the exception that the
<FONT SIZE=-1><B>DEBUG</B>
</FONT>
trap (see the description of the
and
<B>RETURN</B>
traps (see the description of the
<B>trap</B>
builtin under
<FONT SIZE=-1><B>SHELL BUILTIN COMMANDS</B>
</FONT>
below) is not inherited unless the function has been given the
below) are not inherited unless the function has been given the
<B>trace</B> attribute (see the description of the
<FONT SIZE=-1><B>declare</B>
@@ -4328,7 +4331,7 @@ below) is not inherited unless the function has been given the
builtin below) or the
<B>-o functrace</B> shell option has been enabled with
the <B>set</B> builtin
(in which case all functions inherit the <B>DEBUG</B> trap).
(in which case all functions inherit the <B>DEBUG</B> and <B>RETURN</B> traps).
<P>
Variables local to the function may be declared with the
@@ -8309,7 +8312,8 @@ by subsequent assignment statements or unset.
<DD>
Give each <I>name</I> the <I>trace</I> attribute.
Traced functions inherit the <B>DEBUG</B> trap from the calling shell.
Traced functions inherit the <B>DEBUG</B> and <B>RETURN</B> traps from
the calling shell.
The trace attribute has no special meaning for variables.
<DT><B>-x</B>
@@ -10005,9 +10009,11 @@ which change the current directory.
<DT><B>-T</B>
<DD>
If set, any trap on <B>DEBUG</B> is inherited by shell functions, command
substitutions, and commands executed in a subshell environment.
The <B>DEBUG</B> trap is normally not inherited in such cases.
If set, any traps on <B>DEBUG</B> and <B>RETURN</B> are inherited by shell
functions, command substitutions, and commands executed in a
subshell environment.
The <B>DEBUG</B> and <B>RETURN</B> traps are normally not inherited
in such cases.
<DT><B>--</B>
<DD>
@@ -11409,6 +11415,6 @@ Array variables may not (yet) be exported.
</DL>
<HR>
This document was created by man2html from bash.1.<BR>
Time: 24 November 2004 15:49:41 EST
Time: 07 December 2004 10:58:07 EST
</BODY>
</HTML>
+146 -174
View File
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.18.1
%%CreationDate: Wed Nov 24 15:49:23 2004
%%CreationDate: Tue Dec 7 10:57:57 2004
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%+ font Times-Italic
@@ -321,8 +321,8 @@ E F2(po)2.5 E F0(\(portable object\) \214le format.)2.5 E F2
144 686.4 Q .3 -.15(ve \()-.25 H(see).15 E F4(INV)2.5 E(OCA)-.405 E
(TION)-.855 E F0(belo)2.25 E(w\).)-.25 E F2(\255\255login)108 703.2 Q F0
(Equi)144 715.2 Q -.25(va)-.25 G(lent to).25 E F2<ad6c>2.5 E F0(.)A
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 202.965(21)-2.5 G 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(1)205.95 E 0 Cg EP
%%Page: 2 2
%%BeginPageSetup
BP
@@ -444,8 +444,8 @@ F(ariable)-.25 E F3 -.27(BA)108 679.2 S(SH_ENV).27 E F0 1.01(in the en)
108 727.2 S 2.5(tt).2 G(he v)-2.5 E(alue of the)-.25 E F3 -.666(PA)2.5 G
(TH)-.189 E F0 -.25(va)2.25 G
(riable is not used to search for the \214le name.).25 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 202.965(22)-2.5 G 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(2)205.95 E 0 Cg EP
%%Page: 3 3
%%BeginPageSetup
BP
@@ -570,8 +570,8 @@ F1(Pipelines)87 679.2 Q F0(A)108 691.2 Q F2(pipeline)2.919 E F0 .419
F F1(|)2.92 E F0 5.42(.T)C .42(he format for a pipeline)-5.42 F(is:)108
703.2 Q([)144 720 Q F1(time)A F0([)2.5 E F1<ad70>A F0(]] [ ! ])A F2
(command)2.5 E F0([)2.5 E F1(|)2.5 E F2(command2)2.5 E F0(... ])2.5 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 202.965(23)-2.5 G 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(3)205.95 E 0 Cg EP
%%Page: 4 4
%%BeginPageSetup
BP
@@ -691,8 +691,8 @@ A({)108 573.6 Q F1(list)2.5 E F0 2.5(;})C F1(list)3.89 E F0 .402
F(SIONS)144 727.2 Q F5(.)A F0 -.8(Wo)5.633 G 1.133
(rd splitting and pathname e).8 F 1.133
(xpansion are not performed on the w)-.15 F 1.133(ords between the)-.1 F
F3([[)3.632 E F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15
G(004 No)-123.385 E 2.5(v2)-.15 G 202.965(24)-2.5 G 0 Cg EP
F3([[)3.632 E F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G
(004 Dec 1)-126.37 E(4)205.95 E 0 Cg EP
%%Page: 5 5
%%BeginPageSetup
BP
@@ -831,8 +831,8 @@ F F2(name)144 727.2 Q F0 .759(to be set to null.)3.439 F .759
(The line read is sa)5.759 F -.15(ve)-.2 G 3.26(di).15 G 3.26(nt)-3.26 G
.76(he v)-3.26 F(ariable)-.25 E F1(REPL)3.26 E(Y)-.92 E F0 5.76(.T)C(he)
-5.76 E F2(list)3.35 E F0 .76(is e)3.94 F -.15(xe)-.15 G .76
(cuted after).15 F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2)
.15 G(004 No)-123.385 E 2.5(v2)-.15 G 202.965(25)-2.5 G 0 Cg EP
(cuted after).15 F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15
G(004 Dec 1)-126.37 E(5)205.95 E 0 Cg EP
%%Page: 6 6
%%BeginPageSetup
BP
@@ -967,8 +967,8 @@ E(xpansion.)-.15 E(There are three quoting mechanisms: the)108 708 Q F2
G(he)-2.974 E F2 .474(escape c)2.974 F(har)-.15 E(acter)-.15 E F0 5.474
(.I).73 G 2.974(tp)-5.474 G(reserv)-2.974 E .474(es the literal v)-.15 F
.474(alue of the ne)-.25 F .474(xt character that)-.15 F
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 202.965(26)-2.5 G 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(6)205.95 E 0 Cg EP
%%Page: 7 7
%%BeginPageSetup
BP
@@ -1090,8 +1090,7 @@ E F0(,)A F1(export)3.648 E F0(,)A F1 -.18(re)108 688.8 S(adonly).18 E F0
(ute has been set,)-.2 F F3(value)2.872 E F0 .372(is e)2.872 F -.25(va)
-.25 G .372(luated as an arithmetic e).25 F .373
(xpression and added to the)-.15 F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25
G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 202.965(27)-2.5 G 0
Cg EP
G 126.37(l2).15 G(004 Dec 1)-126.37 E(7)205.95 E 0 Cg EP
%%Page: 8 8
%%BeginPageSetup
BP
@@ -1216,8 +1215,7 @@ F1 -.3(BA)2.5 G(SH_ARGC).3 E F0(.)A F1 -.3(BA)108 696 S(SH_ARGV).3 E F0
-.15(xe)-.15 G 1.091(cution call stack.).15 F(The)6.091 E .275(\214nal \
parameter of the last subroutine call is at the top of the stack; the \
\214rst parameter of the initial)144 720 R(GNU Bash-3.1-de)72 768 Q -.15
(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 202.965(28)
-2.5 G 0 Cg EP
(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(8)205.95 E 0 Cg EP
%%Page: 9 9
%%BeginPageSetup
BP
@@ -1313,8 +1311,7 @@ F(in)144 661.2 Q -.2(vo)-.4 G -.1(ke).2 G 2.5(db).1 G 2.5(yt)-2.5 G
-.09 E F0 .626(is unset, it loses its special properties, e)2.875 F -.15
(ve)-.25 G 3.126(ni).15 G 3.126(fi)-3.126 G 3.126(ti)-3.126 G 3.126(ss)
-3.126 G(ubse-)-3.126 E(quently reset.)144 714 Q(GNU Bash-3.1-de)72 768
Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G
202.965(29)-2.5 G 0 Cg EP
Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(9)205.95 E 0 Cg EP
%%Page: 10 10
%%BeginPageSetup
BP
@@ -1406,8 +1403,8 @@ F1(getopts)4.127 E F0 -.2(bu)4.127 G 1.626(iltin command \(see).2 F F2
(xt ar)-.15 F 1.652(gument to be processed by the)-.18 F F1(getopts)
4.152 E F0 -.2(bu)4.152 G 1.652(iltin command \(see).2 F F2(SHELL)4.152
E -.09(BU)144 693.6 S(IL).09 E(TIN COMMANDS)-.828 E F0(belo)2.25 E(w\).)
-.25 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(21)-2.5 G(0)-197.965 E 0 Cg EP
-.25 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G
(004 Dec 1)-126.37 E(10)200.95 E 0 Cg EP
%%Page: 11 11
%%BeginPageSetup
BP
@@ -1502,8 +1499,7 @@ Q(CS)-.55 E F0(If)144 688.8 Q F1(bash)2.535 E F0 .035(\214nds this v)
F0 2.536(,i)C 2.536(ta)-2.536 G .036(ssumes that the)-2.536 F
(shell is running in an emacs shell b)144 700.8 Q(uf)-.2 E
(fer and disables line editing.)-.25 E(GNU Bash-3.1-de)72 768 Q -.15(ve)
-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(21)-2.5
G(1)-197.965 E 0 Cg EP
-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(11)200.95 E 0 Cg EP
%%Page: 12 12
%%BeginPageSetup
BP
@@ -1620,8 +1616,8 @@ R F1(history)3.173 E F0 -.2(bu)3.172 G 3.172(iltin. If).2 F .672(this v)
696 Q F0 2.236(attempts to read)4.736 F F5(/etc/hosts)6.401 E F0 2.235
(to obtain the list of possible hostname completions.)6.401 F(When)7.235
E F2(HOSTFILE)144 708 Q F0(is unset, the hostname list is cleared.)2.25
E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(21)-2.5 G(2)-197.965 E 0 Cg EP
E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(12)200.95 E 0 Cg EP
%%Page: 13 13
%%BeginPageSetup
BP
@@ -1723,8 +1719,8 @@ F F3 .359(SHELL B)144 612 R(UIL)-.09 E .359(TIN COMMANDS)-.828 F F0
-.1 F 26.329(administrator who installs)144 684 R F1(bash)28.829 E F0
31.329(.A)C 26.328(common v)-2.501 F 26.328(alue is)-.25 F/F4 10
/Courier@0 SF(/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin)144 696
Q F0(.)A(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G
(004 No)-123.385 E 2.5(v2)-.15 G 197.965(21)-2.5 G(3)-197.965 E 0 Cg EP
Q F0(.)A(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G
(004 Dec 1)-126.37 E(13)200.95 E 0 Cg EP
%%Page: 14 14
%%BeginPageSetup
BP
@@ -1841,8 +1837,8 @@ F F2(substring)3.125 E F0 3.125(,t).22 G .625
.833(job identi\214er \(see)5.833 F F4 .834(JOB CONTR)3.334 F(OL)-.27 E
F0(belo)3.084 E 3.334(w\). If)-.25 F .834(set to an)3.334 F 3.334(yo)
-.15 G .834(ther v)-3.334 F .834(alue, the supplied string)-.25 F
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(21)-2.5 G(4)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(14)200.95 E 0 Cg EP
%%Page: 15 15
%%BeginPageSetup
BP
@@ -1985,8 +1981,8 @@ E .471(The order of e)108 703.2 R .471(xpansions is: brace e)-.15 F .471
.47(ariable and arithmetic e)-3.221 F(xpansion)-.15 E
(and command substitution \(done in a left-to-right f)108 715.2 Q
(ashion\), w)-.1 E(ord splitting, and pathname e)-.1 E(xpansion.)-.15 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(21)-2.5 G(5)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(15)200.95 E 0 Cg EP
%%Page: 16 16
%%BeginPageSetup
BP
@@ -2117,9 +2113,8 @@ ith the corresponding element from the directory stack, as it w)108
(consist of a number without a leading `+' or `\255', `+' is assumed.)
108 712.8 Q(If the login name is in)108 729.6 Q -.25(va)-.4 G
(lid, or the tilde e).25 E(xpansion f)-.15 E(ails, the w)-.1 E
(ord is unchanged.)-.1 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385
(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(21)-2.5 G(6)-197.965 E
0 Cg EP
(ord is unchanged.)-.1 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(16)200.95 E 0 Cg EP
%%Page: 17 17
%%BeginPageSetup
BP
@@ -2250,9 +2245,8 @@ F0 .111(is tak)2.61 F .111(en relati)-.1 F .411 -.15(ve t)-.25 H 2.611
(id being confused with the :- e).2 F 3.141(xpansion. Substring)-.15 F
(inde)3.141 E .641(xing is zero-based unless the)-.15 F
(positional parameters are used, in which case the inde)144 712.8 Q
(xing starts at 1.)-.15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G
123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(21)-2.5 G(7)
-197.965 E 0 Cg EP
(xing starts at 1.)-.15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(17)200.95 E 0 Cg EP
%%Page: 18 18
%%BeginPageSetup
BP
@@ -2371,8 +2365,7 @@ F1(`)A(Bash)108 715.2 Q F0 .019(performs the e)2.519 F .019
(dard output of the command, with an)108 727.2 R 3.268(yt)-.15 G .768
(railing ne)-3.268 F .768(wlines deleted.)-.25 F .768(Embedded ne)5.768
F .768(wlines are not deleted, b)-.25 F(ut)-.2 E(GNU Bash-3.1-de)72 768
Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G
197.965(21)-2.5 G(8)-197.965 E 0 Cg EP
Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(18)200.95 E 0 Cg EP
%%Page: 19 19
%%BeginPageSetup
BP
@@ -2500,8 +2493,7 @@ F .765(ord is left unchanged.)-.1 F .765(If the)5.765 F F1(nullglob)
2.065(is printed and the command is not e)108 727.2 R -.15(xe)-.15 G
4.565(cuted. If).15 F 2.065(the shell option)4.565 F F1(nocaseglob)4.565
E F0 2.066(is enabled, the match is)4.566 F(GNU Bash-3.1-de)72 768 Q
-.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965
(21)-2.5 G(9)-197.965 E 0 Cg EP
-.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(19)200.95 E 0 Cg EP
%%Page: 20 20
%%BeginPageSetup
BP
@@ -2619,9 +2611,8 @@ F0(.)A(Composite patterns may be formed using one or more of the follo)
(Matches one or more occurrences of the gi)180 682.8 Q -.15(ve)-.25 G
2.5(np).15 G(atterns)-2.5 E F1(@\()144 694.8 Q F3(pattern-list).833 E F1
(\)).833 E F0(Matches one of the gi)180 706.8 Q -.15(ve)-.25 G 2.5(np)
.15 G(atterns)-2.5 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2)
.15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(22)-2.5 G(0)-197.965 E 0
Cg EP
.15 G(atterns)-2.5 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2)
.15 G(004 Dec 1)-126.37 E(20)200.95 E 0 Cg EP
%%Page: 21 21
%%BeginPageSetup
BP
@@ -2712,8 +2703,7 @@ hould be used with care, as the)108 626.4 R 3.447(ym)-.15 G .947
(is not speci\214ed.)2.74 E
(The general format for redirecting input is:)108 696 Q([)144 712.8 Q F2
(n)A F0(])A F1(<)A F2(wor)A(d)-.37 E F0(GNU Bash-3.1-de)72 768 Q -.15
(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(22)
-2.5 G(1)-197.965 E 0 Cg EP
(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(21)200.95 E 0 Cg EP
%%Page: 22 22
%%BeginPageSetup
BP
@@ -2803,8 +2793,8 @@ F0 .774(are quoted, the)4.044 F F2(delimiter)3.624 E F0 .774
(<<<)144 679.2 Q F2(wor)A(d)-.37 E F0(The)108 696 Q F2(wor)2.5 E(d)-.37
E F0(is e)2.5 E
(xpanded and supplied to the command on its standard input.)-.15 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(22)-2.5 G(2)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(22)200.95 E 0 Cg EP
%%Page: 23 23
%%BeginPageSetup
BP
@@ -2918,8 +2908,8 @@ E .436
(another command does not tak)108 727.2 R 3.662(ee)-.1 G -.25(ff)-3.662
G 1.162(ect until the ne).25 F 1.162(xt line of input is read.)-.15 F
1.162(The commands follo)6.162 F 1.162(wing the)-.25 F(GNU Bash-3.1-de)
72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G
197.965(22)-2.5 G(3)-197.965 E 0 Cg EP
72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(23)200.95 E
0 Cg EP
%%Page: 24 24
%%BeginPageSetup
BP
@@ -2966,24 +2956,25 @@ R F1(#)3.032 E F0 .532(is updated to re\215ect the change.)3.032 F .533
(other aspects of the shell e)108 261.6 R -.15(xe)-.15 G 1.285
(cution en).15 F 1.285
(vironment are identical between a function and its caller with the)-.4
F -.15(ex)108 273.6 S 1.961(ception that the).15 F F3(DEB)4.461 E(UG)
-.09 E F0 1.961(trap \(see the description of the)4.211 F F1(trap)4.46 E
F0 -.2(bu)4.46 G 1.96(iltin under).2 F F3 1.96(SHELL B)4.46 F(UIL)-.09 E
1.96(TIN COM-)-.828 F(MANDS)108 285.6 Q F0(belo)2.342 E .092
(w\) is not inherited unless the function has been gi)-.25 F -.15(ve)
-.25 G 2.592(nt).15 G(he)-2.592 E F1(trace)2.592 E F0(attrib)2.592 E
.092(ute \(see the description of)-.2 F(the)108 297.6 Q F3(declar)3.116
E(e)-.162 E F0 -.2(bu)2.866 G .616(iltin belo).2 F .616(w\) or the)-.25
F F1 .616(\255o functrace)3.116 F F0 .616
(shell option has been enabled with the)3.116 F F1(set)3.115 E F0 -.2
(bu)3.115 G .615(iltin \(in which).2 F(case all functions inherit the)
108 309.6 Q F1(DEB)2.5 E(UG)-.1 E F0(trap\).)2.5 E -1.11(Va)108 326.4 S
.655(riables local to the function may be declared with the)1.11 F F1
(local)3.155 E F0 -.2(bu)3.156 G .656(iltin command.).2 F(Ordinarily)
5.656 E 3.156(,v)-.65 G .656(ariables and)-3.406 F(their v)108 338.4 Q
(alues are shared between the function and its caller)-.25 E(.)-.55 E
.044(If the b)108 355.2 R .043(uiltin command)-.2 F F1 -.18(re)2.543 G
(tur).18 E(n)-.15 E F0 .043(is e)2.543 F -.15(xe)-.15 G .043
F -.15(ex)108 273.6 S 2.03(ception that the).15 F F3(DEB)4.53 E(UG)-.09
E F0(and)4.28 E F1(RETURN)4.53 E F0 2.029
(traps \(see the description of the)4.53 F F1(trap)4.529 E F0 -.2(bu)
4.529 G 2.029(iltin under).2 F F3(SHELL)4.529 E -.09(BU)108 285.6 S(IL)
.09 E .478(TIN COMMANDS)-.828 F F0(belo)2.728 E .479
(w\) are not inherited unless the function has been gi)-.25 F -.15(ve)
-.25 G 2.979(nt).15 G(he)-2.979 E F1(trace)2.979 E F0(attrib)2.979 E
.479(ute \(see)-.2 F .421(the description of the)108 297.6 R F3(declar)
2.92 E(e)-.162 E F0 -.2(bu)2.67 G .42(iltin belo).2 F .42(w\) or the)
-.25 F F1 .42(\255o functrace)2.92 F F0 .42
(shell option has been enabled with the)2.92 F F1(set)2.92 E F0 -.2(bu)
108 309.6 S(iltin \(in which case all functions inherit the).2 E F1(DEB)
2.5 E(UG)-.1 E F0(and)2.5 E F1(RETURN)2.5 E F0(traps\).)2.5 E -1.11(Va)
108 326.4 S .655(riables local to the function may be declared with the)
1.11 F F1(local)3.155 E F0 -.2(bu)3.156 G .656(iltin command.).2 F
(Ordinarily)5.656 E 3.156(,v)-.65 G .656(ariables and)-3.406 F(their v)
108 338.4 Q(alues are shared between the function and its caller)-.25 E
(.)-.55 E .044(If the b)108 355.2 R .043(uiltin command)-.2 F F1 -.18
(re)2.543 G(tur).18 E(n)-.15 E F0 .043(is e)2.543 F -.15(xe)-.15 G .043
(cuted in a function, the function completes and e).15 F -.15(xe)-.15 G
.043(cution resumes with).15 F 1.011(the ne)108 367.2 R 1.011
(xt command after the function call.)-.15 F(An)6.011 E 3.511(yc)-.15 G
@@ -3040,9 +3031,8 @@ F .206(gers with no)-.15 F .429(check for o)108 537.6 R -.15(ve)-.15 G
(multiplication, di)10.72 E(vision, remainder)-.25 E F1 2.5<2bad>108
674.4 S F0(addition, subtraction)19.6 E F1(<< >>)108 686.4 Q F0
(left and right bitwise shifts)10.7 E F1(<= >= < >)108 698.4 Q F0
(comparison)144 710.4 Q(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385
(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(22)-2.5 G(4)-197.965 E
0 Cg EP
(comparison)144 710.4 Q(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(24)200.95 E 0 Cg EP
%%Page: 25 25
%%BeginPageSetup
BP
@@ -3147,8 +3137,7 @@ F2(\214le)2.5 E F0 -.35(Tr)10.02 G(ue if).35 E F2(\214le)2.5 E F0 -.15
(ex)2.5 G(ists and its set-user).15 E(-id bit is set.)-.2 E F1<ad77>108
708 Q F2(\214le)2.5 E F0 -.35(Tr)8.36 G(ue if).35 E F2(\214le)2.5 E F0
-.15(ex)2.5 G(ists and is writable.).15 E(GNU Bash-3.1-de)72 768 Q -.15
(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(22)
-2.5 G(5)-197.965 E 0 Cg EP
(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(25)200.95 E 0 Cg EP
%%Page: 26 26
%%BeginPageSetup
BP
@@ -3249,8 +3238,7 @@ R(an)3.176 E 3.176(yo)-.15 G 3.176(ft)-3.176 G .677
.149(ut do not af)-.2 F .149(fect the current shell en)-.25 F 2.649
(vironment. A)-.4 F(redirection error causes the command to e)108 729.6
Q(xit with a non-zero status.)-.15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)
-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(22)-2.5
G(6)-197.965 E 0 Cg EP
-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(26)200.95 E 0 Cg EP
%%Page: 27 27
%%BeginPageSetup
BP
@@ -3361,9 +3349,8 @@ F4($PPID)2.5 E F0 .426(When a simple command other than a b)108 686.4 R
-2.927 G(eparate)-2.927 E -.15(exe)108 698.4 S .134(cution en).15 F .134
(vironment that consists of the follo)-.4 F 2.634(wing. Unless)-.25 F
.133(otherwise noted, the v)2.634 F .133(alues are inherited from)-.25 F
(the shell.)108 710.4 Q(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385
(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(22)-2.5 G(7)-197.965 E
0 Cg EP
(the shell.)108 710.4 Q(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(27)200.95 E 0 Cg EP
%%Page: 28 28
%%BeginPageSetup
BP
@@ -3480,8 +3467,8 @@ F0 .202(itself returns the e)2.702 F .202
(cuted, unless a syntax error occurs, in which case).15 F(it e)108 705.6
Q(xits with a non-zero v)-.15 E 2.5(alue. See)-.25 F(also the)2.5 E F1
(exit)2.5 E F0 -.2(bu)2.5 G(iltin command belo).2 E -.65(w.)-.25 G
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(22)-2.5 G(8)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(28)200.95 E 0 Cg EP
%%Page: 29 29
%%BeginPageSetup
BP
@@ -3618,8 +3605,8 @@ E F0 .277(refers to a stopped)2.777 F F2(ce)2.777 E F0(job)2.777 E 5.277
724.8 R F2(bash)2.88 E F0 .38(reports an error)2.88 F 5.38(.U)-.55 G
(sing)-5.38 E F2(%?ce)2.88 E F0 2.88(,o)C 2.88(nt)-2.88 G .38
(he other hand, refers to an)-2.88 F 2.88(yj)-.15 G(ob)-2.88 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(22)-2.5 G(9)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(29)200.95 E 0 Cg EP
%%Page: 30 30
%%BeginPageSetup
BP
@@ -3723,8 +3710,8 @@ uld be used to embed a terminal)-.15 F(control sequence into the prompt)
(end a sequence of non-printing characters)29.89 E .119
(The command number and the history number are usually dif)108 720 R .12
(ferent: the history number of a command is its)-.25 F(GNU Bash-3.1-de)
72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G
197.965(23)-2.5 G(0)-197.965 E 0 Cg EP
72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(30)200.95 E
0 Cg EP
%%Page: 31 31
%%BeginPageSetup
BP
@@ -3854,8 +3841,8 @@ F0(,).72 E F4(SP)2.5 E -.3(AC)-.9 G(E).3 E F0 2.5(,a).73 G(nd)-2.5 E F4
E F4(macr)4.042 E(o)-.45 E F0(,)A F4 -.1(ke)4.042 G(yname)-.2 E F0 1.542
(is the name of a k)4.222 F 1.841 -.15(ey s)-.1 H 1.541(pelled out in)
.15 F 2.5(English. F)108 717.6 R(or e)-.15 E(xample:)-.15 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(23)-2.5 G(1)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(31)200.95 E 0 Cg EP
%%Page: 32 32
%%BeginPageSetup
BP
@@ -3943,8 +3930,8 @@ F0 .01(Controls what happens when readline w)144 700.8 R .011
F0 3.44(,r)C .94(eadline uses a visible bell if one is a)-3.44 F -.25
(va)-.2 G 3.44(ilable. If).25 F .94(set to)3.44 F F2(audible)3.44 E F0
(,)A(readline attempts to ring the terminal')144 724.8 Q 2.5(sb)-.55 G
(ell.)-2.5 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G
(004 No)-123.385 E 2.5(v2)-.15 G 197.965(23)-2.5 G(2)-197.965 E 0 Cg EP
(ell.)-2.5 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G
(004 Dec 1)-126.37 E(32)200.95 E 0 Cg EP
%%Page: 33 33
%%BeginPageSetup
BP
@@ -4042,8 +4029,8 @@ E(ault k)-.1 E -.15(ey)-.1 G(map.).15 E F1(mark\255dir)108 672 Q
.15 E F1(mark\255modi\214ed\255lines \(Off\))108 696 Q F0(If set to)144
708 Q F1(On)2.5 E F0 2.5(,h)C(istory lines that ha)-2.5 E .3 -.15(ve b)
-.2 H(een modi\214ed are displayed with a preceding asterisk \().15 E F1
(*)A F0(\).)A(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G
(004 No)-123.385 E 2.5(v2)-.15 G 197.965(23)-2.5 G(3)-197.965 E 0 Cg EP
(*)A F0(\).)A(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G
(004 Dec 1)-126.37 E(33)200.95 E 0 Cg EP
%%Page: 34 34
%%BeginPageSetup
BP
@@ -4142,8 +4129,8 @@ Q F1(application)3.003 E F0 .503
(ey s)-.1 H .397(equence that quotes the).15 F(current or pre)180 684 Q
(vious w)-.25 E(ord in Bash:)-.1 E F1($if)180 708 Q F0(Bash)2.5 E 2.5
(#Q)180 720 S(uote the current or pre)-2.5 E(vious w)-.25 E(ord)-.1 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(23)-2.5 G(4)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(34)200.95 E 0 Cg EP
%%Page: 35 35
%%BeginPageSetup
BP
@@ -4234,8 +4221,7 @@ Q .822 -.15(ve f)-.15 H(orw).15 E .522(ard to the end of the ne)-.1 F
(ack to the start of the current or pre).15 F 1.41(vious w)-.25 F 3.91
(ord. W)-.1 F 1.41(ords are composed of alphanumeric)-.8 F
(characters \(letters and digits\).)144 696 Q(GNU Bash-3.1-de)72 768 Q
-.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965
(23)-2.5 G(5)-197.965 E 0 Cg EP
-.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(35)200.95 E 0 Cg EP
%%Page: 36 36
%%BeginPageSetup
BP
@@ -4332,8 +4318,8 @@ E(g)-.1 E F0(mo)3.236 E -.15(ve)-.15 G .728
(See)5.939 E F2(HIST)3.439 E(OR)-.162 E 3.189(YE)-.315 G(XP)-3.189 E
(ANSION)-.666 E F0(belo)3.189 E 3.439(wf)-.25 G .939(or a descrip-)
-3.439 F(tion of history e)144 724.8 Q(xpansion.)-.15 E(GNU Bash-3.1-de)
72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G
197.965(23)-2.5 G(6)-197.965 E 0 Cg EP
72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(36)200.95 E
0 Cg EP
%%Page: 37 37
%%BeginPageSetup
BP
@@ -4436,8 +4422,8 @@ F(ferently)-.25 E 6.894(.E)-.65 G 1.894(ach call to)-6.894 F F4 -.37(re)
(mode. In)144 724.8 R -.15(ove)3.968 G 1.468
(rwrite mode, characters bound to).15 F F1(self\255insert)3.969 E F0
1.469(replace the te)3.969 F 1.469(xt at point rather than)-.15 F
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(23)-2.5 G(7)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(37)200.95 E 0 Cg EP
%%Page: 38 38
%%BeginPageSetup
BP
@@ -4521,9 +4507,8 @@ F0(or)2.5 E F1(yank\255pop)2.5 E F0(.)A F1(Numeric Ar)87 549.6 Q
(cuting this function the \214rst time mak).15 F .378(es the ar)-.1 F
.378(gument count)-.18 F(four)144 681.6 Q 2.5(,as)-.4 G(econd time mak)
-2.5 E(es the ar)-.1 E(gument count sixteen, and so on.)-.18 E F1
(Completing)87 698.4 Q F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G
123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(23)-2.5 G(8)
-197.965 E 0 Cg EP
(Completing)87 698.4 Q F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(38)200.95 E 0 Cg EP
%%Page: 39 39
%%BeginPageSetup
BP
@@ -4615,9 +4600,8 @@ in braces so)144 648 R(the list is a)144 660 Q -.25(va)-.2 G
E(start\255kbd\255macr)108 688.8 Q 2.5(o\()-.18 G(C\255x \()-2.5 E(\))
.833 E F0(Be)144 700.8 Q(gin sa)-.15 E
(ving the characters typed into the current k)-.2 E -.15(ey)-.1 G
(board macro.).15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2)
.15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(23)-2.5 G(9)-197.965 E 0
Cg EP
(board macro.).15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2)
.15 G(004 Dec 1)-126.37 E(39)200.95 E 0 Cg EP
%%Page: 40 40
%%BeginPageSetup
BP
@@ -4716,8 +4700,7 @@ F .872(the line is redra)144 712.8 R 3.372(wn. If)-.15 F 3.372(an)3.372
G .872(umeric ar)-3.372 F .872
(gument is supplied, an asterisk is appended before pathname)-.18 F -.15
(ex)144 724.8 S(pansion.).15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G
123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(24)-2.5 G(0)
-197.965 E 0 Cg EP
126.37(l2).15 G(004 Dec 1)-126.37 E(40)200.95 E 0 Cg EP
%%Page: 41 41
%%BeginPageSetup
BP
@@ -4841,8 +4824,7 @@ F1<ad43>2.581 E F0 .081(option is in)2.581 F -.2(vo)-.4 G -.1(ke).2 G
.377(After all of the possible completions are generated, an)108 720 R
2.877<798c>-.15 G .377(lter speci\214ed with the)-2.877 F F1<ad58>2.876
E F0 .376(option is applied to the)2.876 F(GNU Bash-3.1-de)72 768 Q -.15
(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(24)
-2.5 G(1)-197.965 E 0 Cg EP
(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(41)200.95 E 0 Cg EP
%%Page: 42 42
%%BeginPageSetup
BP
@@ -4987,9 +4969,8 @@ H .374(he command with embedded ne).15 F .373
2.014(can be disabled using the)108 720 R F1(+H)4.514 E F0 2.014
(option to the)4.514 F F1(set)4.514 E F0 -.2(bu)4.514 G 2.014
(iltin command \(see).2 F F4 2.013(SHELL B)4.513 F(UIL)-.09 E 2.013
(TIN COMMANDS)-.828 F F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385
(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(24)-2.5 G(2)-197.965 E
0 Cg EP
(TIN COMMANDS)-.828 F F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(42)200.95 E 0 Cg EP
%%Page: 43 43
%%BeginPageSetup
BP
@@ -5108,8 +5089,8 @@ F2 2.5(0\()108 667.2 S(zer)-2.5 E(o\))-.18 E F0(The zeroth w)144 679.2 Q
F1(n)108.36 691.2 Q F0(The)30.64 E F1(n)2.5 E F0(th w)A(ord.)-.1 E F2(^)
108 703.2 Q F0(The \214rst ar)32.67 E 2.5(gument. That)-.18 F(is, w)2.5
E(ord 1.)-.1 E F2($)108 715.2 Q F0(The last ar)31 E(gument.)-.18 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(24)-2.5 G(3)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(43)200.95 E 0 Cg EP
%%Page: 44 44
%%BeginPageSetup
BP
@@ -5235,8 +5216,7 @@ F 1.313(plied, the name and v)144 730.8 R 1.314
(alue of the alias is printed.)-.25 F F1(Alias)6.314 E F0 1.314
(returns true unless a)3.814 F F2(name)3.814 E F0 1.314(is gi)3.814 F
-.15(ve)-.25 G 3.814(nf).15 G(or)-3.814 E(GNU Bash-3.1-de)72 768 Q -.15
(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(24)
-2.5 G(4)-197.965 E 0 Cg EP
(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(44)200.95 E 0 Cg EP
%%Page: 45 45
%%BeginPageSetup
BP
@@ -5350,8 +5330,8 @@ R F2(dir)2.71 E F0 5.21(.T)C .21(he v)-5.21 F(ariable)-.25 E/F4 9
(de\214nes the search path for the directory containing)144 724.8 R F2
(dir)3.276 E F0 5.776(.A).73 G(lternati)-5.776 E 1.076 -.15(ve d)-.25 H
.776(irectory names in).15 F F4(CDP)3.276 E -.855(AT)-.666 G(H).855 E F0
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(24)-2.5 G(5)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(45)200.95 E 0 Cg EP
%%Page: 46 46
%%BeginPageSetup
BP
@@ -5482,8 +5462,8 @@ F2<ad53>3.223 E F0 .722
(options\) should be quoted to protect them from e)3.223 F(xpan-)-.15 E
(sion before the)144 715.2 Q F2(complete)2.5 E F0 -.2(bu)2.5 G
(iltin is in).2 E -.2(vo)-.4 G -.1(ke).2 G(d.).1 E(GNU Bash-3.1-de)72
768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G
197.965(24)-2.5 G(6)-197.965 E 0 Cg EP
768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(46)200.95 E 0
Cg EP
%%Page: 47 47
%%BeginPageSetup
BP
@@ -5554,8 +5534,8 @@ F0(option to the)2.5 E F1(set)2.5 E F0 -.2(bu)2.5 G(iltin.).2 E F1
(May also be speci\214ed as)5 E F1<ad75>2.5 E F0(.)A F1 -.1(va)184 708 S
(riable).1 E F0(Names of all shell v)5.1 E 2.5(ariables. May)-.25 F
(also be speci\214ed as)2.5 E F1<ad76>2.5 E F0(.)A(GNU Bash-3.1-de)72
768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G
197.965(24)-2.5 G(7)-197.965 E 0 Cg EP
768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(47)200.95 E 0
Cg EP
%%Page: 48 48
%%BeginPageSetup
BP
@@ -5655,15 +5635,16 @@ n is de\214ned are displayed as well.)144 542.4 R(The)6.308 E F1<ad46>
25.86 E(e)-.1 E F2(name)5.046 E F0 5.046(sr)C(eadonly)-5.046 E 7.546(.T)
-.65 G 2.546(hese names cannot then be assigned v)-7.546 F 2.547
(alues by subsequent)-.25 F(assignment statements or unset.)180 638.4 Q
F1<ad74>144 650.4 Q F0(Gi)26.97 E 1.231 -.15(ve e)-.25 H(ach).15 E F2
(name)3.431 E F0(the)3.431 E F2(tr)3.431 E(ace)-.15 E F0(attrib)3.431 E
3.431(ute. T)-.2 F .931(raced functions inherit the)-.35 F F1(DEB)3.431
E(UG)-.1 E F0 .93(trap from the)3.43 F(calling shell.)180 662.4 Q
(The trace attrib)5 E(ute has no special meaning for v)-.2 E(ariables.)
-.25 E F1<ad78>144 674.4 Q F0(Mark)25.3 E F2(name)2.5 E F0 2.5(sf)C
(or e)-2.5 E(xport to subsequent commands via the en)-.15 E(vironment.)
-.4 E .336(Using `+' instead of `\255' turns of)144 691.2 R 2.837(ft)
-.25 G .337(he attrib)-2.837 F .337(ute instead, with the e)-.2 F .337
F1<ad74>144 650.4 Q F0(Gi)26.97 E .73 -.15(ve e)-.25 H(ach).15 E F2
(name)2.93 E F0(the)2.929 E F2(tr)2.929 E(ace)-.15 E F0(attrib)2.929 E
2.929(ute. T)-.2 F .429(raced functions inherit the)-.35 F F1(DEB)2.929
E(UG)-.1 E F0(and)2.929 E F1(RETURN)2.929 E F0
(traps from the calling shell.)180 662.4 Q(The trace attrib)5 E
(ute has no special meaning for v)-.2 E(ariables.)-.25 E F1<ad78>144
674.4 Q F0(Mark)25.3 E F2(name)2.5 E F0 2.5(sf)C(or e)-2.5 E
(xport to subsequent commands via the en)-.15 E(vironment.)-.4 E .336
(Using `+' instead of `\255' turns of)144 691.2 R 2.837(ft)-.25 G .337
(he attrib)-2.837 F .337(ute instead, with the e)-.2 F .337
(xception that)-.15 F F1(+a)2.837 E F0 .337(may not be used)2.837 F .793
(to destro)144 703.2 R 3.293(ya)-.1 G 3.293(na)-3.293 G .793(rray v)
-3.293 F 3.293(ariable. When)-.25 F .793(used in a function, mak)3.293 F
@@ -5675,8 +5656,8 @@ E(UG)-.1 E F0 .93(trap from the)3.43 F(calling shell.)180 662.4 Q
.801(return v)144 727.2 R .801(alue is 0 unless an in)-.25 F -.25(va)-.4
G .8
(lid option is encountered, an attempt is made to de\214ne a function)
.25 F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(24)-2.5 G(8)-197.965 E 0 Cg EP
.25 F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(48)200.95 E 0 Cg EP
%%Page: 49 49
%%BeginPageSetup
BP
@@ -5787,9 +5768,8 @@ F3(\214lename)2.5 E F0 2.5(][)C F3(name)-2.5 E F0(...])2.5 E .277
(ws a disk command which has)-.25 F .834(the same name as a shell b)144
720 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(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385
(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(24)-2.5 G(9)-197.965 E
0 Cg EP
(nt).15 G(hough)-3.333 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(49)200.95 E 0 Cg EP
%%Page: 50 50
%%BeginPageSetup
BP
@@ -5932,8 +5912,7 @@ F0 -.25(va)2.881 G .631(riable is used, and the v).25 F .631(alue of)
(ariable is set,)-.25 F F2(vi)5.116 E F0 .95(is used.)5.116 F .951
(When editing is complete, the edited commands are echoed and)5.95 F
-.15(exe)144 708 S(cuted.).15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G
123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(25)-2.5 G(0)
-197.965 E 0 Cg EP
126.37(l2).15 G(004 Dec 1)-126.37 E(50)200.95 E 0 Cg EP
%%Page: 51 51
%%BeginPageSetup
BP
@@ -6061,8 +6040,8 @@ F3<ad72>2.952 E F0 .452(option causes the shell to for)2.952 F .453
(If the)144 722.4 R F3<ad74>4.206 E F0 1.706
(option is supplied, the full pathname to which each)4.206 F F1(name)
4.206 E F0 1.707(corresponds is printed.)4.207 F(If)6.707 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(25)-2.5 G(1)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(51)200.95 E 0 Cg EP
%%Page: 52 52
%%BeginPageSetup
BP
@@ -6172,9 +6151,8 @@ E F1(jobspec)4.24 E F0(is supplied.)2.81 E 2.067(If the)144 724.8 R F2
<ad78>4.567 E F0 2.067(option is supplied,)4.567 F F2(jobs)4.567 E F0
2.067(replaces an)4.567 F(y)-.15 E F1(jobspec)6.307 E F0 2.067(found in)
4.877 F F1(command)4.767 E F0(or)5.337 E F1(ar)4.897 E(gs)-.37 E F0
2.066(with the)4.836 F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385
(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(25)-2.5 G(2)-197.965 E
0 Cg EP
2.066(with the)4.836 F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(52)200.95 E 0 Cg EP
%%Page: 53 53
%%BeginPageSetup
BP
@@ -6301,8 +6279,8 @@ F0 .033(than are supplied, the e)2.534 F .033
.15 G 2.533(faz)-2.533 G .033(ero v)-2.533 F .033(alue or null string,)
-.25 F(as appropriate, had been supplied.)144 693.6 Q(The return v)5 E
(alue is zero on success, non-zero on f)-.25 E(ailure.)-.1 E
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(25)-2.5 G(3)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(53)200.95 E 0 Cg EP
%%Page: 54 54
%%BeginPageSetup
BP
@@ -6419,9 +6397,8 @@ F4(.)A .335(If no)144 727.2 R F5(names)3.095 E F4(ar)2.895 E 2.835(es)
-.18 G .335(upplied, the line r)-2.835 F .336
(ead is assigned to the variable)-.18 F/F6 9/Palatino-Bold@0 SF(REPL)
2.836 E(Y)-.828 E/F7 9/Palatino-Roman@0 SF(.)A F4 .336(The r)4.836 F
.336(eturn code)-.18 F F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G
123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(25)-2.5 G(4)
-197.965 E 0 Cg EP
.336(eturn code)-.18 F F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37
(l2).15 G(004 Dec 1)-126.37 E(54)200.95 E 0 Cg EP
%%Page: 55 55
%%BeginPageSetup
BP
@@ -6535,8 +6512,8 @@ F1(or)3.196 E F2(until)3.196 E F1(keywor)3.196 E .696
-.18 E F2<ad6f>144 662.4 Q F3(option\255name)2.5 E F1(The)184 674.4 Q F3
(option\255name)2.5 E F1(can be one of the following:)2.5 E F2
(allexport)184 686.4 Q F1(Same as)224 698.4 Q F2<ad61>2.5 E F1(.)A F0
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(25)-2.5 G(5)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(55)200.95 E 0 Cg EP
%%Page: 56 56
%%BeginPageSetup
BP
@@ -6610,8 +6587,8 @@ F F1<ad70>3.185 E F2 .684(option is supplied at startup, the ef)3.185 F
(fective)-.18 E .752(user id is not r)184 726 R 3.252(eset. T)-.18 F
.752(urning this option of)-.9 F 3.252(fc)-.18 G .752(auses the ef)
-3.252 F .753(fective user and gr)-.18 F(oup)-.18 E F0(GNU Bash-3.1-de)
72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G
197.965(25)-2.5 G(6)-197.965 E 0 Cg EP
72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(56)200.95 E
0 Cg EP
%%Page: 57 57
%%BeginPageSetup
BP
@@ -6660,13 +6637,13 @@ E F1 1.069(that change the curr)3.569 F 1.069(ent working dir)-.18 F
2.912(ei)-.18 G 2.912(nstead. By)-2.912 F(default,)2.912 E F2(bash)2.912
E F1 .412(follows the logical chain of dir)2.912 F .411(ectories when)
-.18 F(performing commands which change the curr)184 348 Q(ent dir)-.18
E(ectory)-.18 E(.)-1.11 E F2<ad54>144 360 Q F1 1.25(If set, any trap on)
27.27 F F2(DEBUG)3.751 E F1 1.251
(is inherited by shell functions, command substitu-)3.751 F .712
(tions, and commands executed in a subshell envir)184 372 R 3.212
(onment. The)-.18 F F2(DEBUG)3.212 E F1 .711(trap is)3.211 F
(normally not inherited in such cases.)184 384 Q F2<adad>144 396 Q F1
1.781(If no ar)27.88 F 1.782
E(ectory)-.18 E(.)-1.11 E F2<ad54>144 360 Q F1 .22(If set, any traps on)
27.27 F F2(DEBUG)2.72 E F1(and)2.72 E F2(RETURN)2.72 E F1(ar)2.72 E 2.72
(ei)-.18 G .22(nherited by shell functions, com-)-2.72 F 1.573
(mand substitutions, and commands executed in a subshell envir)184 372 R
4.073(onment. The)-.18 F F2(DEBUG)184 384 Q F1(and)2.5 E F2(RETURN)2.5 E
F1(traps ar)2.5 E 2.5(en)-.18 G(ormally not inherited in such cases.)
-2.5 E F2<adad>144 396 Q F1 1.781(If no ar)27.88 F 1.782
(guments follow this option, then the positional parameters ar)-.18 F
4.282(eu)-.18 G(nset.)-4.282 E 1.303
(Otherwise, the positional parameters ar)184 408 R 3.803(es)-.18 G 1.303
@@ -6727,8 +6704,7 @@ F1(Disable \(unset\) each)23.83 E F3(optname)2.5 E F1(.)A F2<ad71>144
(re)180 710.4 S(turn status is zer).18 E 2.5(oi)-.18 G 2.5(fa)-2.5 G(ll)
-2.5 E F3(optnames)2.5 E F1(ar)2.5 E 2.5(ee)-.18 G(nabled; non-zer)-2.5
E 2.5(oo)-.18 G(therwise.)-2.5 E F0(GNU Bash-3.1-de)72 768 Q -.15(ve)
-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(25)-2.5
G(7)-197.965 E 0 Cg EP
-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(57)200.95 E 0 Cg EP
%%Page: 58 58
%%BeginPageSetup
BP
@@ -6816,8 +6792,7 @@ Q F2(ar)2.5 E 2.5(ee)-.18 G(nabled.)-2.5 E F1(extquote)144 680.4 Q F2
(uoting is performed within)-2.643 F F1(${)2.643 E F3(parameter)A F1(})A
F2(expansions)2.643 E(enclosed in double quotes.)184 704.4 Q
(This option is enabled by default.)5 E F0(GNU Bash-3.1-de)72 768 Q -.15
(ve)-.25 G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(25)
-2.5 G(8)-197.965 E 0 Cg EP
(ve)-.25 G 126.37(l2).15 G(004 Dec 1)-126.37 E(58)200.95 E 0 Cg EP
%%Page: 59 59
%%BeginPageSetup
BP
@@ -6896,8 +6871,8 @@ F1(progcomp)144 684 Q F2 1.198(If set, the pr)184 696 R 1.199
(ogrammable completion facilities \(see)-.18 F F1 1.199
(Programmable Completion)3.699 F F2(above\) ar)184 708 Q 2.5(ee)-.18 G
2.5(nabled. This)-2.5 F(option is enabled by default.)2.5 E F0
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(25)-2.5 G(9)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(59)200.95 E 0 Cg EP
%%Page: 60 60
%%BeginPageSetup
BP
@@ -6989,8 +6964,7 @@ F .107(gument test using the second and)-.18 F(thir)180 712.8 Q 4.633
.18 F(exactly)180 724.8 Q F1(\))2.925 E F2 2.925(,t)C .426(he r)-2.925 F
.426(esult is the one-ar)-.18 F .426(gument test of the second ar)-.18 F
2.926(gument. Otherwise,)-.18 F F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25
G 123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(26)-2.5 G(0)
-197.965 E 0 Cg EP
G 126.37(l2).15 G(004 Dec 1)-126.37 E(60)200.95 E 0 Cg EP
%%Page: 61 61
%%BeginPageSetup
BP
@@ -7128,8 +7102,8 @@ E F1 2.515(,e)C .015(ven if)-2.515 F F7 .015(type -t)2.515 F(name)144
7.058 E F1 -.18(re)4.558 G 2.058(turns tr).18 F 2.057
(ue if any of the ar)-.08 F 2.057(guments ar)-.18 F 4.557(ef)-.18 G
2.057(ound, false if none ar)-4.557 F(e)-.18 E(found.)144 698.4 Q F0
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(26)-2.5 G(1)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(61)200.95 E 0 Cg EP
%%Page: 62 62
%%BeginPageSetup
BP
@@ -7250,8 +7224,7 @@ E F1(wait)108 684 Q F2([)2.5 E F3 2.5(n.)C(..)-2.5 E F2(])A -.92(Wa)144
(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 F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G
123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(26)-2.5 G(2)
-197.965 E 0 Cg EP
126.37(l2).15 G(004 Dec 1)-126.37 E(62)200.95 E 0 Cg EP
%%Page: 63 63
%%BeginPageSetup
BP
@@ -7330,8 +7303,7 @@ Q F2(~/.bashr)109.666 650.4 Q(c)-.18 E F1(The individual per)144 662.4 Q
ogin shell exits)144 686.4 Q F2(~/.inputr)109.666 698.4 Q(c)-.18 E F1
(Individual)144 710.4 Q F2 -.18(re)2.5 G(adline).18 E F1
(initialization \214le)2.5 E F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G
123.385(l2).15 G(004 No)-123.385 E 2.5(v2)-.15 G 197.965(26)-2.5 G(3)
-197.965 E 0 Cg EP
126.37(l2).15 G(004 Dec 1)-126.37 E(63)200.95 E 0 Cg EP
%%Page: 64 64
%%BeginPageSetup
BP
@@ -7395,8 +7367,8 @@ G(onfusing in some uses.)-2.5 E(Shell builtin commands and functions ar)
-.18 F .431(or messages while the con-)-.18 F(str)108 578.4 Q
(uct is being r)-.08 E(ead.)-.18 E
(Array variables may not \(yet\) be exported.)108 595.2 Q F0
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 123.385(l2).15 G(004 No)
-123.385 E 2.5(v2)-.15 G 197.965(26)-2.5 G(4)-197.965 E 0 Cg EP
(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 126.37(l2).15 G(004 Dec 1)
-126.37 E(64)200.95 E 0 Cg EP
%%Trailer
end
%%EOF
BIN
View File
Binary file not shown.
+18 -13
View File
@@ -1,6 +1,6 @@
<HTML>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- Created on November, 24 2004 by texi2html 1.64 -->
<!-- Created on December, 7 2004 by texi2html 1.64 -->
<!--
Written by: Lionel Cons <Lionel.Cons@cern.ch> (original author)
Karl Berry <karl@freefriends.org>
@@ -33,10 +33,10 @@ Send bugs and suggestions to <texi2html@mathematik.uni-kl.de>
<H1>Bash Reference Manual</H1></P><P>
This text is a brief description of the features that are present in
the Bash shell (version 3.1-devel, 24 November 2004)..
the Bash shell (version 3.1-devel, 1 December 2004)..
</P><P>
This is Edition 3.1-devel, last updated 24 November 2004,
This is Edition 3.1-devel, last updated 1 December 2004,
of <CITE>The GNU Bash Reference Manual</CITE>,
for <CODE>Bash</CODE>, Version 3.1-devel.
</P><P>
@@ -1559,12 +1559,12 @@ The first element of the <CODE>FUNCNAME</CODE> variable is set to the
name of the function while the function is executing.
All other aspects of the shell execution
environment are identical between a function and its caller
with the exception that the <CODE>DEBUG</CODE> trap
below) is not inherited unless the function has been given the
with the exception that the <CODE>DEBUG</CODE> and <CODE>RETURN</CODE> traps
are not inherited unless the function has been given the
<CODE>trace</CODE> attribute using the <CODE>declare</CODE> builtin or
the <CODE>-o functrace</CODE> option has been enabled with
the <CODE>set</CODE> builtin,
(in which case all functions inherit the <CODE>DEBUG</CODE> trap).
(in which case all functions inherit the <CODE>DEBUG</CODE> and <CODE>RETURN</CODE> traps).
See section <A HREF="bashref.html#SEC57">4.1 Bourne Shell Builtins</A>, for the description of the
<CODE>trap</CODE> builtin.
</P><P>
@@ -4405,7 +4405,8 @@ by subsequent assignment statements or unset.
<DT><CODE>-t</CODE>
<DD>Give each <VAR>name</VAR> the <CODE>trace</CODE> attribute.
Traced functions inherit the <CODE>DEBUG</CODE> trap from the calling shell.
Traced functions inherit the <CODE>DEBUG</CODE> and <CODE>RETURN</CODE> traps from
the calling shell.
The trace attribute has no special meaning for variables.
<P>
@@ -5381,9 +5382,11 @@ $ cd ..; pwd
</pre></td></tr></table></P><P>
<DT><CODE>-T</CODE>
<DD>If set, any trap on <CODE>DEBUG</CODE> is inherited by shell functions, command
substitutions, and commands executed in a subshell environment.
The <CODE>DEBUG</CODE> trap is normally not inherited in such cases.
<DD>If set, any trap on <CODE>DEBUG</CODE> and <CODE>RETURN</CODE> are inherited by
shell functions, command substitutions, and commands executed
in a subshell environment.
The <CODE>DEBUG</CODE> and <CODE>RETURN</CODE> traps are normally not inherited
in such cases.
<P>
<DT><CODE>--</CODE>
@@ -12671,7 +12674,9 @@ The <CODE>trap</CODE> builtin (see section <A HREF="bashref.html#SEC57">4.1 Bour
Commands specified with an <CODE>RETURN</CODE> trap are executed before
execution resumes after a shell function or a shell script executed with
<CODE>.</CODE> or <CODE>source</CODE> returns.
The <CODE>RETURN</CODE> trap is not inherited by shell functions.
The <CODE>RETURN</CODE> trap is not inherited by shell functions unless the
function has been given the <CODE>trace</CODE> attribute or the
<CODE>functrace</CODE> option has been enabled using the <CODE>shopt</CODE> builtin.
</P><P>
<LI>
@@ -15100,7 +15105,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>November, 24 2004</I>
This document was generated by <I>Chet Ramey</I> on <I>December, 7 2004</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
<P></P>
@@ -15262,7 +15267,7 @@ the following structure:
<BR>
<FONT SIZE="-1">
This document was generated
by <I>Chet Ramey</I> on <I>November, 24 2004</I>
by <I>Chet Ramey</I> on <I>December, 7 2004</I>
using <A HREF="http://www.mathematik.uni-kl.de/~obachman/Texi2html
"><I>texi2html</I></A>
+144 -142
View File
@@ -2,10 +2,10 @@ This is bashref.info, produced by makeinfo version 4.7 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 3.1-devel, 24 November 2004).
the Bash shell (version 3.1-devel, 1 December 2004).
This is Edition 3.1-devel, last updated 24 November 2004, of `The
GNU Bash Reference Manual', for `Bash', Version 3.1-devel.
This is Edition 3.1-devel, last updated 1 December 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.1-devel, 24 November 2004)..
the Bash shell (version 3.1-devel, 1 December 2004)..
This is Edition 3.1-devel, last updated 24 November 2004, of `The
GNU Bash Reference Manual', for `Bash', Version 3.1-devel.
This is Edition 3.1-devel, last updated 1 December 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
@@ -978,11 +978,11 @@ parameter `0' is unchanged. The first element of the `FUNCNAME'
variable is set to the name of the function while the function is
executing. All other aspects of the shell execution environment are
identical between a function and its caller with the exception that the
`DEBUG' trap below) is not inherited unless the function has been given
the `trace' attribute using the `declare' builtin or the `-o functrace'
option has been enabled with the `set' builtin, (in which case all
functions inherit the `DEBUG' trap). *Note Bourne Shell Builtins::,
for the description of the `trap' builtin.
`DEBUG' and `RETURN' traps are not inherited unless the function has
been given the `trace' attribute using the `declare' builtin or the `-o
functrace' option has been enabled with the `set' builtin, (in which
case all functions inherit the `DEBUG' and `RETURN' traps). *Note
Bourne Shell Builtins::, for the description of the `trap' builtin.
If the builtin command `return' is executed in a function, the
function completes and execution resumes with the next command after
@@ -2803,8 +2803,8 @@ POSIX 1003.2 standard.
`-t'
Give each NAME the `trace' attribute. Traced functions
inherit the `DEBUG' trap from the calling shell. The trace
attribute has no special meaning for variables.
inherit the `DEBUG' and `RETURN' traps from the calling shell.
The trace attribute has no special meaning for variables.
`-x'
Mark each NAME for export to subsequent commands via the
@@ -3566,10 +3566,10 @@ This builtin is so complicated that it deserves its own section.
/usr/local
`-T'
If set, any trap on `DEBUG' is inherited by shell functions,
command substitutions, and commands executed in a subshell
environment. The `DEBUG' trap is normally not inherited in
such cases.
If set, any trap on `DEBUG' and `RETURN' are inherited by
shell functions, command substitutions, and commands executed
in a subshell environment. The `DEBUG' and `RETURN' traps
are normally not inherited in such cases.
`--'
If no arguments follow this option, then the positional
@@ -8353,7 +8353,9 @@ included in SVR4.2 as the baseline reference.
`DEBUG'. Commands specified with an `RETURN' trap are executed
before execution resumes after a shell function or a shell script
executed with `.' or `source' returns. The `RETURN' trap is not
inherited by shell functions.
inherited by shell functions unless the function has been given
the `trace' attribute or the `functrace' option has been enabled
using the `shopt' builtin.
* The Bash `type' builtin is more extensive and gives more
information about the names it finds (*note Bash Builtins::).
@@ -9442,129 +9444,129 @@ Concept Index

Tag Table:
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 Builtins148413
Node: Shell Variables149390
Node: Bourne Shell Variables149830
Node: Bash Variables151811
Node: Bash Features171518
Node: Invoking Bash172401
Node: Bash Startup Files178222
Node: Interactive Shells183080
Node: What is an Interactive Shell?183490
Node: Is this Shell Interactive?184140
Node: Interactive Shell Behavior184955
Node: Bash Conditional Expressions188231
Node: Shell Arithmetic191810
Node: Aliases194556
Node: Arrays197124
Node: The Directory Stack200391
Node: Directory Stack Builtins201105
Node: Printing a Prompt203996
Node: The Restricted Shell206710
Node: Bash POSIX Mode208542
Node: Job Control215875
Node: Job Control Basics216342
Node: Job Control Builtins220718
Node: Job Control Variables225070
Node: Command Line Editing226228
Node: Introduction and Notation227227
Node: Readline Interaction228849
Node: Readline Bare Essentials230040
Node: Readline Movement Commands231829
Node: Readline Killing Commands232794
Node: Readline Arguments234714
Node: Searching235758
Node: Readline Init File237944
Node: Readline Init File Syntax239003
Node: Conditional Init Constructs250862
Node: Sample Init File253395
Node: Bindable Readline Commands256512
Node: Commands For Moving257719
Node: Commands For History258580
Node: Commands For Text261735
Node: Commands For Killing264408
Node: Numeric Arguments266550
Node: Commands For Completion267689
Node: Keyboard Macros271282
Node: Miscellaneous Commands271853
Node: Readline vi Mode277164
Node: Programmable Completion278078
Node: Programmable Completion Builtins283890
Node: Using History Interactively291486
Node: Bash History Facilities292166
Node: Bash History Builtins294861
Node: History Interaction298718
Node: Event Designators301274
Node: Word Designators302289
Node: Modifiers303928
Node: Installing Bash305334
Node: Basic Installation306471
Node: Compilers and Options309163
Node: Compiling For Multiple Architectures309904
Node: Installation Names311568
Node: Specifying the System Type312386
Node: Sharing Defaults313102
Node: Operation Controls313775
Node: Optional Features314733
Node: Reporting Bugs323012
Node: Major Differences From The Bourne Shell324206
Node: Copying This Manual339978
Node: GNU Free Documentation License340254
Node: Builtin Index362660
Node: Reserved Word Index369209
Node: Variable Index371645
Node: Function Index382505
Node: Concept Index389225
Node: Top1373
Node: Introduction3533
Node: What is Bash?3762
Node: What is a shell?4855
Node: Definitions7396
Node: Basic Shell Features10137
Node: Shell Syntax11356
Node: Shell Operation12388
Node: Quoting13682
Node: Escape Character14956
Node: Single Quotes15441
Node: Double Quotes15789
Node: ANSI-C Quoting16815
Node: Locale Translation17771
Node: Comments18667
Node: Shell Commands19281
Node: Simple Commands20047
Node: Pipelines20678
Node: Lists22553
Node: Compound Commands24184
Node: Looping Constructs24968
Node: Conditional Constructs27415
Node: Command Grouping34482
Node: Shell Functions35931
Node: Shell Parameters40221
Node: Positional Parameters42551
Node: Special Parameters43451
Node: Shell Expansions46376
Node: Brace Expansion48301
Node: Tilde Expansion50626
Node: Shell Parameter Expansion52977
Node: Command Substitution60486
Node: Arithmetic Expansion61819
Node: Process Substitution62669
Node: Word Splitting63719
Node: Filename Expansion65180
Node: Pattern Matching67316
Node: Quote Removal70641
Node: Redirections70936
Node: Executing Commands78666
Node: Simple Command Expansion79341
Node: Command Search and Execution81271
Node: Command Execution Environment83277
Node: Environment86048
Node: Exit Status87708
Node: Signals88912
Node: Shell Scripts90876
Node: Shell Builtin Commands93394
Node: Bourne Shell Builtins94973
Node: Bash Builtins111926
Node: The Set Builtin140066
Node: Special Builtins148473
Node: Shell Variables149450
Node: Bourne Shell Variables149890
Node: Bash Variables151871
Node: Bash Features171578
Node: Invoking Bash172461
Node: Bash Startup Files178282
Node: Interactive Shells183140
Node: What is an Interactive Shell?183550
Node: Is this Shell Interactive?184200
Node: Interactive Shell Behavior185015
Node: Bash Conditional Expressions188291
Node: Shell Arithmetic191870
Node: Aliases194616
Node: Arrays197184
Node: The Directory Stack200451
Node: Directory Stack Builtins201165
Node: Printing a Prompt204056
Node: The Restricted Shell206770
Node: Bash POSIX Mode208602
Node: Job Control215935
Node: Job Control Basics216402
Node: Job Control Builtins220778
Node: Job Control Variables225130
Node: Command Line Editing226288
Node: Introduction and Notation227287
Node: Readline Interaction228909
Node: Readline Bare Essentials230100
Node: Readline Movement Commands231889
Node: Readline Killing Commands232854
Node: Readline Arguments234774
Node: Searching235818
Node: Readline Init File238004
Node: Readline Init File Syntax239063
Node: Conditional Init Constructs250922
Node: Sample Init File253455
Node: Bindable Readline Commands256572
Node: Commands For Moving257779
Node: Commands For History258640
Node: Commands For Text261795
Node: Commands For Killing264468
Node: Numeric Arguments266610
Node: Commands For Completion267749
Node: Keyboard Macros271342
Node: Miscellaneous Commands271913
Node: Readline vi Mode277224
Node: Programmable Completion278138
Node: Programmable Completion Builtins283950
Node: Using History Interactively291546
Node: Bash History Facilities292226
Node: Bash History Builtins294921
Node: History Interaction298778
Node: Event Designators301334
Node: Word Designators302349
Node: Modifiers303988
Node: Installing Bash305394
Node: Basic Installation306531
Node: Compilers and Options309223
Node: Compiling For Multiple Architectures309964
Node: Installation Names311628
Node: Specifying the System Type312446
Node: Sharing Defaults313162
Node: Operation Controls313835
Node: Optional Features314793
Node: Reporting Bugs323072
Node: Major Differences From The Bourne Shell324266
Node: Copying This Manual340174
Node: GNU Free Documentation License340450
Node: Builtin Index362856
Node: Reserved Word Index369405
Node: Variable Index371841
Node: Function Index382701
Node: Concept Index389421

End Tag Table
+10 -10
View File
@@ -1,4 +1,4 @@
This is TeX, Version 3.14159 (Web2C 7.4.5) (format=tex 2003.12.31) 24 NOV 2004 15:49
This is TeX, Version 3.14159 (Web2C 7.4.5) (format=tex 2003.12.31) 7 DEC 2004 10:57
**/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,
@@ -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 3466--3466
Overfull \hbox (43.33536pt too wide) in paragraph at lines 3467--3467
[]@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 4078--4085
Underfull \hbox (badness 4036) in paragraph at lines 4079--4086
@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 4795--4795
Overfull \hbox (51.96864pt too wide) in paragraph at lines 4798--4798
[]@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 4796--4796
Overfull \hbox (76.23077pt too wide) in paragraph at lines 4799--4799
[]@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 4796--4796
.etc.
Overfull \hbox (34.72258pt too wide) in paragraph at lines 4797--4797
Overfull \hbox (34.72258pt too wide) in paragraph at lines 4800--4800
[]@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 4971--4973
Underfull \hbox (badness 2245) in paragraph at lines 4974--4976
[]@textrm When a lo-gin shell ex-its, Bash reads and ex-e-cutes com-mands from
the file
@@ -320,7 +320,7 @@ Underfull \hbox (badness 2753) in paragraph at lines 1758--1761
[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 6669--6673
Underfull \hbox (badness 2772) in paragraph at lines 6672--6676
[]@textrm Enable sup-port for large files (@texttt http://www.sas.com/standard
s/large_
@@ -359,10 +359,10 @@ Overfull \vbox (42.26959pt too high) has occurred while \output is active
Here is how much of TeX's memory you used:
1726 strings out of 98002
23501 string characters out of 1221986
52385 words of memory out of 1000001
52383 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,269b,465s stack positions out of 1500i,500n,5000p,200000b,5000s
Output written on bashref.dvi (156 pages, 584548 bytes).
Output written on bashref.dvi (156 pages, 584768 bytes).
+126 -123
View File
@@ -10,7 +10,7 @@
%DVIPSWebPage: (www.radicaleye.com)
%DVIPSCommandLine: dvips -D 600 -t letter -o bashref.ps bashref.dvi
%DVIPSParameters: dpi=600, compressed
%DVIPSSource: TeX output 2004.11.24:1549
%DVIPSSource: TeX output 2004.12.07:1057
%%BeginProcSet: texc.pro
%!
/TeXDict 300 dict def TeXDict begin/N{def}def/B{bind def}N/S{exch}N/X{S
@@ -4226,19 +4226,18 @@ letter
TeXDict begin 1 0 bop 150 1318 a Fu(Bash)64 b(Reference)j(Man)-5
b(ual)p 150 1385 3600 34 v 2361 1481 a Ft(Reference)31
b(Do)s(cumen)m(tation)i(for)d(Bash)1963 1589 y(Edition)h(3.1-dev)m(el,)
i(for)d Fs(Bash)f Ft(V)-8 b(ersion)31 b(3.1-dev)m(el.)3139
1697 y(No)m(v)m(em)m(b)s(er)g(2004)150 4935 y Fr(Chet)45
b(Ramey)-11 b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l
(ersit)l(y)150 5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11
b(ree)45 b(Soft)l(w)l(are)h(F)-11 b(oundation)p 150 5141
3600 17 v eop end
i(for)d Fs(Bash)f Ft(V)-8 b(ersion)31 b(3.1-dev)m(el.)3145
1697 y(Decem)m(b)s(er)g(2004)150 4935 y Fr(Chet)45 b(Ramey)-11
b(,)46 b(Case)g(W)-11 b(estern)46 b(Reserv)l(e)g(Univ)l(ersit)l(y)150
5068 y(Brian)f(F)-11 b(o)l(x,)45 b(F)-11 b(ree)45 b(Soft)l(w)l(are)h(F)
-11 b(oundation)p 150 5141 3600 17 v eop end
%%Page: 2 2
TeXDict begin 2 1 bop 150 2889 a Ft(This)35 b(text)h(is)g(a)g(brief)f
(description)h(of)f(the)h(features)g(that)g(are)g(presen)m(t)g(in)f
(the)h(Bash)f(shell)h(\(v)m(ersion)150 2999 y(3.1-dev)m(el,)d(24)e(No)m
(v)m(em)m(b)s(er)h(2004\).)150 3133 y(This)38 b(is)i(Edition)f(3.1-dev)
m(el,)44 b(last)c(up)s(dated)e(24)i(No)m(v)m(em)m(b)s(er)g(2004,)j(of)c
Fq(The)g(GNU)h(Bash)f(Reference)150 3243 y(Man)m(ual)p
(the)h(Bash)f(shell)h(\(v)m(ersion)150 2999 y(3.1-dev)m(el,)d(1)e
(Decem)m(b)s(er)g(2004\).)150 3133 y(This)42 b(is)h(Edition)g(3.1-dev)m
(el,)49 b(last)44 b(up)s(dated)e(1)h(Decem)m(b)s(er)h(2004,)k(of)43
b Fq(The)f(GNU)i(Bash)f(Reference)150 3243 y(Man)m(ual)p
Ft(,)32 b(for)e Fs(Bash)p Ft(,)f(V)-8 b(ersion)31 b(3.1-dev)m(el.)150
3377 y(Cop)m(yrigh)m(t)602 3374 y(c)577 3377 y Fp(\015)f
Ft(1988-2004)k(F)-8 b(ree)32 b(Soft)m(w)m(are)f(F)-8
@@ -5479,98 +5478,98 @@ p eop end
TeXDict begin 14 19 bop 150 -116 a Ft(14)2572 b(Bash)31
b(Reference)g(Man)m(ual)390 299 y Fs([)47 b(function)f(])h
Fj(name)58 b Fs(\(\))47 b Fj(compound-command)54 b Fs([)47
b Fj(redirections)55 b Fs(])275 450 y Ft(This)31 b(de\014nes)h(a)h
b Fj(redirections)55 b Fs(])275 436 y Ft(This)31 b(de\014nes)h(a)h
(shell)g(function)g(named)f Fq(name)p Ft(.)48 b(The)32
b(reserv)m(ed)h(w)m(ord)f Fs(function)f Ft(is)h(optional.)49
b(If)150 559 y(the)39 b Fs(function)f Ft(reserv)m(ed)h(w)m(ord)g(is)g
b(If)150 545 y(the)39 b Fs(function)f Ft(reserv)m(ed)h(w)m(ord)g(is)g
(supplied,)i(the)e(paren)m(theses)h(are)f(optional.)69
b(The)39 b Fq(b)s(o)s(dy)45 b Ft(of)40 b(the)150 669
b(The)39 b Fq(b)s(o)s(dy)45 b Ft(of)40 b(the)150 655
y(function)h(is)h(the)g(comp)s(ound)e(command)h Fq(comp)s(ound-command)
j Ft(\(see)e(Section)h(3.2.4)g([Comp)s(ound)150 778 y(Commands],)33
j Ft(\(see)e(Section)h(3.2.4)g([Comp)s(ound)150 765 y(Commands],)33
b(page)g(9\).)48 b(That)33 b(command)g(is)f(usually)h(a)g
Fq(list)i Ft(enclosed)e(b)s(et)m(w)m(een)h Fs({)e Ft(and)g
Fs(})p Ft(,)h(but)f(ma)m(y)150 888 y(b)s(e)27 b(an)m(y)h(comp)s(ound)e
Fs(})p Ft(,)h(but)f(ma)m(y)150 874 y(b)s(e)27 b(an)m(y)h(comp)s(ound)e
(command)h(listed)h(ab)s(o)m(v)m(e.)41 b Fq(comp)s(ound-command)30
b Ft(is)e(executed)g(whenev)m(er)g Fq(name)150 998 y
b Ft(is)e(executed)g(whenev)m(er)g Fq(name)150 984 y
Ft(is)37 b(sp)s(eci\014ed)g(as)g(the)h(name)f(of)g(a)h(command.)61
b(An)m(y)37 b(redirections)h(\(see)g(Section)g(3.6)g([Redirections],)
150 1107 y(page)31 b(24\))h(asso)s(ciated)g(with)e(the)g(shell)h
150 1093 y(page)31 b(24\))h(asso)s(ciated)g(with)e(the)g(shell)h
(function)f(are)h(p)s(erformed)d(when)i(the)g(function)g(is)h
(executed.)275 1258 y(The)26 b(exit)i(status)g(of)f(a)h(function)f
(executed.)275 1230 y(The)26 b(exit)i(status)g(of)f(a)h(function)f
(de\014nition)g(is)g(zero)h(unless)f(a)g(syn)m(tax)h(error)f(o)s(ccurs)
g(or)g(a)h(readonly)150 1367 y(function)k(with)f(the)i(same)f(name)g
g(or)g(a)h(readonly)150 1340 y(function)k(with)f(the)i(same)f(name)g
(already)h(exists.)46 b(When)32 b(executed,)h(the)f(exit)h(status)g(of)
f(a)g(function)150 1477 y(is)e(the)h(exit)g(status)g(of)f(the)h(last)g
f(a)g(function)150 1450 y(is)e(the)h(exit)g(status)g(of)f(the)h(last)g
(command)f(executed)i(in)e(the)g(b)s(o)s(dy)-8 b(.)275
1628 y(Note)22 b(that)f(for)f(historical)i(reasons,)h(in)e(the)g(most)g
1587 y(Note)22 b(that)f(for)f(historical)i(reasons,)h(in)e(the)g(most)g
(common)g(usage)g(the)g(curly)f(braces)h(that)g(surround)150
1737 y(the)38 b(b)s(o)s(dy)d(of)j(the)f(function)g(m)m(ust)g(b)s(e)g
1696 y(the)38 b(b)s(o)s(dy)d(of)j(the)f(function)g(m)m(ust)g(b)s(e)g
(separated)h(from)f(the)g(b)s(o)s(dy)f(b)m(y)h Fs(blank)p
Ft(s)f(or)h(newlines.)62 b(This)150 1847 y(is)38 b(b)s(ecause)g(the)h
Ft(s)f(or)h(newlines.)62 b(This)150 1806 y(is)38 b(b)s(ecause)g(the)h
(braces)f(are)h(reserv)m(ed)f(w)m(ords)g(and)f(are)i(only)f(recognized)
i(as)e(suc)m(h)g(when)f(they)i(are)150 1956 y(separated)e(b)m(y)g
i(as)e(suc)m(h)g(when)f(they)i(are)150 1915 y(separated)e(b)m(y)g
(whitespace.)61 b(Also,)39 b(when)d(using)g(the)h(braces,)i(the)e
Fq(list)j Ft(m)m(ust)c(b)s(e)g(terminated)i(b)m(y)f(a)150
2066 y(semicolon,)32 b(a)f(`)p Fs(&)p Ft(',)f(or)h(a)g(newline.)275
2217 y(When)h(a)i(function)f(is)g(executed,)i(the)e(argumen)m(ts)h(to)g
2025 y(semicolon,)32 b(a)f(`)p Fs(&)p Ft(',)f(or)h(a)g(newline.)275
2162 y(When)h(a)i(function)f(is)g(executed,)i(the)e(argumen)m(ts)h(to)g
(the)f(function)g(b)s(ecome)g(the)h(p)s(ositional)g(pa-)150
2326 y(rameters)42 b(during)e(its)i(execution)h(\(see)f(Section)g
2271 y(rameters)42 b(during)e(its)i(execution)h(\(see)f(Section)g
(3.4.1)h([P)m(ositional)h(P)m(arameters],)i(page)c(15\).)75
b(The)150 2436 y(sp)s(ecial)37 b(parameter)f(`)p Fs(#)p
b(The)150 2381 y(sp)s(ecial)37 b(parameter)f(`)p Fs(#)p
Ft(')g(that)h(expands)e(to)i(the)f(n)m(um)m(b)s(er)f(of)h(p)s
(ositional)h(parameters)f(is)g(up)s(dated)f(to)150 2545
(ositional)h(parameters)f(is)g(up)s(dated)f(to)150 2491
y(re\015ect)h(the)f(c)m(hange.)56 b(Sp)s(ecial)35 b(parameter)h
Fs(0)f Ft(is)g(unc)m(hanged.)54 b(The)35 b(\014rst)f(elemen)m(t)j(of)e
(the)g Fs(FUNCNAME)150 2655 y Ft(v)-5 b(ariable)27 b(is)g(set)g(to)h
(the)g Fs(FUNCNAME)150 2600 y Ft(v)-5 b(ariable)27 b(is)g(set)g(to)h
(the)f(name)f(of)h(the)g(function)f(while)h(the)g(function)f(is)h
(executing.)40 b(All)28 b(other)f(asp)s(ects)150 2765
(executing.)40 b(All)28 b(other)f(asp)s(ects)150 2710
y(of)32 b(the)g(shell)g(execution)i(en)m(vironmen)m(t)e(are)h(iden)m
(tical)g(b)s(et)m(w)m(een)g(a)f(function)g(and)f(its)i(caller)g(with)f
(the)150 2874 y(exception)26 b(that)g(the)f Fs(DEBUG)f
Ft(trap)h(b)s(elo)m(w\))h(is)f(not)h(inherited)e(unless)h(the)g
(function)g(has)g(b)s(een)g(giv)m(en)h(the)150 2984 y
Fs(trace)36 b Ft(attribute)h(using)g(the)g Fs(declare)e
Ft(builtin)h(or)h(the)g Fs(-o)30 b(functrace)35 b Ft(option)i(has)g(b)s
(een)f(enabled)150 3093 y(with)d(the)g Fs(set)g Ft(builtin,)h(\(in)f
(whic)m(h)g(case)h(all)g(functions)f(inherit)g(the)h
Fs(DEBUG)e Ft(trap\).)49 b(See)34 b(Section)g(4.1)150
3203 y([Bourne)c(Shell)h(Builtins],)g(page)g(33,)g(for)g(the)f
(description)h(of)f(the)h Fs(trap)e Ft(builtin.)275 3354
y(If)37 b(the)g(builtin)g(command)h Fs(return)d Ft(is)j(executed)g(in)g
(a)g(function,)h(the)e(function)h(completes)h(and)150
3463 y(execution)25 b(resumes)e(with)h(the)g(next)g(command)f(after)i
(the)150 2819 y(exception)h(that)f(the)g Fs(DEBUG)f Ft(and)g
Fs(RETURN)f Ft(traps)h(are)h(not)g(inherited)g(unless)f(the)h(function)
f(has)h(b)s(een)150 2929 y(giv)m(en)h(the)f Fs(trace)e
Ft(attribute)j(using)e(the)h Fs(declare)e Ft(builtin)h(or)h(the)g
Fs(-o)e(functrace)f Ft(option)j(has)g(b)s(een)150 3039
y(enabled)39 b(with)f(the)h Fs(set)e Ft(builtin,)k(\(in)e(whic)m(h)f
(case)i(all)f(functions)f(inherit)h(the)f Fs(DEBUG)g
Ft(and)g Fs(RETURN)150 3148 y Ft(traps\).)66 b(See)40
b(Section)f(4.1)h([Bourne)f(Shell)g(Builtins],)j(page)e(33,)i(for)d
(the)g(description)g(of)g(the)g Fs(trap)150 3258 y Ft(builtin.)275
3395 y(If)e(the)g(builtin)g(command)h Fs(return)d Ft(is)j(executed)g
(in)g(a)g(function,)h(the)e(function)h(completes)h(and)150
3504 y(execution)25 b(resumes)e(with)h(the)g(next)g(command)f(after)i
(the)f(function)f(call.)40 b(An)m(y)24 b(command)f(asso)s(ciated)150
3573 y(with)36 b(the)h Fs(RETURN)d Ft(trap)i(is)h(executed)g(b)s(efore)
3614 y(with)36 b(the)h Fs(RETURN)d Ft(trap)i(is)h(executed)g(b)s(efore)
f(execution)i(resumes.)57 b(When)37 b(a)f(function)g(completes,)150
3682 y(the)h(v)-5 b(alues)38 b(of)f(the)g(p)s(ositional)h(parameters)f
3724 y(the)h(v)-5 b(alues)38 b(of)f(the)g(p)s(ositional)h(parameters)f
(and)g(the)g(sp)s(ecial)h(parameter)f(`)p Fs(#)p Ft(')g(are)h(restored)
f(to)h(the)150 3792 y(v)-5 b(alues)26 b(they)f(had)g(prior)f(to)i(the)g
f(to)h(the)150 3833 y(v)-5 b(alues)26 b(they)f(had)g(prior)f(to)i(the)g
(function's)f(execution.)40 b(If)25 b(a)h(n)m(umeric)f(argumen)m(t)h
(is)f(giv)m(en)h(to)g Fs(return)p Ft(,)150 3902 y(that)j(is)g(the)f
(is)f(giv)m(en)h(to)g Fs(return)p Ft(,)150 3943 y(that)j(is)g(the)f
(function's)h(return)e(status;)j(otherwise)f(the)f(function's)h(return)
e(status)i(is)f(the)h(exit)h(status)150 4011 y(of)h(the)f(last)h
e(status)i(is)f(the)h(exit)h(status)150 4052 y(of)h(the)f(last)h
(command)f(executed)i(b)s(efore)e(the)g Fs(return)p Ft(.)275
4162 y(V)-8 b(ariables)31 b(lo)s(cal)g(to)f(the)g(function)f(ma)m(y)i
4189 y(V)-8 b(ariables)31 b(lo)s(cal)g(to)f(the)g(function)f(ma)m(y)i
(b)s(e)e(declared)h(with)f(the)h Fs(local)f Ft(builtin.)40
b(These)29 b(v)-5 b(ariables)150 4271 y(are)31 b(visible)g(only)f(to)h
b(These)29 b(v)-5 b(ariables)150 4299 y(are)31 b(visible)g(only)f(to)h
(the)g(function)f(and)g(the)g(commands)g(it)h(in)m(v)m(ok)m(es.)275
4422 y(F)-8 b(unction)38 b(names)f(and)g(de\014nitions)g(ma)m(y)i(b)s
4436 y(F)-8 b(unction)38 b(names)f(and)g(de\014nitions)g(ma)m(y)i(b)s
(e)e(listed)h(with)f(the)h(`)p Fs(-f)p Ft(')f(option)h(to)h(the)e
Fs(declare)f Ft(or)150 4532 y Fs(typeset)d Ft(builtin)h(commands)h
Fs(declare)f Ft(or)150 4545 y Fs(typeset)d Ft(builtin)h(commands)h
(\(see)h(Section)g(4.2)g([Bash)f(Builtins],)i(page)f(39\).)55
b(The)35 b(`)p Fs(-F)p Ft(')g(option)g(to)150 4641 y
b(The)35 b(`)p Fs(-F)p Ft(')g(option)g(to)150 4655 y
Fs(declare)f Ft(or)i Fs(typeset)e Ft(will)i(list)h(the)f(function)g
(names)g(only)g(\(and)g(optionally)h(the)f(source)g(\014le)h(and)150
4751 y(line)c(n)m(um)m(b)s(er,)g(if)f(the)h Fs(extdebug)e
4765 y(line)c(n)m(um)m(b)s(er,)g(if)f(the)h Fs(extdebug)e
Ft(shell)i(option)g(is)g(enabled\).)49 b(F)-8 b(unctions)33
b(ma)m(y)h(b)s(e)e(exp)s(orted)g(so)h(that)150 4861 y(subshells)f
b(ma)m(y)h(b)s(e)e(exp)s(orted)g(so)h(that)150 4874 y(subshells)f
(automatically)37 b(ha)m(v)m(e)d(them)g(de\014ned)e(with)h(the)g(`)p
Fs(-f)p Ft(')h(option)g(to)g(the)f Fs(export)f Ft(builtin)h(\(see)150
4970 y(Section)g(4.1)g([Bourne)f(Shell)g(Builtins],)i(page)f(33\).)47
4984 y(Section)g(4.1)g([Bourne)f(Shell)g(Builtins],)i(page)f(33\).)47
b(Note)33 b(that)g(shell)f(functions)g(and)f(v)-5 b(ariables)33
b(with)150 5080 y(the)d(same)g(name)g(ma)m(y)g(result)g(in)g(m)m
b(with)150 5093 y(the)d(same)g(name)g(ma)m(y)g(result)g(in)g(m)m
(ultiple)g(iden)m(tically-named)i(en)m(tries)f(in)e(the)h(en)m
(vironmen)m(t)g(passed)150 5189 y(to)h(the)g(shell's)f(c)m(hildren.)41
(vironmen)m(t)g(passed)150 5203 y(to)h(the)g(shell's)f(c)m(hildren.)41
b(Care)30 b(should)g(b)s(e)f(tak)m(en)j(in)e(cases)h(where)f(this)g(ma)
m(y)h(cause)g(a)g(problem.)275 5340 y(F)-8 b(unctions)30
b(ma)m(y)h(b)s(e)f(recursiv)m(e.)41 b(No)31 b(limit)g(is)g(placed)g(on)
@@ -7632,9 +7631,9 @@ b(alues)1110 4672 y(b)m(y)30 b(subsequen)m(t)g(assignmen)m(t)h
(statemen)m(ts)h(or)f(unset.)630 4842 y Fs(-t)384 b Ft(Giv)m(e)33
b(eac)m(h)h Fq(name)j Ft(the)32 b Fs(trace)f Ft(attribute.)46
b(T)-8 b(raced)32 b(functions)g(inherit)g(the)1110 4951
y Fs(DEBUG)21 b Ft(trap)h(from)h(the)f(calling)i(shell.)39
b(The)22 b(trace)h(attribute)h(has)e(no)g(sp)s(ecial)1110
5061 y(meaning)31 b(for)f(v)-5 b(ariables.)630 5230 y
y Fs(DEBUG)26 b Ft(and)h Fs(RETURN)f Ft(traps)h(from)g(the)h(calling)h
(shell.)40 b(The)27 b(trace)i(attribute)1110 5061 y(has)h(no)g(sp)s
(ecial)h(meaning)g(for)f(v)-5 b(ariables.)630 5230 y
Fs(-x)384 b Ft(Mark)30 b(eac)m(h)h Fq(name)k Ft(for)29
b(exp)s(ort)h(to)g(subsequen)m(t)f(commands)h(via)g(the)g(en)m(vi-)1110
5340 y(ronmen)m(t.)p eop end
@@ -8354,51 +8353,52 @@ b Ft(If)39 b(set,)j(an)m(y)e(trap)f(on)g Fs(ERR)g Ft(is)g(inherited)g
(b)m(y)g(shell)h(functions,)h(command)1110 408 y(substitutions,)35
b(and)e(commands)g(executed)i(in)f(a)g(subshell)f(en)m(vironmen)m(t.)
1110 518 y(The)d Fs(ERR)f Ft(trap)i(is)f(normally)h(not)f(inherited)g
(in)g(suc)m(h)g(cases.)630 735 y Fs(-H)384 b Ft(Enable)38
(in)g(suc)m(h)g(cases.)630 723 y Fs(-H)384 b Ft(Enable)38
b(`)p Fs(!)p Ft(')h(st)m(yle)h(history)e(substitution)g(\(see)h
(Section)h(9.3)f([History)g(In-)1110 845 y(teraction],)g(page)d(113\).)
(Section)h(9.3)f([History)g(In-)1110 833 y(teraction],)g(page)d(113\).)
57 b(This)34 b(option)i(is)f(on)g(b)m(y)h(default)f(for)g(in)m
(teractiv)m(e)1110 954 y(shells.)630 1172 y Fs(-P)384
(teractiv)m(e)1110 942 y(shells.)630 1147 y Fs(-P)384
b Ft(If)43 b(set,)k(do)c(not)g(follo)m(w)h(sym)m(b)s(olic)g(links)e
(when)g(p)s(erforming)g(commands)1110 1281 y(suc)m(h)29
(when)g(p)s(erforming)g(commands)1110 1257 y(suc)m(h)29
b(as)h Fs(cd)f Ft(whic)m(h)g(c)m(hange)h(the)g(curren)m(t)f(directory)
-8 b(.)42 b(The)28 b(ph)m(ysical)j(direc-)1110 1391 y(tory)j(is)g(used)
-8 b(.)42 b(The)28 b(ph)m(ysical)j(direc-)1110 1366 y(tory)j(is)g(used)
f(instead.)52 b(By)34 b(default,)h(Bash)f(follo)m(ws)h(the)f(logical)i
(c)m(hain)f(of)1110 1500 y(directories)j(when)d(p)s(erforming)h
(c)m(hain)f(of)1110 1476 y(directories)j(when)d(p)s(erforming)h
(commands)g(whic)m(h)g(c)m(hange)i(the)f(curren)m(t)1110
1610 y(directory)-8 b(.)1110 1773 y(F)g(or)31 b(example,)g(if)f(`)p
1586 y(directory)-8 b(.)1110 1743 y(F)g(or)31 b(example,)g(if)f(`)p
Fs(/usr/sys)p Ft(')e(is)i(a)g(sym)m(b)s(olic)h(link)f(to)g(`)p
Fs(/usr/local/sys)p Ft(')1110 1883 y(then:)1350 2046
y Fs($)47 b(cd)h(/usr/sys;)d(echo)i($PWD)1350 2156 y(/usr/sys)1350
2266 y($)g(cd)h(..;)f(pwd)1350 2375 y(/usr)1110 2539
y Ft(If)30 b Fs(set)f(-P)h Ft(is)h(on,)f(then:)1350 2702
y Fs($)47 b(cd)h(/usr/sys;)d(echo)i($PWD)1350 2812 y(/usr/local/sys)
1350 2921 y($)g(cd)h(..;)f(pwd)1350 3031 y(/usr/local)630
3248 y(-T)384 b Ft(If)31 b(set,)h(an)m(y)f(trap)g(on)g
Fs(DEBUG)e Ft(is)i(inherited)g(b)m(y)g(shell)g(functions,)g(command)
1110 3358 y(substitutions,)k(and)e(commands)g(executed)i(in)f(a)g
(subshell)f(en)m(vironmen)m(t.)1110 3467 y(The)d Fs(DEBUG)f
Ft(trap)h(is)g(normally)h(not)g(inherited)f(in)g(suc)m(h)g(cases.)630
3684 y Fs(--)384 b Ft(If)31 b(no)h(argumen)m(ts)f(follo)m(w)i(this)f
Fs(/usr/local/sys)p Ft(')1110 1853 y(then:)1350 2010
y Fs($)47 b(cd)h(/usr/sys;)d(echo)i($PWD)1350 2119 y(/usr/sys)1350
2229 y($)g(cd)h(..;)f(pwd)1350 2339 y(/usr)1110 2496
y Ft(If)30 b Fs(set)f(-P)h Ft(is)h(on,)f(then:)1350 2653
y Fs($)47 b(cd)h(/usr/sys;)d(echo)i($PWD)1350 2763 y(/usr/local/sys)
1350 2872 y($)g(cd)h(..;)f(pwd)1350 2982 y(/usr/local)630
3187 y(-T)384 b Ft(If)34 b(set,)j(an)m(y)e(trap)g(on)g
Fs(DEBUG)e Ft(and)i Fs(RETURN)e Ft(are)i(inherited)g(b)m(y)f(shell)i
(func-)1110 3297 y(tions,)k(command)d(substitutions,)h(and)f(commands)g
(executed)h(in)f(a)h(sub-)1110 3406 y(shell)33 b(en)m(vironmen)m(t.)49
b(The)32 b Fs(DEBUG)g Ft(and)g Fs(RETURN)f Ft(traps)h(are)i(normally)f
(not)1110 3516 y(inherited)d(in)g(suc)m(h)g(cases.)630
3721 y Fs(--)384 b Ft(If)31 b(no)h(argumen)m(ts)f(follo)m(w)i(this)f
(option,)g(then)f(the)h(p)s(ositional)h(parameters)1110
3794 y(are)h(unset.)49 b(Otherwise,)34 b(the)g(p)s(ositional)g
(parameters)g(are)g(set)g(to)g(the)g Fq(ar-)1110 3904
3830 y(are)h(unset.)49 b(Otherwise,)34 b(the)g(p)s(ositional)g
(parameters)g(are)g(set)g(to)g(the)g Fq(ar-)1110 3940
y(gumen)m(ts)p Ft(,)d(ev)m(en)g(if)f(some)h(of)g(them)f(b)s(egin)g
(with)g(a)h(`)p Fs(-)p Ft('.)630 4121 y Fs(-)432 b Ft(Signal)45
(with)g(a)h(`)p Fs(-)p Ft('.)630 4145 y Fs(-)432 b Ft(Signal)45
b(the)g(end)f(of)h(options,)k(cause)c(all)h(remaining)e
Fq(argumen)m(ts)49 b Ft(to)d(b)s(e)1110 4230 y(assigned)38
Fq(argumen)m(ts)49 b Ft(to)d(b)s(e)1110 4255 y(assigned)38
b(to)h(the)f(p)s(ositional)h(parameters.)65 b(The)37
b(`)p Fs(-x)p Ft(')h(and)g(`)p Fs(-v)p Ft(')g(options)1110
4340 y(are)25 b(turned)e(o\013.)40 b(If)24 b(there)h(are)g(no)f
4364 y(are)25 b(turned)e(o\013.)40 b(If)24 b(there)h(are)g(no)f
(argumen)m(ts,)i(the)f(p)s(ositional)h(parameters)1110
4450 y(remain)k(unc)m(hanged.)630 4667 y(Using)d(`)p
4474 y(remain)k(unc)m(hanged.)630 4679 y(Using)d(`)p
Fs(+)p Ft(')h(rather)f(than)g(`)p Fs(-)p Ft(')g(causes)h(these)f
(options)h(to)g(b)s(e)e(turned)g(o\013.)40 b(The)27 b(options)h(can)630
4776 y(also)36 b(b)s(e)f(used)f(up)s(on)g(in)m(v)m(o)s(cation)j(of)e
4788 y(also)36 b(b)s(e)f(used)f(up)s(on)g(in)m(v)m(o)s(cation)j(of)e
(the)g(shell.)56 b(The)34 b(curren)m(t)h(set)h(of)f(options)h(ma)m(y)g
(b)s(e)630 4886 y(found)29 b(in)h Fs($-)p Ft(.)630 5049
(b)s(e)630 4898 y(found)29 b(in)h Fs($-)p Ft(.)630 5055
y(The)43 b(remaining)h(N)f Fq(argumen)m(ts)48 b Ft(are)c(p)s(ositional)
g(parameters)g(and)f(are)h(assigned,)j(in)630 5159 y(order,)30
g(parameters)g(and)f(are)h(assigned,)j(in)630 5165 y(order,)30
b(to)h Fs($1)p Ft(,)f Fs($2)p Ft(,)36 b(.)22 b(.)g(.)42
b Fs($N)p Ft(.)e(The)30 b(sp)s(ecial)h(parameter)g Fs(#)f
Ft(is)g(set)h(to)g(N.)630 5322 y(The)f(return)f(status)i(is)f(alw)m(a)m
@@ -13278,73 +13278,76 @@ Fs(read)e Ft(to)i(time)330 737 y(out)c(if)g(input)f(do)s(es)g(not)h
(er)g(of)i(c)m(haracters)h(rather)e(than)g(a)h(full)f(line,)i(and)d
(the)i(`)p Fs(-d)p Ft(')330 956 y(option)j(will)g(read)f(un)m(til)g(a)h
(particular)g(c)m(haracter)h(rather)e(than)g(newline.)225
1096 y Fp(\017)60 b Ft(The)33 b Fs(return)e Ft(builtin)i(ma)m(y)g(b)s
1086 y Fp(\017)60 b Ft(The)33 b Fs(return)e Ft(builtin)i(ma)m(y)g(b)s
(e)g(used)f(to)i(ab)s(ort)f(execution)h(of)f(scripts)g(executed)h(with)
f(the)g Fs(.)g Ft(or)330 1205 y Fs(source)c Ft(builtins)g(\(see)j
f(the)g Fs(.)g Ft(or)330 1196 y Fs(source)c Ft(builtins)g(\(see)j
(Section)f(4.1)g([Bourne)g(Shell)f(Builtins],)h(page)g(33\).)225
1345 y Fp(\017)60 b Ft(Bash)43 b(includes)g(the)g Fs(shopt)f
1325 y Fp(\017)60 b Ft(Bash)43 b(includes)g(the)g Fs(shopt)f
Ft(builtin,)k(for)d(\014ner)f(con)m(trol)j(of)e(shell)h(optional)g
(capabilities)h(\(see)330 1455 y(Section)34 b(4.2)g([Bash)f(Builtins],)
(capabilities)h(\(see)330 1435 y(Section)34 b(4.2)g([Bash)f(Builtins],)
i(page)e(39\),)i(and)e(allo)m(ws)h(these)f(options)h(to)f(b)s(e)g(set)g
(and)g(unset)f(at)330 1564 y(shell)f(in)m(v)m(o)s(cation)h(\(see)f
(and)g(unset)f(at)330 1544 y(shell)f(in)m(v)m(o)s(cation)h(\(see)f
(Section)g(6.1)h([In)m(v)m(oking)f(Bash],)g(page)h(63\).)225
1704 y Fp(\017)60 b Ft(Bash)23 b(has)f(m)m(uc)m(h)g(more)h(optional)h
1674 y Fp(\017)60 b Ft(Bash)23 b(has)f(m)m(uc)m(h)g(more)h(optional)h
(b)s(eha)m(vior)e(con)m(trollable)j(with)d(the)h Fs(set)e
Ft(builtin)h(\(see)i(Section)f(4.3)330 1813 y([The)30
b(Set)h(Builtin],)g(page)g(50\).)225 1953 y Fp(\017)60
Ft(builtin)h(\(see)i(Section)f(4.3)330 1783 y([The)30
b(Set)h(Builtin],)g(page)g(50\).)225 1913 y Fp(\017)60
b Ft(The)31 b(`)p Fs(-x)p Ft(')g(\()p Fs(xtrace)p Ft(\))g(option)h
(displa)m(ys)f(commands)h(other)f(than)h(simple)f(commands)g(when)g(p)s
(er-)330 2062 y(forming)f(an)g(execution)i(trace)f(\(see)h(Section)f
(4.3)g([The)g(Set)f(Builtin],)h(page)h(50\).)225 2202
(er-)330 2022 y(forming)f(an)g(execution)i(trace)f(\(see)h(Section)f
(4.3)g([The)g(Set)f(Builtin],)h(page)h(50\).)225 2152
y Fp(\017)60 b Ft(The)28 b Fs(test)g Ft(builtin)h(\(see)h(Section)f
(4.1)h([Bourne)f(Shell)g(Builtins],)h(page)g(33\))g(is)f(sligh)m(tly)h
(di\013eren)m(t,)330 2311 y(as)23 b(it)g(implemen)m(ts)f(the)h
(di\013eren)m(t,)330 2262 y(as)23 b(it)g(implemen)m(ts)f(the)h
Fl(posix)f Ft(algorithm,)j(whic)m(h)d(sp)s(eci\014es)g(the)h(b)s(eha)m
(vior)f(based)g(on)h(the)f(n)m(um)m(b)s(er)330 2421 y(of)31
b(argumen)m(ts.)225 2560 y Fp(\017)60 b Ft(Bash)31 b(includes)g(the)h
(vior)f(based)g(on)h(the)f(n)m(um)m(b)s(er)330 2371 y(of)31
b(argumen)m(ts.)225 2501 y Fp(\017)60 b Ft(Bash)31 b(includes)g(the)h
Fs(caller)d Ft(builtin,)j(whic)m(h)f(displa)m(ys)g(the)g(con)m(text)i
(of)f(an)m(y)g(activ)m(e)h(subroutine)330 2670 y(call)28
(of)f(an)m(y)g(activ)m(e)h(subroutine)330 2610 y(call)28
b(\(a)f(shell)f(function)h(or)f(a)h(script)f(executed)h(with)f(the)h
Fs(.)f Ft(or)g Fs(source)f Ft(builtins\).)39 b(This)26
b(supp)s(orts)330 2780 y(the)31 b(bash)e(debugger.)225
2919 y Fp(\017)60 b Ft(The)42 b Fs(trap)f Ft(builtin)h(\(see)i(Section)
b(supp)s(orts)330 2720 y(the)31 b(bash)e(debugger.)225
2849 y Fp(\017)60 b Ft(The)42 b Fs(trap)f Ft(builtin)h(\(see)i(Section)
f(4.1)h([Bourne)e(Shell)g(Builtins],)47 b(page)c(33\))h(allo)m(ws)g(a)e
Fs(DEBUG)330 3029 y Ft(pseudo-signal)c(sp)s(eci\014cation,)i(similar)e
Fs(DEBUG)330 2959 y Ft(pseudo-signal)c(sp)s(eci\014cation,)i(similar)e
(to)g Fs(EXIT)p Ft(.)62 b(Commands)36 b(sp)s(eci\014ed)h(with)g(a)h
Fs(DEBUG)e Ft(trap)330 3138 y(are)k(executed)g(b)s(efore)f(ev)m(ery)h
Fs(DEBUG)e Ft(trap)330 3068 y(are)k(executed)g(b)s(efore)f(ev)m(ery)h
(simple)f(command,)j Fs(for)c Ft(command,)k Fs(case)c
Ft(command,)k Fs(select)330 3248 y Ft(command,)35 b(ev)m(ery)g
Ft(command,)k Fs(select)330 3178 y Ft(command,)35 b(ev)m(ery)g
(arithmetic)g Fs(for)e Ft(command,)i(and)f(b)s(efore)g(the)g(\014rst)f
(command)h(executes)h(in)330 3357 y(a)29 b(shell)g(function.)40
(command)h(executes)h(in)330 3288 y(a)29 b(shell)g(function.)40
b(The)28 b Fs(DEBUG)g Ft(trap)g(is)h(not)g(inherited)f(b)m(y)h(shell)g
(functions)f(unless)g(the)h(function)330 3467 y(has)35
(functions)f(unless)g(the)h(function)330 3397 y(has)35
b(b)s(een)g(giv)m(en)i(the)f Fs(trace)e Ft(attribute)i(or)g(the)g
Fs(functrace)d Ft(option)j(has)f(b)s(een)g(enabled)g(using)330
3577 y(the)28 b Fs(shopt)e Ft(builtin.)39 b(The)27 b
3507 y(the)28 b Fs(shopt)e Ft(builtin.)39 b(The)27 b
Fs(extdebug)f Ft(shell)i(option)g(has)f(additional)h(e\013ects)h(on)f
(the)g Fs(DEBUG)e Ft(trap.)330 3716 y(The)21 b Fs(trap)e
(the)g Fs(DEBUG)e Ft(trap.)330 3636 y(The)21 b Fs(trap)e
Ft(builtin)i(\(see)h(Section)g(4.1)g([Bourne)f(Shell)g(Builtins],)j
(page)e(33\))g(allo)m(ws)g(an)f Fs(ERR)f Ft(pseudo-)330
3826 y(signal)30 b(sp)s(eci\014cation,)h(similar)f(to)g
3746 y(signal)30 b(sp)s(eci\014cation,)h(similar)f(to)g
Fs(EXIT)f Ft(and)g Fs(DEBUG)p Ft(.)39 b(Commands)28 b(sp)s(eci\014ed)h
(with)g(an)g Fs(ERR)g Ft(trap)330 3935 y(are)40 b(executed)g(after)g(a)
(with)g(an)g Fs(ERR)g Ft(trap)330 3856 y(are)40 b(executed)g(after)g(a)
f(simple)h(command)f(fails,)j(with)d(a)h(few)f(exceptions.)68
b(The)39 b Fs(ERR)g Ft(trap)g(is)330 4045 y(not)g(inherited)f(b)m(y)h
b(The)39 b Fs(ERR)g Ft(trap)g(is)330 3965 y(not)g(inherited)f(b)m(y)h
(shell)g(functions)f(unless)g(the)h Fs(-o)29 b(errtrace)37
b Ft(option)i(to)g(the)g Fs(set)f Ft(builtin)g(is)330
4154 y(enabled.)330 4294 y(The)g Fs(trap)g Ft(builtin)h(\(see)g
4075 y(enabled.)330 4204 y(The)g Fs(trap)g Ft(builtin)h(\(see)g
(Section)h(4.1)g([Bourne)f(Shell)g(Builtins],)i(page)f(33\))g(allo)m
(ws)g(a)g Fs(RETURN)330 4403 y Ft(pseudo-signal)35 b(sp)s
(ws)g(a)g Fs(RETURN)330 4314 y Ft(pseudo-signal)35 b(sp)s
(eci\014cation,)j(similar)d(to)h Fs(EXIT)e Ft(and)g Fs(DEBUG)p
Ft(.)54 b(Commands)34 b(sp)s(eci\014ed)g(with)h(an)330
4513 y Fs(RETURN)k Ft(trap)i(are)g(executed)h(b)s(efore)e(execution)i
4423 y Fs(RETURN)k Ft(trap)i(are)g(executed)h(b)s(efore)e(execution)i
(resumes)e(after)h(a)g(shell)g(function)g(or)g(a)g(shell)330
4623 y(script)36 b(executed)g(with)g Fs(.)f Ft(or)h Fs(source)e
4533 y(script)36 b(executed)g(with)g Fs(.)f Ft(or)h Fs(source)e
Ft(returns.)56 b(The)35 b Fs(RETURN)f Ft(trap)i(is)g(not)g(inherited)f
(b)m(y)h(shell)330 4732 y(functions.)225 4872 y Fp(\017)60
(b)m(y)h(shell)330 4643 y(functions)k(unless)h(the)g(function)f(has)h
(b)s(een)f(giv)m(en)i(the)f Fs(trace)e Ft(attribute)j(or)e(the)h
Fs(functrace)330 4752 y Ft(option)31 b(has)f(b)s(een)g(enabled)g(using)
g(the)g Fs(shopt)f Ft(builtin.)225 4882 y Fp(\017)60
b Ft(The)30 b(Bash)g Fs(type)f Ft(builtin)h(is)g(more)g(extensiv)m(e)i
(and)d(giv)m(es)j(more)e(information)h(ab)s(out)f(the)g(names)330
4981 y(it)h(\014nds)e(\(see)i(Section)g(4.2)h([Bash)e(Builtins],)i
4991 y(it)h(\014nds)e(\(see)i(Section)g(4.2)h([Bash)e(Builtins],)i
(page)f(39\).)225 5121 y Fp(\017)60 b Ft(The)34 b(Bash)h
Fs(umask)e Ft(builtin)h(p)s(ermits)g(a)g(`)p Fs(-p)p
Ft(')h(option)g(to)g(cause)g(the)g(output)f(to)h(b)s(e)f(displa)m(y)m
+501 -500
View File
File diff suppressed because it is too large Load Diff
+18 -17
View File
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.18.1
%%CreationDate: Wed Nov 24 15:49:24 2004
%%CreationDate: Tue Dec 7 10:57:57 2004
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%+ font Times-Italic
@@ -718,15 +718,16 @@ n is de\214ned are displayed as well.)144 237.6 R(The)6.308 E F2<ad46>
5.046(sr)C(eadonly)-5.046 E 7.546(.T)-.65 G 2.546
(hese names cannot then be assigned v)-7.546 F 2.547
(alues by subsequent)-.25 F(assignment statements or unset.)180 333.6 Q
F2<ad74>144 345.6 Q F0(Gi)26.97 E 1.231 -.15(ve e)-.25 H(ach).15 E F1
(name)3.431 E F0(the)3.431 E F1(tr)3.431 E(ace)-.15 E F0(attrib)3.431 E
3.431(ute. T)-.2 F .931(raced functions inherit the)-.35 F F2(DEB)3.431
E(UG)-.1 E F0 .93(trap from the)3.43 F(calling shell.)180 357.6 Q
(The trace attrib)5 E(ute has no special meaning for v)-.2 E(ariables.)
-.25 E F2<ad78>144 369.6 Q F0(Mark)25.3 E F1(name)2.5 E F0 2.5(sf)C
(or e)-2.5 E(xport to subsequent commands via the en)-.15 E(vironment.)
-.4 E .336(Using `+' instead of `\255' turns of)144 386.4 R 2.837(ft)
-.25 G .337(he attrib)-2.837 F .337(ute instead, with the e)-.2 F .337
F2<ad74>144 345.6 Q F0(Gi)26.97 E .73 -.15(ve e)-.25 H(ach).15 E F1
(name)2.93 E F0(the)2.929 E F1(tr)2.929 E(ace)-.15 E F0(attrib)2.929 E
2.929(ute. T)-.2 F .429(raced functions inherit the)-.35 F F2(DEB)2.929
E(UG)-.1 E F0(and)2.929 E F2(RETURN)2.929 E F0
(traps from the calling shell.)180 357.6 Q(The trace attrib)5 E
(ute has no special meaning for v)-.2 E(ariables.)-.25 E F2<ad78>144
369.6 Q F0(Mark)25.3 E F1(name)2.5 E F0 2.5(sf)C(or e)-2.5 E
(xport to subsequent commands via the en)-.15 E(vironment.)-.4 E .336
(Using `+' instead of `\255' turns of)144 386.4 R 2.837(ft)-.25 G .337
(he attrib)-2.837 F .337(ute instead, with the e)-.2 F .337
(xception that)-.15 F F2(+a)2.837 E F0 .337(may not be used)2.837 F .793
(to destro)144 398.4 R 3.293(ya)-.1 G 3.293(na)-3.293 G .793(rray v)
-3.293 F 3.293(ariable. When)-.25 F .793(used in a function, mak)3.293 F
@@ -1713,13 +1714,13 @@ E F2 1.069(that change the curr)3.569 F 1.069(ent working dir)-.18 F
2.912(ei)-.18 G 2.912(nstead. By)-2.912 F(default,)2.912 E F1(bash)2.912
E F2 .412(follows the logical chain of dir)2.912 F .411(ectories when)
-.18 F(performing commands which change the curr)184 666 Q(ent dir)-.18
E(ectory)-.18 E(.)-1.11 E F1<ad54>144 678 Q F2 1.25(If set, any trap on)
27.27 F F1(DEBUG)3.751 E F2 1.251
(is inherited by shell functions, command substitu-)3.751 F .712
(tions, and commands executed in a subshell envir)184 690 R 3.212
(onment. The)-.18 F F1(DEBUG)3.212 E F2 .711(trap is)3.211 F
(normally not inherited in such cases.)184 702 Q F1<adad>144 714 Q F2
1.781(If no ar)27.88 F 1.782
E(ectory)-.18 E(.)-1.11 E F1<ad54>144 678 Q F2 .22(If set, any traps on)
27.27 F F1(DEBUG)2.72 E F2(and)2.72 E F1(RETURN)2.72 E F2(ar)2.72 E 2.72
(ei)-.18 G .22(nherited by shell functions, com-)-2.72 F 1.573
(mand substitutions, and commands executed in a subshell envir)184 690 R
4.073(onment. The)-.18 F F1(DEBUG)184 702 Q F2(and)2.5 E F1(RETURN)2.5 E
F2(traps ar)2.5 E 2.5(en)-.18 G(ormally not inherited in such cases.)
-2.5 E F1<adad>144 714 Q F2 1.781(If no ar)27.88 F 1.782
(guments follow this option, then the positional parameters ar)-.18 F
4.282(eu)-.18 G(nset.)-4.282 E 1.303
(Otherwise, the positional parameters ar)184 726 R 3.803(es)-.18 G 1.303
+1 -1
View File
@@ -1,6 +1,6 @@
%!PS-Adobe-3.0
%%Creator: groff version 1.18.1
%%CreationDate: Wed Nov 24 15:49:24 2004
%%CreationDate: Tue Dec 7 10:57:57 2004
%%DocumentNeededResources: font Times-Roman
%%+ font Times-Bold
%%DocumentSuppliedResources: procset grops 1.18 1
+9 -2
View File
@@ -369,7 +369,7 @@ rl_generic_bind (type, keyseq, data, map)
if (ic < 0 || ic >= KEYMAP_SIZE)
return -1;
if (_rl_convert_meta_chars_to_ascii && META_CHAR (ic))
if (META_CHAR (ic) && _rl_convert_meta_chars_to_ascii)
{
ic = UNMETA (ic);
if (map[ESC].type == ISKMAP)
@@ -460,7 +460,14 @@ rl_translate_keyseq (seq, array, len)
else if (c == 'M')
{
i++;
array[l++] = ESC; /* ESC is meta-prefix */
/* XXX - should obey convert-meta setting? */
if (_rl_convert_meta_chars_to_ascii && _rl_keymap[ESC].type == ISKMAP)
array[l++] = ESC; /* ESC is meta-prefix */
else
{
i++;
array[l++] = META (seq[i]);
}
}
else if (c == 'C')
{
+1
View File
@@ -1355,6 +1355,7 @@ static struct {
int *value;
int flags;
} boolean_varlist [] = {
{ "bind-tty-special-chars", &_rl_bind_stty_chars, 0 },
{ "blink-matching-paren", &rl_blink_matching_paren, V_SPECIAL },
{ "byte-oriented", &rl_byte_oriented, 0 },
{ "completion-ignore-case", &_rl_completion_case_fold, 0 },
+9
View File
@@ -5235,6 +5235,15 @@ get_var_and_type (varname, value, quoted, varp, valp)
}
*varp = v;
}
else if (v && (ALL_ELEMENT_SUB (temp[0]) && temp[1] == ']'))
{
vtype = VT_VARIABLE;
*varp = v;
if (quoted & (Q_DOUBLE_QUOTES|Q_HERE_DOCUMENT))
*valp = dequote_string (value);
else
*valp = dequote_escapes (value);
}
else
return -1;
}
+7 -1
View File
@@ -496,4 +496,10 @@ one
123456789
9
9
./new-exp.tests: line 547: ABXD: parameter unset
h
h
--blah
--blah
lah
lah
./new-exp.tests: line 558: ABXD: parameter unset
+11
View File
@@ -542,6 +542,17 @@ recho ${1##*/}
${THIS_SH} ./new-exp5.sub
unset var
var=blah
# these had better agree
echo ${var[@]:3}
echo ${var:3}
echo ${var[@]//#/--}
echo ${var//#/--}
echo ${var[@]##?}
echo ${var##?}
# this must be last!
expect $0: 'ABXD: parameter unset'
recho ${ABXD:?"parameter unset"}