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
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
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)
-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
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.
{ "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
--- /dev/null
+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);
+}
first element of the F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE variable is set to the name of the func-
tion 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 D\bDE\bEB\bBU\bUG\bG trap (see the description of the t\btr\bra\bap\bp
- builtin under S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) is not inherited unless the
- function has been given the t\btr\bra\bac\bce\be attribute (see the description of the
- d\bde\bec\bcl\bla\bar\bre\be builtin below) or the -\b-o\bo f\bfu\bun\bnc\bct\btr\bra\bac\bce\be shell option has been
- enabled with the s\bse\bet\bt builtin (in which case all functions inherit the
- D\bDE\bEB\bBU\bUG\bG trap).
+ with the exception that the D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN traps (see the description
+ of the t\btr\bra\bap\bp builtin under S\bSH\bHE\bEL\bLL\bL B\bBU\bUI\bIL\bLT\bTI\bIN\bN C\bCO\bOM\bMM\bMA\bAN\bND\bDS\bS below) are not inher-
+ ited unless the function has been given the t\btr\bra\bac\bce\be attribute (see the
+ description of the d\bde\bec\bcl\bla\bar\bre\be builtin below) or the -\b-o\bo f\bfu\bun\bnc\bct\btr\bra\bac\bce\be shell
+ option has been enabled with the s\bse\bet\bt builtin (in which case all func-
+ tions inherit the D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN traps).
Variables local to the function may be declared with the l\blo\boc\bca\bal\bl builtin
command. Ordinarily, variables and their values are shared between the
-\b-r\br Make _\bn_\ba_\bm_\bes readonly. These names cannot then be assigned
values by subsequent assignment statements or unset.
-\b-t\bt Give each _\bn_\ba_\bm_\be the _\bt_\br_\ba_\bc_\be attribute. Traced functions
- inherit the D\bDE\bEB\bBU\bUG\bG trap from the calling shell. The trace
- attribute has no special meaning for variables.
- -\b-x\bx Mark _\bn_\ba_\bm_\bes for export to subsequent commands via the
+ inherit the D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN traps from the calling
+ shell. The trace attribute has no special meaning for
+ variables.
+ -\b-x\bx Mark _\bn_\ba_\bm_\bes for export to subsequent commands via the
environment.
- Using `+' instead of `-' turns off the attribute instead, with
- the exception that +\b+a\ba may not be used to destroy an array vari-
- able. When used in a function, makes each _\bn_\ba_\bm_\be local, as with
- the l\blo\boc\bca\bal\bl command. If a variable name is followed by =_\bv_\ba_\bl_\bu_\be,
- the value of the variable is set to _\bv_\ba_\bl_\bu_\be. The return value is
+ Using `+' instead of `-' turns off the attribute instead, with
+ the exception that +\b+a\ba may not be used to destroy an array vari-
+ able. When used in a function, makes each _\bn_\ba_\bm_\be local, as with
+ the l\blo\boc\bca\bal\bl command. If a variable name is followed by =_\bv_\ba_\bl_\bu_\be,
+ the value of the variable is set to _\bv_\ba_\bl_\bu_\be. The return value is
0 unless an invalid option is encountered, an attempt is made to
- define a function using ``-f foo=bar'', an attempt is made to
- assign a value to a readonly variable, an attempt is made to
- assign a value to an array variable without using the compound
- assignment syntax (see A\bAr\brr\bra\bay\bys\bs above), one of the _\bn_\ba_\bm_\be_\bs is not a
- valid shell variable name, an attempt is made to turn off read-
- only status for a readonly variable, an attempt is made to turn
+ define a function using ``-f foo=bar'', an attempt is made to
+ assign a value to a readonly variable, an attempt is made to
+ assign a value to an array variable without using the compound
+ assignment syntax (see A\bAr\brr\bra\bay\bys\bs above), one of the _\bn_\ba_\bm_\be_\bs is not a
+ valid shell variable name, an attempt is made to turn off read-
+ only status for a readonly variable, an attempt is made to turn
off array status for an array variable, or an attempt is made to
display a non-existent function with -\b-f\bf.
d\bdi\bir\brs\bs [\b[-\b-c\bcl\blp\bpv\bv]\b] [\b[+\b+_\bn]\b] [\b[-\b-_\bn]\b]
- Without options, displays the list of currently remembered
- directories. The default display is on a single line with
- directory names separated by spaces. Directories are added to
- the list with the p\bpu\bus\bsh\bhd\bd command; the p\bpo\bop\bpd\bd command removes
+ Without options, displays the list of currently remembered
+ directories. The default display is on a single line with
+ directory names separated by spaces. Directories are added to
+ the list with the p\bpu\bus\bsh\bhd\bd command; the p\bpo\bop\bpd\bd command removes
entries from the list.
+\b+_\bn Displays the _\bnth entry counting from the left of the list
shown by d\bdi\bir\brs\bs when invoked without options, starting with
zero.
- -\b-_\bn Displays the _\bnth entry counting from the right of the
+ -\b-_\bn Displays the _\bnth entry counting from the right of the
list shown by d\bdi\bir\brs\bs when invoked without options, starting
with zero.
-\b-c\bc Clears the directory stack by deleting all of the
entries.
- -\b-l\bl Produces a longer listing; the default listing format
+ -\b-l\bl Produces a longer listing; the default listing format
uses a tilde to denote the home directory.
-\b-p\bp Print the directory stack with one entry per line.
- -\b-v\bv Print the directory stack with one entry per line, pre-
+ -\b-v\bv Print the directory stack with one entry per line, pre-
fixing each entry with its index in the stack.
- The return value is 0 unless an invalid option is supplied or _\bn
+ The return value is 0 unless an invalid option is supplied or _\bn
indexes beyond the end of the directory stack.
d\bdi\bis\bso\bow\bwn\bn [-\b-a\bar\br] [-\b-h\bh] [_\bj_\bo_\bb_\bs_\bp_\be_\bc ...]
- Without options, each _\bj_\bo_\bb_\bs_\bp_\be_\bc is removed from the table of
- active jobs. If the -\b-h\bh option is given, each _\bj_\bo_\bb_\bs_\bp_\be_\bc is not
+ Without options, each _\bj_\bo_\bb_\bs_\bp_\be_\bc is removed from the table of
+ active jobs. If the -\b-h\bh option is given, each _\bj_\bo_\bb_\bs_\bp_\be_\bc is not
removed from the table, but is marked so that S\bSI\bIG\bGH\bHU\bUP\bP is not sent
- to the job if the shell receives a S\bSI\bIG\bGH\bHU\bUP\bP. If no _\bj_\bo_\bb_\bs_\bp_\be_\bc is
- present, and neither the -\b-a\ba nor the -\b-r\br option is supplied, the
- _\bc_\bu_\br_\br_\be_\bn_\bt _\bj_\bo_\bb is used. If no _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied, the -\b-a\ba option
- means to remove or mark all jobs; the -\b-r\br option without a _\bj_\bo_\bb_\b-
- _\bs_\bp_\be_\bc argument restricts operation to running jobs. The return
+ to the job if the shell receives a S\bSI\bIG\bGH\bHU\bUP\bP. If no _\bj_\bo_\bb_\bs_\bp_\be_\bc is
+ present, and neither the -\b-a\ba nor the -\b-r\br option is supplied, the
+ _\bc_\bu_\br_\br_\be_\bn_\bt _\bj_\bo_\bb is used. If no _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied, the -\b-a\ba option
+ means to remove or mark all jobs; the -\b-r\br option without a _\bj_\bo_\bb_\b-
+ _\bs_\bp_\be_\bc argument restricts operation to running jobs. The return
value is 0 unless a _\bj_\bo_\bb_\bs_\bp_\be_\bc does not specify a valid job.
e\bec\bch\bho\bo [-\b-n\bne\beE\bE] [_\ba_\br_\bg ...]
- Output the _\ba_\br_\bgs, separated by spaces, followed by a newline.
+ Output the _\ba_\br_\bgs, separated by spaces, followed by a newline.
The return status is always 0. If -\b-n\bn is specified, the trailing
- newline is suppressed. If the -\b-e\be option is given, interpreta-
- tion of the following backslash-escaped characters is enabled.
- The -\b-E\bE option disables the interpretation of these escape char-
- acters, even on systems where they are interpreted by default.
- The x\bxp\bpg\bg_\b_e\bec\bch\bho\bo shell option may be used to dynamically determine
- whether or not e\bec\bch\bho\bo expands these escape characters by default.
- e\bec\bch\bho\bo does not interpret -\b--\b- to mean the end of options. e\bec\bch\bho\bo
+ newline is suppressed. If the -\b-e\be option is given, interpreta-
+ tion of the following backslash-escaped characters is enabled.
+ The -\b-E\bE option disables the interpretation of these escape char-
+ acters, even on systems where they are interpreted by default.
+ The x\bxp\bpg\bg_\b_e\bec\bch\bho\bo shell option may be used to dynamically determine
+ whether or not e\bec\bch\bho\bo expands these escape characters by default.
+ e\bec\bch\bho\bo does not interpret -\b--\b- to mean the end of options. e\bec\bch\bho\bo
interprets the following escape sequences:
\\b\a\ba alert (bell)
\\b\b\bb backspace
\\b\t\bt horizontal tab
\\b\v\bv vertical tab
\\b\\\b\ backslash
- \\b\0\b0_\bn_\bn_\bn the eight-bit character whose value is the octal value
+ \\b\0\b0_\bn_\bn_\bn the eight-bit character whose value is the octal value
_\bn_\bn_\bn (zero to three octal digits)
- \\b\_\bn_\bn_\bn the eight-bit character whose value is the octal value
+ \\b\_\bn_\bn_\bn the eight-bit character whose value is the octal value
_\bn_\bn_\bn (one to three octal digits)
- \\b\x\bx_\bH_\bH the eight-bit character whose value is the hexadecimal
+ \\b\x\bx_\bH_\bH the eight-bit character whose value is the hexadecimal
value _\bH_\bH (one or two hex digits)
e\ben\bna\bab\bbl\ble\be [-\b-a\bad\bdn\bnp\bps\bs] [-\b-f\bf _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be] [_\bn_\ba_\bm_\be ...]
- Enable and disable builtin shell commands. Disabling a builtin
+ Enable and disable builtin shell commands. Disabling a builtin
allows a disk command which has the same name as a shell builtin
- to be executed without specifying a full pathname, even though
- the shell normally searches for builtins before disk commands.
- If -\b-n\bn is used, each _\bn_\ba_\bm_\be is disabled; otherwise, _\bn_\ba_\bm_\be_\bs are
+ to be executed without specifying a full pathname, even though
+ the shell normally searches for builtins before disk commands.
+ If -\b-n\bn is used, each _\bn_\ba_\bm_\be is disabled; otherwise, _\bn_\ba_\bm_\be_\bs are
enabled. For example, to use the t\bte\bes\bst\bt binary found via the P\bPA\bAT\bTH\bH
- instead of the shell builtin version, run ``enable -n test''.
- The -\b-f\bf option means to load the new builtin command _\bn_\ba_\bm_\be from
+ instead of the shell builtin version, run ``enable -n test''.
+ The -\b-f\bf option means to load the new builtin command _\bn_\ba_\bm_\be from
shared object _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be, on systems that support dynamic loading.
- The -\b-d\bd option will delete a builtin previously loaded with -\b-f\bf.
+ The -\b-d\bd option will delete a builtin previously loaded with -\b-f\bf.
If no _\bn_\ba_\bm_\be arguments are given, or if the -\b-p\bp option is supplied,
a list of shell builtins is printed. With no other option argu-
- ments, the list consists of all enabled shell builtins. If -\b-n\bn
- is supplied, only disabled builtins are printed. If -\b-a\ba is sup-
- plied, the list printed includes all builtins, with an indica-
- tion of whether or not each is enabled. If -\b-s\bs is supplied, the
- output is restricted to the POSIX _\bs_\bp_\be_\bc_\bi_\ba_\bl builtins. The return
- value is 0 unless a _\bn_\ba_\bm_\be is not a shell builtin or there is an
+ ments, the list consists of all enabled shell builtins. If -\b-n\bn
+ is supplied, only disabled builtins are printed. If -\b-a\ba is sup-
+ plied, the list printed includes all builtins, with an indica-
+ tion of whether or not each is enabled. If -\b-s\bs is supplied, the
+ output is restricted to the POSIX _\bs_\bp_\be_\bc_\bi_\ba_\bl builtins. The return
+ value is 0 unless a _\bn_\ba_\bm_\be is not a shell builtin or there is an
error loading a new builtin from a shared object.
e\bev\bva\bal\bl [_\ba_\br_\bg ...]
- The _\ba_\br_\bgs are read and concatenated together into a single com-
- mand. This command is then read and executed by the shell, and
- its exit status is returned as the value of e\bev\bva\bal\bl. If there are
+ The _\ba_\br_\bgs are read and concatenated together into a single com-
+ mand. This command is then read and executed by the shell, and
+ its exit status is returned as the value of e\bev\bva\bal\bl. If there are
no _\ba_\br_\bg_\bs, or only null arguments, e\bev\bva\bal\bl returns 0.
e\bex\bxe\bec\bc [-\b-c\bcl\bl] [-\b-a\ba _\bn_\ba_\bm_\be] [_\bc_\bo_\bm_\bm_\ba_\bn_\bd [_\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs]]
- If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is specified, it replaces the shell. No new process
- is created. The _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs become the arguments to _\bc_\bo_\bm_\bm_\ba_\bn_\bd. If
+ If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is specified, it replaces the shell. No new process
+ is created. The _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs become the arguments to _\bc_\bo_\bm_\bm_\ba_\bn_\bd. If
the -\b-l\bl option is supplied, the shell places a dash at the begin-
ning of the zeroth arg passed to _\bc_\bo_\bm_\bm_\ba_\bn_\bd. This is what _\bl_\bo_\bg_\bi_\bn(1)
does. The -\b-c\bc option causes _\bc_\bo_\bm_\bm_\ba_\bn_\bd to be executed with an empty
- environment. If -\b-a\ba is supplied, the shell passes _\bn_\ba_\bm_\be as the
- zeroth argument to the executed command. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd cannot be
- executed for some reason, a non-interactive shell exits, unless
- the shell option e\bex\bxe\bec\bcf\bfa\bai\bil\bl is enabled, in which case it returns
- failure. An interactive shell returns failure if the file can-
- not be executed. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is not specified, any redirections
- take effect in the current shell, and the return status is 0.
+ environment. If -\b-a\ba is supplied, the shell passes _\bn_\ba_\bm_\be as the
+ zeroth argument to the executed command. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd cannot be
+ executed for some reason, a non-interactive shell exits, unless
+ the shell option e\bex\bxe\bec\bcf\bfa\bai\bil\bl is enabled, in which case it returns
+ failure. An interactive shell returns failure if the file can-
+ not be executed. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is not specified, any redirections
+ take effect in the current shell, and the return status is 0.
If there is a redirection error, the return status is 1.
e\bex\bxi\bit\bt [_\bn]
- Cause the shell to exit with a status of _\bn. If _\bn is omitted,
+ Cause the shell to exit with a status of _\bn. If _\bn is omitted,
the exit status is that of the last command executed. A trap on
E\bEX\bXI\bIT\bT is executed before the shell terminates.
e\bex\bxp\bpo\bor\brt\bt [-\b-f\bfn\bn] [_\bn_\ba_\bm_\be[=_\bw_\bo_\br_\bd]] ...
e\bex\bxp\bpo\bor\brt\bt -\b-p\bp
- The supplied _\bn_\ba_\bm_\be_\bs are marked for automatic export to the envi-
- ronment of subsequently executed commands. If the -\b-f\bf option is
- given, the _\bn_\ba_\bm_\be_\bs refer to functions. If no _\bn_\ba_\bm_\be_\bs are given, or
- if the -\b-p\bp option is supplied, a list of all names that are
- exported in this shell is printed. The -\b-n\bn option causes the
- export property to be removed from each _\bn_\ba_\bm_\be. If a variable
- name is followed by =_\bw_\bo_\br_\bd, the value of the variable is set to
- _\bw_\bo_\br_\bd. e\bex\bxp\bpo\bor\brt\bt returns an exit status of 0 unless an invalid
- option is encountered, one of the _\bn_\ba_\bm_\be_\bs is not a valid shell
+ The supplied _\bn_\ba_\bm_\be_\bs are marked for automatic export to the envi-
+ ronment of subsequently executed commands. If the -\b-f\bf option is
+ given, the _\bn_\ba_\bm_\be_\bs refer to functions. If no _\bn_\ba_\bm_\be_\bs are given, or
+ if the -\b-p\bp option is supplied, a list of all names that are
+ exported in this shell is printed. The -\b-n\bn option causes the
+ export property to be removed from each _\bn_\ba_\bm_\be. If a variable
+ name is followed by =_\bw_\bo_\br_\bd, the value of the variable is set to
+ _\bw_\bo_\br_\bd. e\bex\bxp\bpo\bor\brt\bt returns an exit status of 0 unless an invalid
+ option is encountered, one of the _\bn_\ba_\bm_\be_\bs is not a valid shell
variable name, or -\b-f\bf is supplied with a _\bn_\ba_\bm_\be that is not a func-
tion.
f\bfc\bc [-\b-e\be _\be_\bn_\ba_\bm_\be] [-\b-n\bnl\blr\br] [_\bf_\bi_\br_\bs_\bt] [_\bl_\ba_\bs_\bt]
f\bfc\bc -\b-s\bs [_\bp_\ba_\bt=_\br_\be_\bp] [_\bc_\bm_\bd]
- Fix Command. In the first form, a range of commands from _\bf_\bi_\br_\bs_\bt
- to _\bl_\ba_\bs_\bt is selected from the history list. _\bF_\bi_\br_\bs_\bt and _\bl_\ba_\bs_\bt may
- be specified as a string (to locate the last command beginning
- with that string) or as a number (an index into the history
+ Fix Command. In the first form, a range of commands from _\bf_\bi_\br_\bs_\bt
+ to _\bl_\ba_\bs_\bt is selected from the history list. _\bF_\bi_\br_\bs_\bt and _\bl_\ba_\bs_\bt may
+ be specified as a string (to locate the last command beginning
+ with that string) or as a number (an index into the history
list, where a negative number is used as an offset from the cur-
rent command number). If _\bl_\ba_\bs_\bt is not specified it is set to the
- current command for listing (so that ``fc -l -10'' prints the
+ current command for listing (so that ``fc -l -10'' prints the
last 10 commands) and to _\bf_\bi_\br_\bs_\bt otherwise. If _\bf_\bi_\br_\bs_\bt is not spec-
- ified it is set to the previous command for editing and -16 for
+ ified it is set to the previous command for editing and -16 for
listing.
- The -\b-n\bn option suppresses the command numbers when listing. The
- -\b-r\br option reverses the order of the commands. If the -\b-l\bl option
- is given, the commands are listed on standard output. Other-
- wise, the editor given by _\be_\bn_\ba_\bm_\be is invoked on a file containing
- those commands. If _\be_\bn_\ba_\bm_\be is not given, the value of the F\bFC\bCE\bED\bDI\bIT\bT
- variable is used, and the value of E\bED\bDI\bIT\bTO\bOR\bR if F\bFC\bCE\bED\bDI\bIT\bT is not set.
- If neither variable is set, _\bv_\bi is used. When editing is com-
+ The -\b-n\bn option suppresses the command numbers when listing. The
+ -\b-r\br option reverses the order of the commands. If the -\b-l\bl option
+ is given, the commands are listed on standard output. Other-
+ wise, the editor given by _\be_\bn_\ba_\bm_\be is invoked on a file containing
+ those commands. If _\be_\bn_\ba_\bm_\be is not given, the value of the F\bFC\bCE\bED\bDI\bIT\bT
+ variable is used, and the value of E\bED\bDI\bIT\bTO\bOR\bR if F\bFC\bCE\bED\bDI\bIT\bT is not set.
+ If neither variable is set, _\bv_\bi is used. When editing is com-
plete, the edited commands are echoed and executed.
- In the second form, _\bc_\bo_\bm_\bm_\ba_\bn_\bd is re-executed after each instance
- of _\bp_\ba_\bt is replaced by _\br_\be_\bp. A useful alias to use with this is
- ``r="fc -s"'', so that typing ``r cc'' runs the last command
+ In the second form, _\bc_\bo_\bm_\bm_\ba_\bn_\bd is re-executed after each instance
+ of _\bp_\ba_\bt is replaced by _\br_\be_\bp. A useful alias to use with this is
+ ``r="fc -s"'', so that typing ``r cc'' runs the last command
beginning with ``cc'' and typing ``r'' re-executes the last com-
mand.
- If the first form is used, the return value is 0 unless an
- invalid option is encountered or _\bf_\bi_\br_\bs_\bt or _\bl_\ba_\bs_\bt specify history
- lines out of range. If the -\b-e\be option is supplied, the return
+ If the first form is used, the return value is 0 unless an
+ invalid option is encountered or _\bf_\bi_\br_\bs_\bt or _\bl_\ba_\bs_\bt specify history
+ lines out of range. If the -\b-e\be option is supplied, the return
value is the value of the last command executed or failure if an
error occurs with the temporary file of commands. If the second
- form is used, the return status is that of the command re-exe-
- cuted, unless _\bc_\bm_\bd does not specify a valid history line, in
+ form is used, the return status is that of the command re-exe-
+ cuted, unless _\bc_\bm_\bd does not specify a valid history line, in
which case f\bfc\bc returns failure.
f\bfg\bg [_\bj_\bo_\bb_\bs_\bp_\be_\bc]
- Resume _\bj_\bo_\bb_\bs_\bp_\be_\bc in the foreground, and make it the current job.
+ Resume _\bj_\bo_\bb_\bs_\bp_\be_\bc in the foreground, and make it the current job.
If _\bj_\bo_\bb_\bs_\bp_\be_\bc is not present, the shell's notion of the _\bc_\bu_\br_\br_\be_\bn_\bt _\bj_\bo_\bb
- is used. The return value is that of the command placed into
- the foreground, or failure if run when job control is disabled
+ is used. The return value is that of the command placed into
+ the foreground, or failure if run when job control is disabled
or, when run with job control enabled, if _\bj_\bo_\bb_\bs_\bp_\be_\bc does not spec-
- ify a valid job or _\bj_\bo_\bb_\bs_\bp_\be_\bc specifies a job that was started
+ ify a valid job or _\bj_\bo_\bb_\bs_\bp_\be_\bc specifies a job that was started
without job control.
g\bge\bet\bto\bop\bpt\bts\bs _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg _\bn_\ba_\bm_\be [_\ba_\br_\bg_\bs]
- g\bge\bet\bto\bop\bpt\bts\bs is used by shell procedures to parse positional parame-
- ters. _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg contains the option characters to be recog-
- nized; if a character is followed by a colon, the option is
- expected to have an argument, which should be separated from it
- by white space. The colon and question mark characters may not
- be used as option characters. Each time it is invoked, g\bge\bet\bto\bop\bpt\bts\bs
- places the next option in the shell variable _\bn_\ba_\bm_\be, initializing
+ g\bge\bet\bto\bop\bpt\bts\bs is used by shell procedures to parse positional parame-
+ ters. _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg contains the option characters to be recog-
+ nized; if a character is followed by a colon, the option is
+ expected to have an argument, which should be separated from it
+ by white space. The colon and question mark characters may not
+ be used as option characters. Each time it is invoked, g\bge\bet\bto\bop\bpt\bts\bs
+ places the next option in the shell variable _\bn_\ba_\bm_\be, initializing
_\bn_\ba_\bm_\be if it does not exist, and the index of the next argument to
be processed into the variable O\bOP\bPT\bTI\bIN\bND\bD. O\bOP\bPT\bTI\bIN\bND\bD is initialized to
- 1 each time the shell or a shell script is invoked. When an
- option requires an argument, g\bge\bet\bto\bop\bpt\bts\bs places that argument into
- the variable O\bOP\bPT\bTA\bAR\bRG\bG. The shell does not reset O\bOP\bPT\bTI\bIN\bND\bD automati-
- cally; it must be manually reset between multiple calls to
+ 1 each time the shell or a shell script is invoked. When an
+ option requires an argument, g\bge\bet\bto\bop\bpt\bts\bs places that argument into
+ the variable O\bOP\bPT\bTA\bAR\bRG\bG. The shell does not reset O\bOP\bPT\bTI\bIN\bND\bD automati-
+ cally; it must be manually reset between multiple calls to
g\bge\bet\bto\bop\bpt\bts\bs within the same shell invocation if a new set of parame-
ters is to be used.
- When the end of options is encountered, g\bge\bet\bto\bop\bpt\bts\bs exits with a
- return value greater than zero. O\bOP\bPT\bTI\bIN\bND\bD is set to the index of
+ When the end of options is encountered, g\bge\bet\bto\bop\bpt\bts\bs exits with a
+ return value greater than zero. O\bOP\bPT\bTI\bIN\bND\bD is set to the index of
the first non-option argument, and n\bna\bam\bme\be is set to ?.
- g\bge\bet\bto\bop\bpt\bts\bs normally parses the positional parameters, but if more
+ g\bge\bet\bto\bop\bpt\bts\bs normally parses the positional parameters, but if more
arguments are given in _\ba_\br_\bg_\bs, g\bge\bet\bto\bop\bpt\bts\bs parses those instead.
- g\bge\bet\bto\bop\bpt\bts\bs can report errors in two ways. If the first character
- of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is a colon, _\bs_\bi_\bl_\be_\bn_\bt error reporting is used. In
- normal operation diagnostic messages are printed when invalid
- options or missing option arguments are encountered. If the
- variable O\bOP\bPT\bTE\bER\bRR\bR is set to 0, no error messages will be dis-
+ g\bge\bet\bto\bop\bpt\bts\bs can report errors in two ways. If the first character
+ of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is a colon, _\bs_\bi_\bl_\be_\bn_\bt error reporting is used. In
+ normal operation diagnostic messages are printed when invalid
+ options or missing option arguments are encountered. If the
+ variable O\bOP\bPT\bTE\bER\bRR\bR is set to 0, no error messages will be dis-
played, even if the first character of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is not a colon.
If an invalid option is seen, g\bge\bet\bto\bop\bpt\bts\bs places ? into _\bn_\ba_\bm_\be and, if
- not silent, prints an error message and unsets O\bOP\bPT\bTA\bAR\bRG\bG. If
- g\bge\bet\bto\bop\bpt\bts\bs is silent, the option character found is placed in
+ not silent, prints an error message and unsets O\bOP\bPT\bTA\bAR\bRG\bG. If
+ g\bge\bet\bto\bop\bpt\bts\bs is silent, the option character found is placed in
O\bOP\bPT\bTA\bAR\bRG\bG and no diagnostic message is printed.
- If a required argument is not found, and g\bge\bet\bto\bop\bpt\bts\bs is not silent,
- a question mark (?\b?) is placed in _\bn_\ba_\bm_\be, O\bOP\bPT\bTA\bAR\bRG\bG is unset, and a
- diagnostic message is printed. If g\bge\bet\bto\bop\bpt\bts\bs is silent, then a
- colon (:\b:) is placed in _\bn_\ba_\bm_\be and O\bOP\bPT\bTA\bAR\bRG\bG is set to the option
+ If a required argument is not found, and g\bge\bet\bto\bop\bpt\bts\bs is not silent,
+ a question mark (?\b?) is placed in _\bn_\ba_\bm_\be, O\bOP\bPT\bTA\bAR\bRG\bG is unset, and a
+ diagnostic message is printed. If g\bge\bet\bto\bop\bpt\bts\bs is silent, then a
+ colon (:\b:) is placed in _\bn_\ba_\bm_\be and O\bOP\bPT\bTA\bAR\bRG\bG is set to the option
character found.
- g\bge\bet\bto\bop\bpt\bts\bs returns true if an option, specified or unspecified, is
+ g\bge\bet\bto\bop\bpt\bts\bs returns true if an option, specified or unspecified, is
found. It returns false if the end of options is encountered or
an error occurs.
h\bha\bas\bsh\bh [-\b-l\blr\br] [-\b-p\bp _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be] [-\b-d\bdt\bt] [_\bn_\ba_\bm_\be]
- For each _\bn_\ba_\bm_\be, the full file name of the command is determined
+ For each _\bn_\ba_\bm_\be, the full file name of the command is determined
by searching the directories in $\b$P\bPA\bAT\bTH\bH and remembered. If the -\b-p\bp
option is supplied, no path search is performed, and _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be is
used as the full file name of the command. The -\b-r\br option causes
- the shell to forget all remembered locations. The -\b-d\bd option
+ the shell to forget all remembered locations. The -\b-d\bd option
causes the shell to forget the remembered location of each _\bn_\ba_\bm_\be.
- If the -\b-t\bt option is supplied, the full pathname to which each
- _\bn_\ba_\bm_\be corresponds is printed. If multiple _\bn_\ba_\bm_\be arguments are
- supplied with -\b-t\bt, the _\bn_\ba_\bm_\be is printed before the hashed full
+ If the -\b-t\bt option is supplied, the full pathname to which each
+ _\bn_\ba_\bm_\be corresponds is printed. If multiple _\bn_\ba_\bm_\be arguments are
+ supplied with -\b-t\bt, the _\bn_\ba_\bm_\be is printed before the hashed full
pathname. The -\b-l\bl option causes output to be displayed in a for-
- mat that may be reused as input. If no arguments are given, or
+ mat that may be reused as input. If no arguments are given, or
if only -\b-l\bl is supplied, information about remembered commands is
- printed. The return status is true unless a _\bn_\ba_\bm_\be is not found
+ printed. The return status is true unless a _\bn_\ba_\bm_\be is not found
or an invalid option is supplied.
h\bhe\bel\blp\bp [-\b-s\bs] [_\bp_\ba_\bt_\bt_\be_\br_\bn]
- Display helpful information about builtin commands. If _\bp_\ba_\bt_\bt_\be_\br_\bn
- is specified, h\bhe\bel\blp\bp gives detailed help on all commands matching
- _\bp_\ba_\bt_\bt_\be_\br_\bn; otherwise help for all the builtins and shell control
- structures is printed. The -\b-s\bs option restricts the information
- displayed to a short usage synopsis. The return status is 0
+ Display helpful information about builtin commands. If _\bp_\ba_\bt_\bt_\be_\br_\bn
+ is specified, h\bhe\bel\blp\bp gives detailed help on all commands matching
+ _\bp_\ba_\bt_\bt_\be_\br_\bn; otherwise help for all the builtins and shell control
+ structures is printed. The -\b-s\bs option restricts the information
+ displayed to a short usage synopsis. The return status is 0
unless no command matches _\bp_\ba_\bt_\bt_\be_\br_\bn.
h\bhi\bis\bst\bto\bor\bry\by [\b[_\bn]\b]
h\bhi\bis\bst\bto\bor\bry\by -\b-s\bs _\ba_\br_\bg [_\ba_\br_\bg _\b._\b._\b.]
With no options, display the command history list with line num-
bers. Lines listed with a *\b* have been modified. An argument of
- _\bn lists only the last _\bn lines. If the shell variable H\bHI\bIS\bST\bTT\bTI\bIM\bME\bE-\b-
- F\bFO\bOR\bRM\bMA\bAT\bT is set and not null, it is used as a format string for
- _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to display the time stamp associated with each dis-
- played history entry. No intervening blank is printed between
- the formatted time stamp and the history line. If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be is
- supplied, it is used as the name of the history file; if not,
- the value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is used. Options, if supplied, have the
+ _\bn lists only the last _\bn lines. If the shell variable H\bHI\bIS\bST\bTT\bTI\bIM\bME\bE-\b-
+ F\bFO\bOR\bRM\bMA\bAT\bT is set and not null, it is used as a format string for
+ _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to display the time stamp associated with each dis-
+ played history entry. No intervening blank is printed between
+ the formatted time stamp and the history line. If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be is
+ supplied, it is used as the name of the history file; if not,
+ the value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is used. Options, if supplied, have the
following meanings:
-\b-c\bc Clear the history list by deleting all the entries.
-\b-d\bd _\bo_\bf_\bf_\bs_\be_\bt
Delete the history entry at position _\bo_\bf_\bf_\bs_\be_\bt.
- -\b-a\ba Append the ``new'' history lines (history lines entered
- since the beginning of the current b\bba\bas\bsh\bh session) to the
+ -\b-a\ba Append the ``new'' history lines (history lines entered
+ since the beginning of the current b\bba\bas\bsh\bh session) to the
history file.
- -\b-n\bn Read the history lines not already read from the history
- file into the current history list. These are lines
- appended to the history file since the beginning of the
+ -\b-n\bn Read the history lines not already read from the history
+ file into the current history list. These are lines
+ appended to the history file since the beginning of the
current b\bba\bas\bsh\bh session.
-\b-r\br Read the contents of the history file and use them as the
current history.
- -\b-w\bw Write the current history to the history file, overwrit-
+ -\b-w\bw Write the current history to the history file, overwrit-
ing the history file's contents.
- -\b-p\bp Perform history substitution on the following _\ba_\br_\bg_\bs and
- display the result on the standard output. Does not
- store the results in the history list. Each _\ba_\br_\bg must be
+ -\b-p\bp Perform history substitution on the following _\ba_\br_\bg_\bs and
+ display the result on the standard output. Does not
+ store the results in the history list. Each _\ba_\br_\bg must be
quoted to disable normal history expansion.
- -\b-s\bs Store the _\ba_\br_\bg_\bs in the history list as a single entry.
- The last command in the history list is removed before
+ -\b-s\bs Store the _\ba_\br_\bg_\bs in the history list as a single entry.
+ The last command in the history list is removed before
the _\ba_\br_\bg_\bs are added.
If the H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT is set, the time stamp information associ-
- ated with each history entry is written to the history file.
- The return value is 0 unless an invalid option is encountered,
- an error occurs while reading or writing the history file, an
- invalid _\bo_\bf_\bf_\bs_\be_\bt is supplied as an argument to -\b-d\bd, or the history
+ ated with each history entry is written to the history file.
+ The return value is 0 unless an invalid option is encountered,
+ an error occurs while reading or writing the history file, an
+ invalid _\bo_\bf_\bf_\bs_\be_\bt is supplied as an argument to -\b-d\bd, or the history
expansion supplied as an argument to -\b-p\bp fails.
j\bjo\bob\bbs\bs [-\b-l\bln\bnp\bpr\brs\bs] [ _\bj_\bo_\bb_\bs_\bp_\be_\bc ... ]
The first form lists the active jobs. The options have the fol-
lowing meanings:
-\b-l\bl List process IDs in addition to the normal information.
- -\b-p\bp List only the process ID of the job's process group
+ -\b-p\bp List only the process ID of the job's process group
leader.
- -\b-n\bn Display information only about jobs that have changed
- status since the user was last notified of their status.
+ -\b-n\bn Display information only about jobs that have changed
+ status since the user was last notified of their status.
-\b-r\br Restrict output to running jobs.
-\b-s\bs Restrict output to stopped jobs.
- If _\bj_\bo_\bb_\bs_\bp_\be_\bc is given, output is restricted to information about
- that job. The return status is 0 unless an invalid option is
+ If _\bj_\bo_\bb_\bs_\bp_\be_\bc is given, output is restricted to information about
+ that job. The return status is 0 unless an invalid option is
encountered or an invalid _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied.
If the -\b-x\bx option is supplied, j\bjo\bob\bbs\bs replaces any _\bj_\bo_\bb_\bs_\bp_\be_\bc found in
- _\bc_\bo_\bm_\bm_\ba_\bn_\bd or _\ba_\br_\bg_\bs with the corresponding process group ID, and
+ _\bc_\bo_\bm_\bm_\ba_\bn_\bd or _\ba_\br_\bg_\bs with the corresponding process group ID, and
executes _\bc_\bo_\bm_\bm_\ba_\bn_\bd passing it _\ba_\br_\bg_\bs, returning its exit status.
k\bki\bil\bll\bl [-\b-s\bs _\bs_\bi_\bg_\bs_\bp_\be_\bc | -\b-n\bn _\bs_\bi_\bg_\bn_\bu_\bm | -\b-_\bs_\bi_\bg_\bs_\bp_\be_\bc] [_\bp_\bi_\bd | _\bj_\bo_\bb_\bs_\bp_\be_\bc] ...
k\bki\bil\bll\bl -\b-l\bl [_\bs_\bi_\bg_\bs_\bp_\be_\bc | _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs]
- Send the signal named by _\bs_\bi_\bg_\bs_\bp_\be_\bc or _\bs_\bi_\bg_\bn_\bu_\bm to the processes
- named by _\bp_\bi_\bd or _\bj_\bo_\bb_\bs_\bp_\be_\bc. _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a case-insensitive
- signal name such as S\bSI\bIG\bGK\bKI\bIL\bLL\bL (with or without the S\bSI\bIG\bG prefix) or
- a signal number; _\bs_\bi_\bg_\bn_\bu_\bm is a signal number. If _\bs_\bi_\bg_\bs_\bp_\be_\bc is not
- present, then S\bSI\bIG\bGT\bTE\bER\bRM\bM is assumed. An argument of -\b-l\bl lists the
- signal names. If any arguments are supplied when -\b-l\bl is given,
- the names of the signals corresponding to the arguments are
+ Send the signal named by _\bs_\bi_\bg_\bs_\bp_\be_\bc or _\bs_\bi_\bg_\bn_\bu_\bm to the processes
+ named by _\bp_\bi_\bd or _\bj_\bo_\bb_\bs_\bp_\be_\bc. _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a case-insensitive
+ signal name such as S\bSI\bIG\bGK\bKI\bIL\bLL\bL (with or without the S\bSI\bIG\bG prefix) or
+ a signal number; _\bs_\bi_\bg_\bn_\bu_\bm is a signal number. If _\bs_\bi_\bg_\bs_\bp_\be_\bc is not
+ present, then S\bSI\bIG\bGT\bTE\bER\bRM\bM is assumed. An argument of -\b-l\bl lists the
+ signal names. If any arguments are supplied when -\b-l\bl is given,
+ the names of the signals corresponding to the arguments are
listed, and the return status is 0. The _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs argument to
- -\b-l\bl is a number specifying either a signal number or the exit
- status of a process terminated by a signal. k\bki\bil\bll\bl returns true
- if at least one signal was successfully sent, or false if an
+ -\b-l\bl is a number specifying either a signal number or the exit
+ status of a process terminated by a signal. k\bki\bil\bll\bl returns true
+ if at least one signal was successfully sent, or false if an
error occurs or an invalid option is encountered.
l\ble\bet\bt _\ba_\br_\bg [_\ba_\br_\bg ...]
Each _\ba_\br_\bg is an arithmetic expression to be evaluated (see A\bAR\bRI\bIT\bTH\bH-\b-
- M\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN). If the last _\ba_\br_\bg evaluates to 0, l\ble\bet\bt returns
+ M\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN). If the last _\ba_\br_\bg evaluates to 0, l\ble\bet\bt returns
1; 0 is returned otherwise.
l\blo\boc\bca\bal\bl [_\bo_\bp_\bt_\bi_\bo_\bn] [_\bn_\ba_\bm_\be[=_\bv_\ba_\bl_\bu_\be] ...]
- For each argument, a local variable named _\bn_\ba_\bm_\be is created, and
- assigned _\bv_\ba_\bl_\bu_\be. The _\bo_\bp_\bt_\bi_\bo_\bn can be any of the options accepted
+ For each argument, a local variable named _\bn_\ba_\bm_\be is created, and
+ assigned _\bv_\ba_\bl_\bu_\be. The _\bo_\bp_\bt_\bi_\bo_\bn can be any of the options accepted
by d\bde\bec\bcl\bla\bar\bre\be. When l\blo\boc\bca\bal\bl is used within a function, it causes the
- variable _\bn_\ba_\bm_\be to have a visible scope restricted to that func-
+ variable _\bn_\ba_\bm_\be to have a visible scope restricted to that func-
tion and its children. With no operands, l\blo\boc\bca\bal\bl writes a list of
- local variables to the standard output. It is an error to use
+ local variables to the standard output. It is an error to use
l\blo\boc\bca\bal\bl when not within a function. The return status is 0 unless
- l\blo\boc\bca\bal\bl is used outside a function, an invalid _\bn_\ba_\bm_\be is supplied,
+ l\blo\boc\bca\bal\bl is used outside a function, an invalid _\bn_\ba_\bm_\be is supplied,
or _\bn_\ba_\bm_\be is a readonly variable.
l\blo\bog\bgo\bou\but\bt Exit a login shell.
p\bpo\bop\bpd\bd [-n\bn] [+_\bn] [-_\bn]
- Removes entries from the directory stack. With no arguments,
- removes the top directory from the stack, and performs a c\bcd\bd to
+ Removes entries from the directory stack. With no arguments,
+ removes the top directory from the stack, and performs a c\bcd\bd to
the new top directory. Arguments, if supplied, have the follow-
ing meanings:
- +\b+_\bn Removes the _\bnth entry counting from the left of the list
- shown by d\bdi\bir\brs\bs, starting with zero. For example: ``popd
+ +\b+_\bn Removes the _\bnth entry counting from the left of the list
+ shown by d\bdi\bir\brs\bs, starting with zero. For example: ``popd
+0'' removes the first directory, ``popd +1'' the second.
-\b-_\bn Removes the _\bnth entry counting from the right of the list
- shown by d\bdi\bir\brs\bs, starting with zero. For example: ``popd
- -0'' removes the last directory, ``popd -1'' the next to
+ shown by d\bdi\bir\brs\bs, starting with zero. For example: ``popd
+ -0'' removes the last directory, ``popd -1'' the next to
last.
- -\b-n\bn Suppresses the normal change of directory when removing
- directories from the stack, so that only the stack is
+ -\b-n\bn Suppresses the normal change of directory when removing
+ directories from the stack, so that only the stack is
manipulated.
- If the p\bpo\bop\bpd\bd command is successful, a d\bdi\bir\brs\bs is performed as well,
- and the return status is 0. p\bpo\bop\bpd\bd returns false if an invalid
+ If the p\bpo\bop\bpd\bd command is successful, a d\bdi\bir\brs\bs is performed as well,
+ and the return status is 0. p\bpo\bop\bpd\bd returns false if an invalid
option is encountered, the directory stack is empty, a non-exis-
tent directory stack entry is specified, or the directory change
fails.
p\bpr\bri\bin\bnt\btf\bf _\bf_\bo_\br_\bm_\ba_\bt [_\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs]
- Write the formatted _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs to the standard output under the
- control of the _\bf_\bo_\br_\bm_\ba_\bt. The _\bf_\bo_\br_\bm_\ba_\bt is a character string which
- contains three types of objects: plain characters, which are
- simply copied to standard output, character escape sequences,
- which are converted and copied to the standard output, and for-
- mat specifications, each of which causes printing of the next
+ Write the formatted _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs to the standard output under the
+ control of the _\bf_\bo_\br_\bm_\ba_\bt. The _\bf_\bo_\br_\bm_\ba_\bt is a character string which
+ contains three types of objects: plain characters, which are
+ simply copied to standard output, character escape sequences,
+ which are converted and copied to the standard output, and for-
+ mat specifications, each of which causes printing of the next
successive _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt. In addition to the standard _\bp_\br_\bi_\bn_\bt_\bf(1) for-
- mats, %\b%b\bb causes p\bpr\bri\bin\bnt\btf\bf to expand backslash escape sequences in
- the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt (except that \\b\c\bc terminates output,
+ mats, %\b%b\bb causes p\bpr\bri\bin\bnt\btf\bf to expand backslash escape sequences in
+ the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt (except that \\b\c\bc terminates output,
backslashes in \\b\'\b', \\b\"\b", and \\b\?\b? are not removed, and octal escapes
- beginning with \\b\0\b0 may contain up to four digits), and %\b%q\bq causes
+ beginning with \\b\0\b0 may contain up to four digits), and %\b%q\bq causes
p\bpr\bri\bin\bnt\btf\bf to output the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt in a format that can
be reused as shell input.
- The _\bf_\bo_\br_\bm_\ba_\bt is reused as necessary to consume all of the _\ba_\br_\bg_\bu_\b-
+ The _\bf_\bo_\br_\bm_\ba_\bt is reused as necessary to consume all of the _\ba_\br_\bg_\bu_\b-
_\bm_\be_\bn_\bt_\bs. If the _\bf_\bo_\br_\bm_\ba_\bt requires more _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs than are supplied,
- the extra format specifications behave as if a zero value or
- null string, as appropriate, had been supplied. The return
+ the extra format specifications behave as if a zero value or
+ null string, as appropriate, had been supplied. The return
value is zero on success, non-zero on failure.
p\bpu\bus\bsh\bhd\bd [-\b-n\bn] [_\bd_\bi_\br]
p\bpu\bus\bsh\bhd\bd [-\b-n\bn] [+_\bn] [-_\bn]
- Adds a directory to the top of the directory stack, or rotates
- the stack, making the new top of the stack the current working
+ Adds a directory to the top of the directory stack, or rotates
+ the stack, making the new top of the stack the current working
directory. With no arguments, exchanges the top two directories
- and returns 0, unless the directory stack is empty. Arguments,
+ and returns 0, unless the directory stack is empty. Arguments,
if supplied, have the following meanings:
- +\b+_\bn Rotates the stack so that the _\bnth directory (counting
- from the left of the list shown by d\bdi\bir\brs\bs, starting with
+ +\b+_\bn Rotates the stack so that the _\bnth directory (counting
+ from the left of the list shown by d\bdi\bir\brs\bs, starting with
zero) is at the top.
- -\b-_\bn Rotates the stack so that the _\bnth directory (counting
- from the right of the list shown by d\bdi\bir\brs\bs, starting with
+ -\b-_\bn Rotates the stack so that the _\bnth directory (counting
+ from the right of the list shown by d\bdi\bir\brs\bs, starting with
zero) is at the top.
- -\b-n\bn Suppresses the normal change of directory when adding
- directories to the stack, so that only the stack is
+ -\b-n\bn Suppresses the normal change of directory when adding
+ directories to the stack, so that only the stack is
manipulated.
_\bd_\bi_\br Adds _\bd_\bi_\br to the directory stack at the top, making it the
new current working directory.
If the p\bpu\bus\bsh\bhd\bd command is successful, a d\bdi\bir\brs\bs is performed as well.
- If the first form is used, p\bpu\bus\bsh\bhd\bd returns 0 unless the cd to _\bd_\bi_\br
- fails. With the second form, p\bpu\bus\bsh\bhd\bd returns 0 unless the direc-
- tory stack is empty, a non-existent directory stack element is
- specified, or the directory change to the specified new current
+ If the first form is used, p\bpu\bus\bsh\bhd\bd returns 0 unless the cd to _\bd_\bi_\br
+ fails. With the second form, p\bpu\bus\bsh\bhd\bd returns 0 unless the direc-
+ tory stack is empty, a non-existent directory stack element is
+ specified, or the directory change to the specified new current
directory fails.
p\bpw\bwd\bd [-\b-L\bLP\bP]
- Print the absolute pathname of the current working directory.
+ Print the absolute pathname of the current working directory.
The pathname printed contains no symbolic links if the -\b-P\bP option
is supplied or the -\b-o\bo p\bph\bhy\bys\bsi\bic\bca\bal\bl option to the s\bse\bet\bt builtin command
- is enabled. If the -\b-L\bL option is used, the pathname printed may
- contain symbolic links. The return status is 0 unless an error
- occurs while reading the name of the current directory or an
+ is enabled. If the -\b-L\bL option is used, the pathname printed may
+ contain symbolic links. The return status is 0 unless an error
+ occurs while reading the name of the current directory or an
invalid option is supplied.
r\bre\bea\bad\bd [-\b-e\ber\brs\bs] [-\b-u\bu _\bf_\bd] [-\b-t\bt _\bt_\bi_\bm_\be_\bo_\bu_\bt] [-\b-a\ba _\ba_\bn_\ba_\bm_\be] [-\b-p\bp _\bp_\br_\bo_\bm_\bp_\bt] [-\b-n\bn _\bn_\bc_\bh_\ba_\br_\bs] [-\b-d\bd
_\bd_\be_\bl_\bi_\bm] [_\bn_\ba_\bm_\be ...]
- One line is read from the standard input, or from the file
- descriptor _\bf_\bd supplied as an argument to the -\b-u\bu option, and the
+ One line is read from the standard input, or from the file
+ descriptor _\bf_\bd supplied as an argument to the -\b-u\bu option, and the
first word is assigned to the first _\bn_\ba_\bm_\be, the second word to the
- second _\bn_\ba_\bm_\be, and so on, with leftover words and their interven-
- ing separators assigned to the last _\bn_\ba_\bm_\be. If there are fewer
+ second _\bn_\ba_\bm_\be, and so on, with leftover words and their interven-
+ ing separators assigned to the last _\bn_\ba_\bm_\be. If there are fewer
words read from the input stream than names, the remaining names
- are assigned empty values. The characters in I\bIF\bFS\bS are used to
- split the line into words. The backslash character (\\b\) may be
- used to remove any special meaning for the next character read
- and for line continuation. Options, if supplied, have the fol-
+ are assigned empty values. The characters in I\bIF\bFS\bS are used to
+ split the line into words. The backslash character (\\b\) may be
+ used to remove any special meaning for the next character read
+ and for line continuation. Options, if supplied, have the fol-
lowing meanings:
-\b-a\ba _\ba_\bn_\ba_\bm_\be
The words are assigned to sequential indices of the array
new values are assigned. Other _\bn_\ba_\bm_\be arguments are
ignored.
-\b-d\bd _\bd_\be_\bl_\bi_\bm
- The first character of _\bd_\be_\bl_\bi_\bm is used to terminate the
+ The first character of _\bd_\be_\bl_\bi_\bm is used to terminate the
input line, rather than newline.
-\b-e\be If the standard input is coming from a terminal, r\bre\bea\bad\bdl\bli\bin\bne\be
(see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE above) is used to obtain the line.
-\b-n\bn _\bn_\bc_\bh_\ba_\br_\bs
- r\bre\bea\bad\bd returns after reading _\bn_\bc_\bh_\ba_\br_\bs characters rather than
+ r\bre\bea\bad\bd returns after reading _\bn_\bc_\bh_\ba_\br_\bs characters rather than
waiting for a complete line of input.
-\b-p\bp _\bp_\br_\bo_\bm_\bp_\bt
Display _\bp_\br_\bo_\bm_\bp_\bt on standard error, without a trailing new-
line, before attempting to read any input. The prompt is
displayed only if input is coming from a terminal.
-\b-r\br Backslash does not act as an escape character. The back-
- slash is considered to be part of the line. In particu-
- lar, a backslash-newline pair may not be used as a line
+ slash is considered to be part of the line. In particu-
+ lar, a backslash-newline pair may not be used as a line
continuation.
-\b-s\bs Silent mode. If input is coming from a terminal, charac-
ters are not echoed.
-\b-t\bt _\bt_\bi_\bm_\be_\bo_\bu_\bt
- Cause r\bre\bea\bad\bd to time out and return failure if a complete
- line of input is not read within _\bt_\bi_\bm_\be_\bo_\bu_\bt seconds. This
- option has no effect if r\bre\bea\bad\bd is not reading input from
+ Cause r\bre\bea\bad\bd to time out and return failure if a complete
+ line of input is not read within _\bt_\bi_\bm_\be_\bo_\bu_\bt seconds. This
+ option has no effect if r\bre\bea\bad\bd is not reading input from
the terminal or a pipe.
-\b-u\bu _\bf_\bd Read input from file descriptor _\bf_\bd.
If no _\bn_\ba_\bm_\be_\bs are supplied, the line read is assigned to the vari-
- able R\bRE\bEP\bPL\bLY\bY. The return code is zero, unless end-of-file is
- encountered, r\bre\bea\bad\bd times out, or an invalid file descriptor is
+ able R\bRE\bEP\bPL\bLY\bY. The return code is zero, unless end-of-file is
+ encountered, r\bre\bea\bad\bd times out, or an invalid file descriptor is
supplied as the argument to -\b-u\bu.
r\bre\bea\bad\bdo\bon\bnl\bly\by [-\b-a\bap\bpf\bf] [_\bn_\ba_\bm_\be[=_\bw_\bo_\br_\bd] ...]
- The given _\bn_\ba_\bm_\be_\bs are marked readonly; the values of these _\bn_\ba_\bm_\be_\bs
- may not be changed by subsequent assignment. If the -\b-f\bf option
- is supplied, the functions corresponding to the _\bn_\ba_\bm_\be_\bs are so
+ The given _\bn_\ba_\bm_\be_\bs are marked readonly; the values of these _\bn_\ba_\bm_\be_\bs
+ may not be changed by subsequent assignment. If the -\b-f\bf option
+ is supplied, the functions corresponding to the _\bn_\ba_\bm_\be_\bs are so
marked. The -\b-a\ba option restricts the variables to arrays. If no
- _\bn_\ba_\bm_\be arguments are given, or if the -\b-p\bp option is supplied, a
- list of all readonly names is printed. The -\b-p\bp option causes
- output to be displayed in a format that may be reused as input.
- If a variable name is followed by =_\bw_\bo_\br_\bd, the value of the vari-
- able is set to _\bw_\bo_\br_\bd. The return status is 0 unless an invalid
- option is encountered, one of the _\bn_\ba_\bm_\be_\bs is not a valid shell
+ _\bn_\ba_\bm_\be arguments are given, or if the -\b-p\bp option is supplied, a
+ list of all readonly names is printed. The -\b-p\bp option causes
+ output to be displayed in a format that may be reused as input.
+ If a variable name is followed by =_\bw_\bo_\br_\bd, the value of the vari-
+ able is set to _\bw_\bo_\br_\bd. The return status is 0 unless an invalid
+ option is encountered, one of the _\bn_\ba_\bm_\be_\bs is not a valid shell
variable name, or -\b-f\bf is supplied with a _\bn_\ba_\bm_\be that is not a func-
tion.
r\bre\bet\btu\bur\brn\bn [_\bn]
- Causes a function to exit with the return value specified by _\bn.
- If _\bn is omitted, the return status is that of the last command
- executed in the function body. If used outside a function, but
- during execution of a script by the .\b. (s\bso\bou\bur\brc\bce\be) command, it
+ Causes a function to exit with the return value specified by _\bn.
+ If _\bn is omitted, the return status is that of the last command
+ executed in the function body. If used outside a function, but
+ during execution of a script by the .\b. (s\bso\bou\bur\brc\bce\be) command, it
causes the shell to stop executing that script and return either
- _\bn or the exit status of the last command executed within the
- script as the exit status of the script. If used outside a
- function and not during execution of a script by .\b., the return
+ _\bn or the exit status of the last command executed within the
+ script as the exit status of the script. If used outside a
+ function and not during execution of a script by .\b., the return
status is false. Any command associated with the R\bRE\bET\bTU\bUR\bRN\bN trap is
- executed before execution resumes after the function or script.
+ executed before execution resumes after the function or script.
s\bse\bet\bt [-\b--\b-a\bab\bbe\bef\bfh\bhk\bkm\bmn\bnp\bpt\btu\buv\bvx\bxB\bBC\bCH\bHP\bP] [-\b-o\bo _\bo_\bp_\bt_\bi_\bo_\bn] [_\ba_\br_\bg ...]
- Without options, the name and value of each shell variable are
+ Without options, the name and value of each shell variable are
displayed in a format that can be reused as input for setting or
resetting the currently-set variables. Read-only variables can-
- not be reset. In _\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be, only shell variables are listed.
- The output is sorted according to the current locale. When
- options are specified, they set or unset shell attributes. Any
- arguments remaining after the options are processed are treated
- as values for the positional parameters and are assigned, in
+ not be reset. In _\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be, only shell variables are listed.
+ The output is sorted according to the current locale. When
+ options are specified, they set or unset shell attributes. Any
+ arguments remaining after the options are processed are treated
+ as values for the positional parameters and are assigned, in
order, to $\b$1\b1, $\b$2\b2, .\b..\b..\b. $\b$_\bn. Options, if specified, have the fol-
lowing meanings:
- -\b-a\ba Automatically mark variables and functions which are
- modified or created for export to the environment of
+ -\b-a\ba Automatically mark variables and functions which are
+ modified or created for export to the environment of
subsequent commands.
- -\b-b\bb Report the status of terminated background jobs immedi-
+ -\b-b\bb Report the status of terminated background jobs immedi-
ately, rather than before the next primary prompt. This
is effective only when job control is enabled.
- -\b-e\be Exit immediately if a _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR
+ -\b-e\be Exit immediately if a _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR
above) exits with a non-zero status. The shell does not
- exit if the command that fails is part of the command
- list immediately following a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword,
- part of the test in an _\bi_\bf statement, part of a &\b&&\b& or |\b||\b|
+ exit if the command that fails is part of the command
+ list immediately following a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword,
+ part of the test in an _\bi_\bf statement, part of a &\b&&\b& or |\b||\b|
list, or if the command's return value is being inverted
- via !\b!. A trap on E\bER\bRR\bR, if set, is executed before the
+ via !\b!. A trap on E\bER\bRR\bR, if set, is executed before the
shell exits.
-\b-f\bf Disable pathname expansion.
- -\b-h\bh Remember the location of commands as they are looked up
+ -\b-h\bh Remember the location of commands as they are looked up
for execution. This is enabled by default.
- -\b-k\bk All arguments in the form of assignment statements are
- placed in the environment for a command, not just those
+ -\b-k\bk All arguments in the form of assignment statements are
+ placed in the environment for a command, not just those
that precede the command name.
- -\b-m\bm Monitor mode. Job control is enabled. This option is
- on by default for interactive shells on systems that
- support it (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL above). Background pro-
- cesses run in a separate process group and a line con-
- taining their exit status is printed upon their comple-
+ -\b-m\bm Monitor mode. Job control is enabled. This option is
+ on by default for interactive shells on systems that
+ support it (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL above). Background pro-
+ cesses run in a separate process group and a line con-
+ taining their exit status is printed upon their comple-
tion.
-\b-n\bn Read commands but do not execute them. This may be used
- to check a shell script for syntax errors. This is
+ to check a shell script for syntax errors. This is
ignored by interactive shells.
-\b-o\bo _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be
The _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be can be one of the following:
Same as -\b-a\ba.
b\bbr\bra\bac\bce\bee\bex\bxp\bpa\ban\bnd\bd
Same as -\b-B\bB.
- e\bem\bma\bac\bcs\bs Use an emacs-style command line editing inter-
+ e\bem\bma\bac\bcs\bs Use an emacs-style command line editing inter-
face. This is enabled by default when the shell
is interactive, unless the shell is started with
the -\b--\b-n\bno\boe\bed\bdi\bit\bti\bin\bng\bg option.
h\bhi\bis\bst\bte\bex\bxp\bpa\ban\bnd\bd
Same as -\b-H\bH.
h\bhi\bis\bst\bto\bor\bry\by Enable command history, as described above under
- H\bHI\bIS\bST\bTO\bOR\bRY\bY. This option is on by default in inter-
- active shells.
+ H\bHI\bIS\bST\bTO\bOR\bRY\bY. This option is on by default in
+ interactive shells.
i\big\bgn\bno\bor\bre\bee\beo\bof\bf
- The effect is as if the shell command
- ``IGNOREEOF=10'' had been executed (see S\bSh\bhe\bel\bll\bl
+ The effect is as if the shell command
+ ``IGNOREEOF=10'' had been executed (see S\bSh\bhe\bel\bll\bl
V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs above).
k\bke\bey\byw\bwo\bor\brd\bd Same as -\b-k\bk.
m\bmo\bon\bni\bit\bto\bor\br Same as -\b-m\bm.
p\bph\bhy\bys\bsi\bic\bca\bal\bl
Same as -\b-P\bP.
p\bpi\bip\bpe\bef\bfa\bai\bil\bl
- If set, the return value of a pipeline is the
- value of the last (rightmost) command to exit
- with a non-zero status, or zero if all commands
- in the pipeline exit successfully. This option
+ If set, the return value of a pipeline is the
+ value of the last (rightmost) command to exit
+ with a non-zero status, or zero if all commands
+ in the pipeline exit successfully. This option
is disabled by default.
- p\bpo\bos\bsi\bix\bx Change the behavior of b\bba\bas\bsh\bh where the default
+ p\bpo\bos\bsi\bix\bx Change the behavior of b\bba\bas\bsh\bh where the default
operation differs from the POSIX 1003.2 standard
to match the standard (_\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be).
p\bpr\bri\biv\bvi\bil\ble\beg\bge\bed\bd
v\bvi\bi Use a vi-style command line editing interface.
x\bxt\btr\bra\bac\bce\be Same as -\b-x\bx.
If -\b-o\bo is supplied with no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, the values of the
- current options are printed. If +\b+o\bo is supplied with no
- _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, a series of s\bse\bet\bt commands to recreate the
- current option settings is displayed on the standard
+ current options are printed. If +\b+o\bo is supplied with no
+ _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, a series of s\bse\bet\bt commands to recreate the
+ current option settings is displayed on the standard
output.
- -\b-p\bp Turn on _\bp_\br_\bi_\bv_\bi_\bl_\be_\bg_\be_\bd mode. In this mode, the $\b$E\bEN\bNV\bV and
- $\b$B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV files are not processed, shell functions are
- not inherited from the environment, and the S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS
- variable, if it appears in the environment, is ignored.
- If the shell is started with the effective user (group)
- id not equal to the real user (group) id, and the -\b-p\bp
- option is not supplied, these actions are taken and the
+ -\b-p\bp Turn on _\bp_\br_\bi_\bv_\bi_\bl_\be_\bg_\be_\bd mode. In this mode, the $\b$E\bEN\bNV\bV and
+ $\b$B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV files are not processed, shell functions are
+ not inherited from the environment, and the S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS
+ variable, if it appears in the environment, is ignored.
+ If the shell is started with the effective user (group)
+ id not equal to the real user (group) id, and the -\b-p\bp
+ option is not supplied, these actions are taken and the
effective user id is set to the real user id. If the -\b-p\bp
- option is supplied at startup, the effective user id is
+ option is supplied at startup, the effective user id is
not reset. Turning this option off causes the effective
- user and group ids to be set to the real user and group
+ user and group ids to be set to the real user and group
ids.
-\b-t\bt Exit after reading and executing one command.
-\b-u\bu Treat unset variables as an error when performing param-
- eter expansion. If expansion is attempted on an unset
+ eter expansion. If expansion is attempted on an unset
variable, the shell prints an error message, and, if not
interactive, exits with a non-zero status.
-\b-v\bv Print shell input lines as they are read.
- -\b-x\bx After expanding each _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, f\bfo\bor\br command, c\bca\bas\bse\be
+ -\b-x\bx After expanding each _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, f\bfo\bor\br command, c\bca\bas\bse\be
command, s\bse\bel\ble\bec\bct\bt command, or arithmetic f\bfo\bor\br command, dis-
- play the expanded value of P\bPS\bS4\b4, followed by the command
+ play the expanded value of P\bPS\bS4\b4, followed by the command
and its expanded arguments or associated word list.
- -\b-B\bB The shell performs brace expansion (see B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
+ -\b-B\bB The shell performs brace expansion (see B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
above). This is on by default.
- -\b-C\bC If set, b\bba\bas\bsh\bh does not overwrite an existing file with
- the >\b>, >\b>&\b&, and <\b<>\b> redirection operators. This may be
+ -\b-C\bC If set, b\bba\bas\bsh\bh does not overwrite an existing file with
+ the >\b>, >\b>&\b&, and <\b<>\b> redirection operators. This may be
overridden when creating output files by using the redi-
rection operator >\b>|\b| instead of >\b>.
-\b-E\bE If set, any trap on E\bER\bRR\bR is inherited by shell functions,
- command substitutions, and commands executed in a sub-
- shell environment. The E\bER\bRR\bR trap is normally not inher-
+ command substitutions, and commands executed in a sub-
+ shell environment. The E\bER\bRR\bR trap is normally not inher-
ited in such cases.
-\b-H\bH Enable !\b! style history substitution. This option is on
by default when the shell is interactive.
- -\b-P\bP If set, the shell does not follow symbolic links when
- executing commands such as c\bcd\bd that change the current
+ -\b-P\bP If set, the shell does not follow symbolic links when
+ executing commands such as c\bcd\bd that change the current
working directory. It uses the physical directory
structure instead. By default, b\bba\bas\bsh\bh follows the logical
- chain of directories when performing commands which
+ chain of directories when performing commands which
change the current directory.
- -\b-T\bT If set, any trap on D\bDE\bEB\bBU\bUG\bG is inherited by shell func-
- tions, command substitutions, and commands executed in a
- subshell environment. The D\bDE\bEB\bBU\bUG\bG trap is normally not
- inherited in such cases.
- -\b--\b- If no arguments follow this option, then the positional
+ -\b-T\bT If set, any traps on D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN are inherited by
+ shell functions, command substitutions, and commands
+ executed in a subshell environment. The D\bDE\bEB\bBU\bUG\bG and
+ R\bRE\bET\bTU\bUR\bRN\bN traps are normally not inherited in such cases.
+ -\b--\b- If no arguments follow this option, then the positional
parameters are unset. Otherwise, the positional parame-
- ters are set to the _\ba_\br_\bgs, even if some of them begin
+ ters are set to the _\ba_\br_\bgs, even if some of them begin
with a -\b-.
- -\b- Signal the end of options, cause all remaining _\ba_\br_\bgs to
+ -\b- Signal the end of options, cause all remaining _\ba_\br_\bgs to
be assigned to the positional parameters. The -\b-x\bx and -\b-v\bv
options are turned off. If there are no _\ba_\br_\bgs, the posi-
tional parameters remain unchanged.
- The options are off by default unless otherwise noted. Using +
- rather than - causes these options to be turned off. The
- options can also be specified as arguments to an invocation of
- the shell. The current set of options may be found in $\b$-\b-. The
+ The options are off by default unless otherwise noted. Using +
+ rather than - causes these options to be turned off. The
+ options can also be specified as arguments to an invocation of
+ the shell. The current set of options may be found in $\b$-\b-. The
return status is always true unless an invalid option is encoun-
tered.
s\bsh\bhi\bif\bft\bt [_\bn]
- The positional parameters from _\bn+1 ... are renamed to $\b$1\b1 .\b..\b..\b..\b.
- Parameters represented by the numbers $\b$#\b# down to $\b$#\b#-_\bn+1 are
- unset. _\bn must be a non-negative number less than or equal to
- $\b$#\b#. If _\bn is 0, no parameters are changed. If _\bn is not given,
- it is assumed to be 1. If _\bn is greater than $\b$#\b#, the positional
- parameters are not changed. The return status is greater than
+ The positional parameters from _\bn+1 ... are renamed to $\b$1\b1 .\b..\b..\b..\b.
+ Parameters represented by the numbers $\b$#\b# down to $\b$#\b#-_\bn+1 are
+ unset. _\bn must be a non-negative number less than or equal to
+ $\b$#\b#. If _\bn is 0, no parameters are changed. If _\bn is not given,
+ it is assumed to be 1. If _\bn is greater than $\b$#\b#, the positional
+ parameters are not changed. The return status is greater than
zero if _\bn is greater than $\b$#\b# or less than zero; otherwise 0.
s\bsh\bho\bop\bpt\bt [-\b-p\bpq\bqs\bsu\bu] [-\b-o\bo] [_\bo_\bp_\bt_\bn_\ba_\bm_\be ...]
Toggle the values of variables controlling optional shell behav-
ior. With no options, or with the -\b-p\bp option, a list of all set-
table options is displayed, with an indication of whether or not
- each is set. The -\b-p\bp option causes output to be displayed in a
- form that may be reused as input. Other options have the fol-
+ each is set. The -\b-p\bp option causes output to be displayed in a
+ form that may be reused as input. Other options have the fol-
lowing meanings:
-\b-s\bs Enable (set) each _\bo_\bp_\bt_\bn_\ba_\bm_\be.
-\b-u\bu Disable (unset) each _\bo_\bp_\bt_\bn_\ba_\bm_\be.
- -\b-q\bq Suppresses normal output (quiet mode); the return status
+ -\b-q\bq Suppresses normal output (quiet mode); the return status
indicates whether the _\bo_\bp_\bt_\bn_\ba_\bm_\be is set or unset. If multi-
- ple _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments are given with -\b-q\bq, the return sta-
- tus is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are enabled; non-zero other-
+ ple _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments are given with -\b-q\bq, the return sta-
+ tus is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are enabled; non-zero other-
wise.
- -\b-o\bo Restricts the values of _\bo_\bp_\bt_\bn_\ba_\bm_\be to be those defined for
+ -\b-o\bo Restricts the values of _\bo_\bp_\bt_\bn_\ba_\bm_\be to be those defined for
the -\b-o\bo option to the s\bse\bet\bt builtin.
- If either -\b-s\bs or -\b-u\bu is used with no _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments, the dis-
+ If either -\b-s\bs or -\b-u\bu is used with no _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments, the dis-
play is limited to those options which are set or unset, respec-
- tively. Unless otherwise noted, the s\bsh\bho\bop\bpt\bt options are disabled
+ tively. Unless otherwise noted, the s\bsh\bho\bop\bpt\bt options are disabled
(unset) by default.
- The return status when listing options is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs
- are enabled, non-zero otherwise. When setting or unsetting
- options, the return status is zero unless an _\bo_\bp_\bt_\bn_\ba_\bm_\be is not a
+ The return status when listing options is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs
+ are enabled, non-zero otherwise. When setting or unsetting
+ options, the return status is zero unless an _\bo_\bp_\bt_\bn_\ba_\bm_\be is not a
valid shell option.
The list of s\bsh\bho\bop\bpt\bt options is:
c\bcd\bda\bab\bbl\ble\be_\b_v\bva\bar\brs\bs
- If set, an argument to the c\bcd\bd builtin command that is
- not a directory is assumed to be the name of a variable
+ If set, an argument to the c\bcd\bd builtin command that is
+ not a directory is assumed to be the name of a variable
whose value is the directory to change to.
c\bcd\bds\bsp\bpe\bel\bll\bl If set, minor errors in the spelling of a directory com-
- ponent in a c\bcd\bd command will be corrected. The errors
+ ponent in a c\bcd\bd command will be corrected. The errors
checked for are transposed characters, a missing charac-
- ter, and one character too many. If a correction is
- found, the corrected file name is printed, and the com-
- mand proceeds. This option is only used by interactive
+ ter, and one character too many. If a correction is
+ found, the corrected file name is printed, and the com-
+ mand proceeds. This option is only used by interactive
shells.
c\bch\bhe\bec\bck\bkh\bha\bas\bsh\bh
If set, b\bba\bas\bsh\bh checks that a command found in the hash ta-
- ble exists before trying to execute it. If a hashed
- command no longer exists, a normal path search is per-
+ ble exists before trying to execute it. If a hashed
+ command no longer exists, a normal path search is per-
formed.
c\bch\bhe\bec\bck\bkw\bwi\bin\bns\bsi\biz\bze\be
- If set, b\bba\bas\bsh\bh checks the window size after each command
- and, if necessary, updates the values of L\bLI\bIN\bNE\bES\bS and
+ If set, b\bba\bas\bsh\bh checks the window size after each command
+ and, if necessary, updates the values of L\bLI\bIN\bNE\bES\bS and
C\bCO\bOL\bLU\bUM\bMN\bNS\bS.
- c\bcm\bmd\bdh\bhi\bis\bst\bt If set, b\bba\bas\bsh\bh attempts to save all lines of a multiple-
- line command in the same history entry. This allows
+ c\bcm\bmd\bdh\bhi\bis\bst\bt If set, b\bba\bas\bsh\bh attempts to save all lines of a multiple-
+ line command in the same history entry. This allows
easy re-editing of multi-line commands.
- d\bdo\bot\btg\bgl\blo\bob\bb If set, b\bba\bas\bsh\bh includes filenames beginning with a `.' in
+ d\bdo\bot\btg\bgl\blo\bob\bb If set, b\bba\bas\bsh\bh includes filenames beginning with a `.' in
the results of pathname expansion.
e\bex\bxe\bec\bcf\bfa\bai\bil\bl
If set, a non-interactive shell will not exit if it can-
- not execute the file specified as an argument to the
- e\bex\bxe\bec\bc builtin command. An interactive shell does not
+ not execute the file specified as an argument to the
+ e\bex\bxe\bec\bc builtin command. An interactive shell does not
exit if e\bex\bxe\bec\bc fails.
e\bex\bxp\bpa\ban\bnd\bd_\b_a\bal\bli\bia\bas\bse\bes\bs
- If set, aliases are expanded as described above under
+ If set, aliases are expanded as described above under
A\bAL\bLI\bIA\bAS\bSE\bES\bS. This option is enabled by default for interac-
tive shells.
e\bex\bxt\btd\bde\beb\bbu\bug\bg
- If set, behavior intended for use by debuggers is
+ If set, behavior intended for use by debuggers is
enabled:
1\b1.\b. The -\b-F\bF option to the d\bde\bec\bcl\bla\bar\bre\be builtin displays the
source file name and line number corresponding to
each function name supplied as an argument.
- 2\b2.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
- non-zero value, the next command is skipped and
+ 2\b2.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
+ non-zero value, the next command is skipped and
not executed.
- 3\b3.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
- value of 2, and the shell is executing in a sub-
- routine (a shell function or a shell script exe-
- cuted by the .\b. or s\bso\bou\bur\brc\bce\be builtins), a call to
+ 3\b3.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
+ value of 2, and the shell is executing in a sub-
+ routine (a shell function or a shell script exe-
+ cuted by the .\b. or s\bso\bou\bur\brc\bce\be builtins), a call to
r\bre\bet\btu\bur\brn\bn is simulated.
e\bex\bxt\btg\bgl\blo\bob\bb If set, the extended pattern matching features described
above under P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn are enabled.
e\bex\bxt\btq\bqu\buo\bot\bte\be
- If set, $\b$'_\bs_\bt_\br_\bi_\bn_\bg' and $\b$"_\bs_\bt_\br_\bi_\bn_\bg" quoting is performed
- within $\b${\b{_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}\b} expansions enclosed in double
+ If set, $\b$'_\bs_\bt_\br_\bi_\bn_\bg' and $\b$"_\bs_\bt_\br_\bi_\bn_\bg" quoting is performed
+ within $\b${\b{_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}\b} expansions enclosed in double
quotes. This option is enabled by default.
f\bfa\bai\bil\blg\bgl\blo\bob\bb
- If set, patterns which fail to match filenames during
+ If set, patterns which fail to match filenames during
pathname expansion result in an expansion error.
f\bfo\bor\brc\bce\be_\b_f\bfi\big\bgn\bno\bor\bre\be
- If set, the suffixes specified by the F\bFI\bIG\bGN\bNO\bOR\bRE\bE shell
- variable cause words to be ignored when performing word
+ If set, the suffixes specified by the F\bFI\bIG\bGN\bNO\bOR\bRE\bE shell
+ variable cause words to be ignored when performing word
completion even if the ignored words are the only possi-
ble completions. See S\bSH\bHE\bEL\bLL\bL V\bVA\bAR\bRI\bIA\bAB\bBL\bLE\bES\bS above for a
- description of F\bFI\bIG\bGN\bNO\bOR\bRE\bE. This option is enabled by
+ description of F\bFI\bIG\bGN\bNO\bOR\bRE\bE. This option is enabled by
default.
g\bgn\bnu\bu_\b_e\ber\brr\brf\bfm\bmt\bt
If set, shell error messages are written in the standard
GNU error message format.
h\bhi\bis\bst\bta\bap\bpp\bpe\ben\bnd\bd
- If set, the history list is appended to the file named
- by the value of the H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE variable when the shell
+ If set, the history list is appended to the file named
+ by the value of the H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE variable when the shell
exits, rather than overwriting the file.
h\bhi\bis\bst\btr\bre\bee\bed\bdi\bit\bt
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, a user is given the
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, a user is given the
opportunity to re-edit a failed history substitution.
h\bhi\bis\bst\btv\bve\ber\bri\bif\bfy\by
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the results of his-
- tory substitution are not immediately passed to the
- shell parser. Instead, the resulting line is loaded
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the results of his-
+ tory substitution are not immediately passed to the
+ shell parser. Instead, the resulting line is loaded
into the r\bre\bea\bad\bdl\bli\bin\bne\be editing buffer, allowing further modi-
fication.
h\bho\bos\bst\btc\bco\bom\bmp\bpl\ble\bet\bte\be
If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh will attempt to
- perform hostname completion when a word containing a @\b@
- is being completed (see C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg under R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE
+ perform hostname completion when a word containing a @\b@
+ is being completed (see C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg under R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE
above). This is enabled by default.
h\bhu\bup\bpo\bon\bne\bex\bxi\bit\bt
If set, b\bba\bas\bsh\bh will send S\bSI\bIG\bGH\bHU\bUP\bP to all jobs when an inter-
active login shell exits.
i\bin\bnt\bte\ber\bra\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs
If set, allow a word beginning with #\b# to cause that word
- and all remaining characters on that line to be ignored
- in an interactive shell (see C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS above). This
+ and all remaining characters on that line to be ignored
+ in an interactive shell (see C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS above). This
option is enabled by default.
- l\bli\bit\bth\bhi\bis\bst\bt If set, and the c\bcm\bmd\bdh\bhi\bis\bst\bt option is enabled, multi-line
+ l\bli\bit\bth\bhi\bis\bst\bt If set, and the c\bcm\bmd\bdh\bhi\bis\bst\bt option is enabled, multi-line
commands are saved to the history with embedded newlines
rather than using semicolon separators where possible.
l\blo\bog\bgi\bin\bn_\b_s\bsh\bhe\bel\bll\bl
- The shell sets this option if it is started as a login
- shell (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN above). The value may not be
+ The shell sets this option if it is started as a login
+ shell (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN above). The value may not be
changed.
m\bma\bai\bil\blw\bwa\bar\brn\bn
- If set, and a file that b\bba\bas\bsh\bh is checking for mail has
- been accessed since the last time it was checked, the
- message ``The mail in _\bm_\ba_\bi_\bl_\bf_\bi_\bl_\be has been read'' is dis-
+ If set, and a file that b\bba\bas\bsh\bh is checking for mail has
+ been accessed since the last time it was checked, the
+ message ``The mail in _\bm_\ba_\bi_\bl_\bf_\bi_\bl_\be has been read'' is dis-
played.
n\bno\bo_\b_e\bem\bmp\bpt\bty\by_\b_c\bcm\bmd\bd_\b_c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh will not
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh will not
attempt to search the P\bPA\bAT\bTH\bH for possible completions when
completion is attempted on an empty line.
n\bno\boc\bca\bas\bse\beg\bgl\blo\bob\bb
- If set, b\bba\bas\bsh\bh matches filenames in a case-insensitive
+ If set, b\bba\bas\bsh\bh matches filenames in a case-insensitive
fashion when performing pathname expansion (see P\bPa\bat\bth\bhn\bna\bam\bme\be
E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn above).
n\bnu\bul\bll\blg\bgl\blo\bob\bb
- If set, b\bba\bas\bsh\bh allows patterns which match no files (see
- P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn above) to expand to a null string,
+ If set, b\bba\bas\bsh\bh allows patterns which match no files (see
+ P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn above) to expand to a null string,
rather than themselves.
p\bpr\bro\bog\bgc\bco\bom\bmp\bp
If set, the programmable completion facilities (see P\bPr\bro\bo-\b-
enabled by default.
p\bpr\bro\bom\bmp\bpt\btv\bva\bar\brs\bs
If set, prompt strings undergo parameter expansion, com-
- mand substitution, arithmetic expansion, and quote
- removal after being expanded as described in P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG
+ mand substitution, arithmetic expansion, and quote
+ removal after being expanded as described in P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG
above. This option is enabled by default.
r\bre\bes\bst\btr\bri\bic\bct\bte\bed\bd_\b_s\bsh\bhe\bel\bll\bl
- The shell sets this option if it is started in
+ The shell sets this option if it is started in
restricted mode (see R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL below). The value
- may not be changed. This is not reset when the startup
- files are executed, allowing the startup files to dis-
+ may not be changed. This is not reset when the startup
+ files are executed, allowing the startup files to dis-
cover whether or not a shell is restricted.
s\bsh\bhi\bif\bft\bt_\b_v\bve\ber\brb\bbo\bos\bse\be
- If set, the s\bsh\bhi\bif\bft\bt builtin prints an error message when
+ If set, the s\bsh\bhi\bif\bft\bt builtin prints an error message when
the shift count exceeds the number of positional parame-
ters.
s\bso\bou\bur\brc\bce\bep\bpa\bat\bth\bh
If set, the s\bso\bou\bur\brc\bce\be (.\b.) builtin uses the value of P\bPA\bAT\bTH\bH to
- find the directory containing the file supplied as an
+ find the directory containing the file supplied as an
argument. This option is enabled by default.
x\bxp\bpg\bg_\b_e\bec\bch\bho\bo
- If set, the e\bec\bch\bho\bo builtin expands backslash-escape
+ If set, the e\bec\bch\bho\bo builtin expands backslash-escape
sequences by default.
s\bsu\bus\bsp\bpe\ben\bnd\bd [-\b-f\bf]
- Suspend the execution of this shell until it receives a S\bSI\bIG\bGC\bCO\bON\bNT\bT
- signal. The -\b-f\bf option says not to complain if this is a login
- shell; just suspend anyway. The return status is 0 unless the
+ Suspend the execution of this shell until it receives a S\bSI\bIG\bGC\bCO\bON\bNT\bT
+ signal. The -\b-f\bf option says not to complain if this is a login
+ shell; just suspend anyway. The return status is 0 unless the
shell is a login shell and -\b-f\bf is not supplied, or if job control
is not enabled.
t\bte\bes\bst\bt _\be_\bx_\bp_\br
[\b[ _\be_\bx_\bp_\br ]\b]
- Return a status of 0 or 1 depending on the evaluation of the
- conditional expression _\be_\bx_\bp_\br. Each operator and operand must be
- a separate argument. Expressions are composed of the primaries
+ Return a status of 0 or 1 depending on the evaluation of the
+ conditional expression _\be_\bx_\bp_\br. Each operator and operand must be
+ a separate argument. Expressions are composed of the primaries
described above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS.
- Expressions may be combined using the following operators,
+ Expressions may be combined using the following operators,
listed in decreasing order of precedence.
!\b! _\be_\bx_\bp_\br True if _\be_\bx_\bp_\br is false.
(\b( _\be_\bx_\bp_\br )\b)
- Returns the value of _\be_\bx_\bp_\br. This may be used to override
+ Returns the value of _\be_\bx_\bp_\br. This may be used to override
the normal precedence of operators.
_\be_\bx_\bp_\br_\b1 -a\ba _\be_\bx_\bp_\br_\b2
True if both _\be_\bx_\bp_\br_\b1 and _\be_\bx_\bp_\br_\b2 are true.
null.
2 arguments
If the first argument is !\b!, the expression is true if and
- only if the second argument is null. If the first argu-
- ment is one of the unary conditional operators listed
- above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the expression is
+ only if the second argument is null. If the first argu-
+ ment is one of the unary conditional operators listed
+ above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the expression is
true if the unary test is true. If the first argument is
not a valid unary conditional operator, the expression is
false.
3 arguments
- If the second argument is one of the binary conditional
+ If the second argument is one of the binary conditional
operators listed above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the
result of the expression is the result of the binary test
- using the first and third arguments as operands. If the
- first argument is !\b!, the value is the negation of the
- two-argument test using the second and third arguments.
+ using the first and third arguments as operands. If the
+ first argument is !\b!, the value is the negation of the
+ two-argument test using the second and third arguments.
If the first argument is exactly (\b( and the third argument
- is exactly )\b), the result is the one-argument test of the
- second argument. Otherwise, the expression is false.
- The -\b-a\ba and -\b-o\bo operators are considered binary operators
+ is exactly )\b), the result is the one-argument test of the
+ second argument. Otherwise, the expression is false.
+ The -\b-a\ba and -\b-o\bo operators are considered binary operators
in this case.
4 arguments
If the first argument is !\b!, the result is the negation of
- the three-argument expression composed of the remaining
+ the three-argument expression composed of the remaining
arguments. Otherwise, the expression is parsed and eval-
- uated according to precedence using the rules listed
+ uated according to precedence using the rules listed
above.
5 or more arguments
- The expression is parsed and evaluated according to
+ The expression is parsed and evaluated according to
precedence using the rules listed above.
- t\bti\bim\bme\bes\bs Print the accumulated user and system times for the shell and
+ t\bti\bim\bme\bes\bs Print the accumulated user and system times for the shell and
for processes run from the shell. The return status is 0.
t\btr\bra\bap\bp [-\b-l\blp\bp] [[_\ba_\br_\bg] _\bs_\bi_\bg_\bs_\bp_\be_\bc ...]
- The command _\ba_\br_\bg is to be read and executed when the shell
- receives signal(s) _\bs_\bi_\bg_\bs_\bp_\be_\bc. If _\ba_\br_\bg is absent (and there is a
- single _\bs_\bi_\bg_\bs_\bp_\be_\bc) or -\b-, each specified signal is reset to its
- original disposition (the value it had upon entrance to the
- shell). If _\ba_\br_\bg is the null string the signal specified by each
- _\bs_\bi_\bg_\bs_\bp_\be_\bc is ignored by the shell and by the commands it invokes.
- If _\ba_\br_\bg is not present and -\b-p\bp has been supplied, then the trap
- commands associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc are displayed. If no
- arguments are supplied or if only -\b-p\bp is given, t\btr\bra\bap\bp prints the
- list of commands associated with each signal. The -\b-l\bl option
- causes the shell to print a list of signal names and their cor-
- responding numbers. Each _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a signal name
- defined in <_\bs_\bi_\bg_\bn_\ba_\bl_\b._\bh>, or a signal number. Signal names are
- case insensitive and the SIG prefix is optional. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc
- is E\bEX\bXI\bIT\bT (0) the command _\ba_\br_\bg is executed on exit from the shell.
- If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is D\bDE\bEB\bBU\bUG\bG, the command _\ba_\br_\bg is executed before every
+ The command _\ba_\br_\bg is to be read and executed when the shell
+ receives signal(s) _\bs_\bi_\bg_\bs_\bp_\be_\bc. If _\ba_\br_\bg is absent (and there is a
+ single _\bs_\bi_\bg_\bs_\bp_\be_\bc) or -\b-, each specified signal is reset to its
+ original disposition (the value it had upon entrance to the
+ shell). If _\ba_\br_\bg is the null string the signal specified by each
+ _\bs_\bi_\bg_\bs_\bp_\be_\bc is ignored by the shell and by the commands it invokes.
+ If _\ba_\br_\bg is not present and -\b-p\bp has been supplied, then the trap
+ commands associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc are displayed. If no
+ arguments are supplied or if only -\b-p\bp is given, t\btr\bra\bap\bp prints the
+ list of commands associated with each signal. The -\b-l\bl option
+ causes the shell to print a list of signal names and their cor-
+ responding numbers. Each _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a signal name
+ defined in <_\bs_\bi_\bg_\bn_\ba_\bl_\b._\bh>, or a signal number. Signal names are
+ case insensitive and the SIG prefix is optional. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc
+ is E\bEX\bXI\bIT\bT (0) the command _\ba_\br_\bg is executed on exit from the shell.
+ If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is D\bDE\bEB\bBU\bUG\bG, the command _\ba_\br_\bg is executed before every
_\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, _\bf_\bo_\br command, _\bc_\ba_\bs_\be command, _\bs_\be_\bl_\be_\bc_\bt command, every
arithmetic _\bf_\bo_\br command, and before the first command executes in
- a shell function (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR above). Refer to the
- description of the e\bex\bxt\btd\bde\beb\bbu\bug\bg option to the s\bsh\bho\bop\bpt\bt builtin for
- details of its effect on the D\bDE\bEB\bBU\bUG\bG trap. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bER\bRR\bR,
- the command _\ba_\br_\bg is executed whenever a simple command has a
- non-zero exit status, subject to the following conditions. The
- E\bER\bRR\bR trap is not executed if the failed command is part of the
- command list immediately following a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword,
+ a shell function (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR above). Refer to the
+ description of the e\bex\bxt\btd\bde\beb\bbu\bug\bg option to the s\bsh\bho\bop\bpt\bt builtin for
+ details of its effect on the D\bDE\bEB\bBU\bUG\bG trap. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bER\bRR\bR,
+ the command _\ba_\br_\bg is executed whenever a simple command has a
+ non-zero exit status, subject to the following conditions. The
+ E\bER\bRR\bR trap is not executed if the failed command is part of the
+ command list immediately following a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword,
part of the test in an _\bi_\bf statement, part of a &\b&&\b& or |\b||\b| list, or
- if the command's return value is being inverted via !\b!. These
- are the same conditions obeyed by the e\ber\brr\bre\bex\bxi\bit\bt option. If a
+ if the command's return value is being inverted via !\b!. These
+ are the same conditions obeyed by the e\ber\brr\bre\bex\bxi\bit\bt option. If a
_\bs_\bi_\bg_\bs_\bp_\be_\bc is R\bRE\bET\bTU\bUR\bRN\bN, the command _\ba_\br_\bg is executed each time a shell
function or a script executed with the .\b. or s\bso\bou\bur\brc\bce\be builtins fin-
ishes executing. Signals ignored upon entry to the shell cannot
- be trapped or reset. Trapped signals are reset to their origi-
- nal values in a child process when it is created. The return
- status is false if any _\bs_\bi_\bg_\bs_\bp_\be_\bc is invalid; otherwise t\btr\bra\bap\bp
+ be trapped or reset. Trapped signals are reset to their origi-
+ nal values in a child process when it is created. The return
+ status is false if any _\bs_\bi_\bg_\bs_\bp_\be_\bc is invalid; otherwise t\btr\bra\bap\bp
returns true.
t\bty\byp\bpe\be [-\b-a\baf\bft\btp\bpP\bP] _\bn_\ba_\bm_\be [_\bn_\ba_\bm_\be ...]
- With no options, indicate how each _\bn_\ba_\bm_\be would be interpreted if
+ With no options, indicate how each _\bn_\ba_\bm_\be would be interpreted if
used as a command name. If the -\b-t\bt option is used, t\bty\byp\bpe\be prints a
- string which is one of _\ba_\bl_\bi_\ba_\bs, _\bk_\be_\by_\bw_\bo_\br_\bd, _\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn, _\bb_\bu_\bi_\bl_\bt_\bi_\bn, or
- _\bf_\bi_\bl_\be if _\bn_\ba_\bm_\be is an alias, shell reserved word, function,
- builtin, or disk file, respectively. If the _\bn_\ba_\bm_\be is not found,
- then nothing is printed, and an exit status of false is
- returned. If the -\b-p\bp option is used, t\bty\byp\bpe\be either returns the
+ string which is one of _\ba_\bl_\bi_\ba_\bs, _\bk_\be_\by_\bw_\bo_\br_\bd, _\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn, _\bb_\bu_\bi_\bl_\bt_\bi_\bn, or
+ _\bf_\bi_\bl_\be if _\bn_\ba_\bm_\be is an alias, shell reserved word, function,
+ builtin, or disk file, respectively. If the _\bn_\ba_\bm_\be is not found,
+ then nothing is printed, and an exit status of false is
+ returned. If the -\b-p\bp option is used, t\bty\byp\bpe\be either returns the
name of the disk file that would be executed if _\bn_\ba_\bm_\be were speci-
fied as a command name, or nothing if ``type -t name'' would not
- return _\bf_\bi_\bl_\be. The -\b-P\bP option forces a P\bPA\bAT\bTH\bH search for each _\bn_\ba_\bm_\be,
+ return _\bf_\bi_\bl_\be. The -\b-P\bP option forces a P\bPA\bAT\bTH\bH search for each _\bn_\ba_\bm_\be,
even if ``type -t name'' would not return _\bf_\bi_\bl_\be. If a command is
- hashed, -\b-p\bp and -\b-P\bP print the hashed value, not necessarily the
+ hashed, -\b-p\bp and -\b-P\bP print the hashed value, not necessarily the
file that appears first in P\bPA\bAT\bTH\bH. If the -\b-a\ba option is used, t\bty\byp\bpe\be
- prints all of the places that contain an executable named _\bn_\ba_\bm_\be.
- This includes aliases and functions, if and only if the -\b-p\bp
- option is not also used. The table of hashed commands is not
- consulted when using -\b-a\ba. The -\b-f\bf option suppresses shell func-
- tion lookup, as with the c\bco\bom\bmm\bma\ban\bnd\bd builtin. t\bty\byp\bpe\be returns true if
+ prints all of the places that contain an executable named _\bn_\ba_\bm_\be.
+ This includes aliases and functions, if and only if the -\b-p\bp
+ option is not also used. The table of hashed commands is not
+ consulted when using -\b-a\ba. The -\b-f\bf option suppresses shell func-
+ tion lookup, as with the c\bco\bom\bmm\bma\ban\bnd\bd builtin. t\bty\byp\bpe\be returns true if
any of the arguments are found, false if none are found.
u\bul\bli\bim\bmi\bit\bt [-\b-S\bSH\bHa\bac\bcd\bdf\bfl\blm\bmn\bnp\bps\bst\btu\buv\bv [_\bl_\bi_\bm_\bi_\bt]]
- Provides control over the resources available to the shell and
- to processes started by it, on systems that allow such control.
+ Provides control over the resources available to the shell and
+ to processes started by it, on systems that allow such control.
The -\b-H\bH and -\b-S\bS options specify that the hard or soft limit is set
- for the given resource. A hard limit cannot be increased once
- it is set; a soft limit may be increased up to the value of the
- hard limit. If neither -\b-H\bH nor -\b-S\bS is specified, both the soft
- and hard limits are set. The value of _\bl_\bi_\bm_\bi_\bt can be a number in
+ for the given resource. A hard limit cannot be increased once
+ it is set; a soft limit may be increased up to the value of the
+ hard limit. If neither -\b-H\bH nor -\b-S\bS is specified, both the soft
+ and hard limits are set. The value of _\bl_\bi_\bm_\bi_\bt can be a number in
the unit specified for the resource or one of the special values
- h\bha\bar\brd\bd, s\bso\bof\bft\bt, or u\bun\bnl\bli\bim\bmi\bit\bte\bed\bd, which stand for the current hard
- limit, the current soft limit, and no limit, respectively. If
- _\bl_\bi_\bm_\bi_\bt is omitted, the current value of the soft limit of the
- resource is printed, unless the -\b-H\bH option is given. When more
- than one resource is specified, the limit name and unit are
+ h\bha\bar\brd\bd, s\bso\bof\bft\bt, or u\bun\bnl\bli\bim\bmi\bit\bte\bed\bd, which stand for the current hard
+ limit, the current soft limit, and no limit, respectively. If
+ _\bl_\bi_\bm_\bi_\bt is omitted, the current value of the soft limit of the
+ resource is printed, unless the -\b-H\bH option is given. When more
+ than one resource is specified, the limit name and unit are
printed before the value. Other options are interpreted as fol-
lows:
-\b-a\ba All current limits are reported
-\b-p\bp The pipe size in 512-byte blocks (this may not be set)
-\b-s\bs The maximum stack size
-\b-t\bt The maximum amount of cpu time in seconds
- -\b-u\bu The maximum number of processes available to a single
+ -\b-u\bu The maximum number of processes available to a single
user
- -\b-v\bv The maximum amount of virtual memory available to the
+ -\b-v\bv The maximum amount of virtual memory available to the
shell
If _\bl_\bi_\bm_\bi_\bt is given, it is the new value of the specified resource
(the -\b-a\ba option is display only). If no option is given, then -\b-f\bf
- is assumed. Values are in 1024-byte increments, except for -\b-t\bt,
- which is in seconds, -\b-p\bp, which is in units of 512-byte blocks,
- and -\b-n\bn and -\b-u\bu, which are unscaled values. The return status is
- 0 unless an invalid option or argument is supplied, or an error
+ is assumed. Values are in 1024-byte increments, except for -\b-t\bt,
+ which is in seconds, -\b-p\bp, which is in units of 512-byte blocks,
+ and -\b-n\bn and -\b-u\bu, which are unscaled values. The return status is
+ 0 unless an invalid option or argument is supplied, or an error
occurs while setting a new limit.
u\bum\bma\bas\bsk\bk [-\b-p\bp] [-\b-S\bS] [_\bm_\bo_\bd_\be]
The user file-creation mask is set to _\bm_\bo_\bd_\be. If _\bm_\bo_\bd_\be begins with
- a digit, it is interpreted as an octal number; otherwise it is
- interpreted as a symbolic mode mask similar to that accepted by
- _\bc_\bh_\bm_\bo_\bd(1). If _\bm_\bo_\bd_\be is omitted, the current value of the mask is
- printed. The -\b-S\bS option causes the mask to be printed in sym-
- bolic form; the default output is an octal number. If the -\b-p\bp
+ a digit, it is interpreted as an octal number; otherwise it is
+ interpreted as a symbolic mode mask similar to that accepted by
+ _\bc_\bh_\bm_\bo_\bd(1). If _\bm_\bo_\bd_\be is omitted, the current value of the mask is
+ printed. The -\b-S\bS option causes the mask to be printed in sym-
+ bolic form; the default output is an octal number. If the -\b-p\bp
option is supplied, and _\bm_\bo_\bd_\be is omitted, the output is in a form
that may be reused as input. The return status is 0 if the mode
- was successfully changed or if no _\bm_\bo_\bd_\be argument was supplied,
+ was successfully changed or if no _\bm_\bo_\bd_\be argument was supplied,
and false otherwise.
u\bun\bna\bal\bli\bia\bas\bs [-a\ba] [_\bn_\ba_\bm_\be ...]
- Remove each _\bn_\ba_\bm_\be from the list of defined aliases. If -\b-a\ba is
- supplied, all alias definitions are removed. The return value
+ Remove each _\bn_\ba_\bm_\be from the list of defined aliases. If -\b-a\ba is
+ supplied, all alias definitions are removed. The return value
is true unless a supplied _\bn_\ba_\bm_\be is not a defined alias.
u\bun\bns\bse\bet\bt [-f\bfv\bv] [_\bn_\ba_\bm_\be ...]
- For each _\bn_\ba_\bm_\be, remove the corresponding variable or function.
+ For each _\bn_\ba_\bm_\be, remove the corresponding variable or function.
If no options are supplied, or the -\b-v\bv option is given, each _\bn_\ba_\bm_\be
- refers to a shell variable. Read-only variables may not be
- unset. If -\b-f\bf is specified, each _\bn_\ba_\bm_\be refers to a shell func-
- tion, and the function definition is removed. Each unset vari-
- able or function is removed from the environment passed to sub-
- sequent commands. If any of R\bRA\bAN\bND\bDO\bOM\bM, S\bSE\bEC\bCO\bON\bND\bDS\bS, L\bLI\bIN\bNE\bEN\bNO\bO, H\bHI\bIS\bST\bTC\bCM\bMD\bD,
+ refers to a shell variable. Read-only variables may not be
+ unset. If -\b-f\bf is specified, each _\bn_\ba_\bm_\be refers to a shell func-
+ tion, and the function definition is removed. Each unset vari-
+ able or function is removed from the environment passed to sub-
+ sequent commands. If any of R\bRA\bAN\bND\bDO\bOM\bM, S\bSE\bEC\bCO\bON\bND\bDS\bS, L\bLI\bIN\bNE\bEN\bNO\bO, H\bHI\bIS\bST\bTC\bCM\bMD\bD,
F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE, G\bGR\bRO\bOU\bUP\bPS\bS, or D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK are unset, they lose their special
- properties, even if they are subsequently reset. The exit sta-
+ properties, even if they are subsequently reset. The exit sta-
tus is true unless a _\bn_\ba_\bm_\be is readonly.
w\bwa\bai\bit\bt [_\bn _\b._\b._\b.]
- Wait for each specified process and return its termination sta-
- tus. Each _\bn may be a process ID or a job specification; if a
- job spec is given, all processes in that job's pipeline are
- waited for. If _\bn is not given, all currently active child pro-
- cesses are waited for, and the return status is zero. If _\bn
- specifies a non-existent process or job, the return status is
- 127. Otherwise, the return status is the exit status of the
+ Wait for each specified process and return its termination sta-
+ tus. Each _\bn may be a process ID or a job specification; if a
+ job spec is given, all processes in that job's pipeline are
+ waited for. If _\bn is not given, all currently active child pro-
+ cesses are waited for, and the return status is zero. If _\bn
+ specifies a non-existent process or job, the return status is
+ 127. Otherwise, the return status is the exit status of the
last process or job waited for.
R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL
If b\bba\bas\bsh\bh is started with the name r\brb\bba\bas\bsh\bh, or the -\b-r\br option is supplied at
- invocation, the shell becomes restricted. A restricted shell is used
- to set up an environment more controlled than the standard shell. It
- behaves identically to b\bba\bas\bsh\bh with the exception that the following are
+ invocation, the shell becomes restricted. A restricted shell is used
+ to set up an environment more controlled than the standard shell. It
+ behaves identically to b\bba\bas\bsh\bh with the exception that the following are
disallowed or not performed:
+\bo changing directories with c\bcd\bd
+\bo specifying command names containing /\b/
- +\bo specifying a file name containing a /\b/ as an argument to the .\b.
+ +\bo specifying a file name containing a /\b/ as an argument to the .\b.
builtin command
- +\bo Specifying a filename containing a slash as an argument to the
+ +\bo Specifying a filename containing a slash as an argument to the
-\b-p\bp option to the h\bha\bas\bsh\bh builtin command
- +\bo importing function definitions from the shell environment at
+ +\bo importing function definitions from the shell environment at
startup
- +\bo parsing the value of S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS from the shell environment at
+ +\bo parsing the value of S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS from the shell environment at
startup
- +\bo redirecting output using the >, >|, <>, >&, &>, and >> redirec-
+ +\bo redirecting output using the >, >|, <>, >&, &>, and >> redirec-
tion operators
+\bo using the e\bex\bxe\bec\bc builtin command to replace the shell with another
command
- +\bo adding or deleting builtin commands with the -\b-f\bf and -\b-d\bd options
+ +\bo adding or deleting builtin commands with the -\b-f\bf and -\b-d\bd options
to the e\ben\bna\bab\bbl\ble\be builtin command
- +\bo Using the e\ben\bna\bab\bbl\ble\be builtin command to enable disabled shell
+ +\bo Using the e\ben\bna\bab\bbl\ble\be builtin command to enable disabled shell
builtins
+\bo specifying the -\b-p\bp option to the c\bco\bom\bmm\bma\ban\bnd\bd builtin command
These restrictions are enforced after any startup files are read.
When a command that is found to be a shell script is executed (see C\bCO\bOM\bM-\b-
- M\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN above), r\brb\bba\bas\bsh\bh turns off any restrictions in the shell
+ M\bMA\bAN\bND\bD E\bEX\bXE\bEC\bCU\bUT\bTI\bIO\bON\bN above), r\brb\bba\bas\bsh\bh turns off any restrictions in the shell
spawned to execute the script.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
_\bB_\ba_\bs_\bh _\bR_\be_\bf_\be_\br_\be_\bn_\bc_\be _\bM_\ba_\bn_\bu_\ba_\bl, Brian Fox and Chet Ramey
_\bT_\bh_\be _\bG_\bn_\bu _\bR_\be_\ba_\bd_\bl_\bi_\bn_\be _\bL_\bi_\bb_\br_\ba_\br_\by, Brian Fox and Chet Ramey
_\bT_\bh_\be _\bG_\bn_\bu _\bH_\bi_\bs_\bt_\bo_\br_\by _\bL_\bi_\bb_\br_\ba_\br_\by, Brian Fox and Chet Ramey
- _\bP_\bo_\br_\bt_\ba_\bb_\bl_\be _\bO_\bp_\be_\br_\ba_\bt_\bi_\bn_\bg _\bS_\by_\bs_\bt_\be_\bm _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be _\b(_\bP_\bO_\bS_\bI_\bX_\b) _\bP_\ba_\br_\bt _\b2_\b: _\bS_\bh_\be_\bl_\bl _\ba_\bn_\bd _\bU_\bt_\bi_\bl_\bi_\b-
+ _\bP_\bo_\br_\bt_\ba_\bb_\bl_\be _\bO_\bp_\be_\br_\ba_\bt_\bi_\bn_\bg _\bS_\by_\bs_\bt_\be_\bm _\bI_\bn_\bt_\be_\br_\bf_\ba_\bc_\be _\b(_\bP_\bO_\bS_\bI_\bX_\b) _\bP_\ba_\br_\bt _\b2_\b: _\bS_\bh_\be_\bl_\bl _\ba_\bn_\bd _\bU_\bt_\bi_\bl_\bi_\b-
_\bt_\bi_\be_\bs, IEEE
_\bs_\bh(1), _\bk_\bs_\bh(1), _\bc_\bs_\bh(1)
_\be_\bm_\ba_\bc_\bs(1), _\bv_\bi(1)
_\b~_\b/_\b._\bb_\ba_\bs_\bh_\br_\bc
The individual per-interactive-shell startup file
_\b~_\b/_\b._\bb_\ba_\bs_\bh_\b__\bl_\bo_\bg_\bo_\bu_\bt
- The individual login shell cleanup file, executed when a login
+ The individual login shell cleanup file, executed when a login
shell exits
_\b~_\b/_\b._\bi_\bn_\bp_\bu_\bt_\br_\bc
Individual _\br_\be_\ba_\bd_\bl_\bi_\bn_\be initialization file
B\bBU\bUG\bG R\bRE\bEP\bPO\bOR\bRT\bTS\bS
If you find a bug in b\bba\bas\bsh\bh,\b, you should report it. But first, you should
- make sure that it really is a bug, and that it appears in the latest
- version of b\bba\bas\bsh\bh. The latest version is always available from
+ make sure that it really is a bug, and that it appears in the latest
+ version of b\bba\bas\bsh\bh. The latest version is always available from
_\bf_\bt_\bp_\b:_\b/_\b/_\bf_\bt_\bp_\b._\bg_\bn_\bu_\b._\bo_\br_\bg_\b/_\bp_\bu_\bb_\b/_\bb_\ba_\bs_\bh_\b/.
- Once you have determined that a bug actually exists, use the _\bb_\ba_\bs_\bh_\bb_\bu_\bg
- command to submit a bug report. If you have a fix, you are encouraged
- to mail that as well! Suggestions and `philosophical' bug reports may
- be mailed to _\bb_\bu_\bg_\b-_\bb_\ba_\bs_\bh_\b@_\bg_\bn_\bu_\b._\bo_\br_\bg or posted to the Usenet newsgroup
+ Once you have determined that a bug actually exists, use the _\bb_\ba_\bs_\bh_\bb_\bu_\bg
+ command to submit a bug report. If you have a fix, you are encouraged
+ to mail that as well! Suggestions and `philosophical' bug reports may
+ be mailed to _\bb_\bu_\bg_\b-_\bb_\ba_\bs_\bh_\b@_\bg_\bn_\bu_\b._\bo_\br_\bg or posted to the Usenet newsgroup
g\bgn\bnu\bu.\b.b\bba\bas\bsh\bh.\b.b\bbu\bug\bg.
ALL bug reports should include:
A description of the bug behaviour
A short script or `recipe' which exercises the bug
- _\bb_\ba_\bs_\bh_\bb_\bu_\bg inserts the first three items automatically into the template
+ _\bb_\ba_\bs_\bh_\bb_\bu_\bg inserts the first three items automatically into the template
it provides for filing a bug report.
Comments and bug reports concerning this manual page should be directed
Shell builtin commands and functions are not stoppable/restartable.
Compound commands and command sequences of the form `a ; b ; c' are not
- handled gracefully when process suspension is attempted. When a pro-
+ handled gracefully when process suspension is attempted. When a pro-
cess is stopped, the shell immediately executes the next command in the
sequence. It suffices to place the sequence of commands between paren-
theses to force it into a subshell, which may be stopped as a unit.
- Commands inside of $\b$(\b(...)\b) command substitution are not parsed until
- substitution is attempted. This will delay error reporting until some
+ Commands inside of $\b$(\b(...)\b) command substitution are not parsed until
+ substitution is attempted. This will delay error reporting until some
time after the command is entered. For example, unmatched parentheses,
- even inside shell comments, will result in error messages while the
+ even inside shell comments, will result in error messages while the
construct is being read.
Array variables may not (yet) be exported.
-GNU Bash-3.1-devel 2004 Nov 22 BASH(1)
+GNU Bash-3.1-devel 2004 Dec 1 BASH(1)
<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>
<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>
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
<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>
<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>
</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>
%!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
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
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
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
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
(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
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
(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
-.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
-.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
(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
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
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
-.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
.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
.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
(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
(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
(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
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
(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
(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
(<<<)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
(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
(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
(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
(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
.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
-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
(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
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
(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
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
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
.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
(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
(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
(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
(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
(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
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
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
.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
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
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
(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
(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
(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
(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
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
.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
(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
(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
(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
<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
.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
-.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
-.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
(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
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
(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
(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
(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
.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
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
(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
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
-.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
<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>
<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>
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>
<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>
</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>
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>
<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>
<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>
/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.
*************
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
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
`-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
/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
`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::).
\1f
Tag Table:
-Node: Top\7f1375
-Node: Introduction\7f3537
-Node: What is Bash?\7f3766
-Node: What is a shell?\7f4859
-Node: Definitions\7f7400
-Node: Basic Shell Features\7f10141
-Node: Shell Syntax\7f11360
-Node: Shell Operation\7f12392
-Node: Quoting\7f13686
-Node: Escape Character\7f14960
-Node: Single Quotes\7f15445
-Node: Double Quotes\7f15793
-Node: ANSI-C Quoting\7f16819
-Node: Locale Translation\7f17775
-Node: Comments\7f18671
-Node: Shell Commands\7f19285
-Node: Simple Commands\7f20051
-Node: Pipelines\7f20682
-Node: Lists\7f22557
-Node: Compound Commands\7f24188
-Node: Looping Constructs\7f24972
-Node: Conditional Constructs\7f27419
-Node: Command Grouping\7f34486
-Node: Shell Functions\7f35935
-Node: Shell Parameters\7f40203
-Node: Positional Parameters\7f42533
-Node: Special Parameters\7f43433
-Node: Shell Expansions\7f46358
-Node: Brace Expansion\7f48283
-Node: Tilde Expansion\7f50608
-Node: Shell Parameter Expansion\7f52959
-Node: Command Substitution\7f60468
-Node: Arithmetic Expansion\7f61801
-Node: Process Substitution\7f62651
-Node: Word Splitting\7f63701
-Node: Filename Expansion\7f65162
-Node: Pattern Matching\7f67298
-Node: Quote Removal\7f70623
-Node: Redirections\7f70918
-Node: Executing Commands\7f78648
-Node: Simple Command Expansion\7f79323
-Node: Command Search and Execution\7f81253
-Node: Command Execution Environment\7f83259
-Node: Environment\7f86030
-Node: Exit Status\7f87690
-Node: Signals\7f88894
-Node: Shell Scripts\7f90858
-Node: Shell Builtin Commands\7f93376
-Node: Bourne Shell Builtins\7f94955
-Node: Bash Builtins\7f111908
-Node: The Set Builtin\7f140035
-Node: Special Builtins\7f148413
-Node: Shell Variables\7f149390
-Node: Bourne Shell Variables\7f149830
-Node: Bash Variables\7f151811
-Node: Bash Features\7f171518
-Node: Invoking Bash\7f172401
-Node: Bash Startup Files\7f178222
-Node: Interactive Shells\7f183080
-Node: What is an Interactive Shell?\7f183490
-Node: Is this Shell Interactive?\7f184140
-Node: Interactive Shell Behavior\7f184955
-Node: Bash Conditional Expressions\7f188231
-Node: Shell Arithmetic\7f191810
-Node: Aliases\7f194556
-Node: Arrays\7f197124
-Node: The Directory Stack\7f200391
-Node: Directory Stack Builtins\7f201105
-Node: Printing a Prompt\7f203996
-Node: The Restricted Shell\7f206710
-Node: Bash POSIX Mode\7f208542
-Node: Job Control\7f215875
-Node: Job Control Basics\7f216342
-Node: Job Control Builtins\7f220718
-Node: Job Control Variables\7f225070
-Node: Command Line Editing\7f226228
-Node: Introduction and Notation\7f227227
-Node: Readline Interaction\7f228849
-Node: Readline Bare Essentials\7f230040
-Node: Readline Movement Commands\7f231829
-Node: Readline Killing Commands\7f232794
-Node: Readline Arguments\7f234714
-Node: Searching\7f235758
-Node: Readline Init File\7f237944
-Node: Readline Init File Syntax\7f239003
-Node: Conditional Init Constructs\7f250862
-Node: Sample Init File\7f253395
-Node: Bindable Readline Commands\7f256512
-Node: Commands For Moving\7f257719
-Node: Commands For History\7f258580
-Node: Commands For Text\7f261735
-Node: Commands For Killing\7f264408
-Node: Numeric Arguments\7f266550
-Node: Commands For Completion\7f267689
-Node: Keyboard Macros\7f271282
-Node: Miscellaneous Commands\7f271853
-Node: Readline vi Mode\7f277164
-Node: Programmable Completion\7f278078
-Node: Programmable Completion Builtins\7f283890
-Node: Using History Interactively\7f291486
-Node: Bash History Facilities\7f292166
-Node: Bash History Builtins\7f294861
-Node: History Interaction\7f298718
-Node: Event Designators\7f301274
-Node: Word Designators\7f302289
-Node: Modifiers\7f303928
-Node: Installing Bash\7f305334
-Node: Basic Installation\7f306471
-Node: Compilers and Options\7f309163
-Node: Compiling For Multiple Architectures\7f309904
-Node: Installation Names\7f311568
-Node: Specifying the System Type\7f312386
-Node: Sharing Defaults\7f313102
-Node: Operation Controls\7f313775
-Node: Optional Features\7f314733
-Node: Reporting Bugs\7f323012
-Node: Major Differences From The Bourne Shell\7f324206
-Node: Copying This Manual\7f339978
-Node: GNU Free Documentation License\7f340254
-Node: Builtin Index\7f362660
-Node: Reserved Word Index\7f369209
-Node: Variable Index\7f371645
-Node: Function Index\7f382505
-Node: Concept Index\7f389225
+Node: Top\7f1373
+Node: Introduction\7f3533
+Node: What is Bash?\7f3762
+Node: What is a shell?\7f4855
+Node: Definitions\7f7396
+Node: Basic Shell Features\7f10137
+Node: Shell Syntax\7f11356
+Node: Shell Operation\7f12388
+Node: Quoting\7f13682
+Node: Escape Character\7f14956
+Node: Single Quotes\7f15441
+Node: Double Quotes\7f15789
+Node: ANSI-C Quoting\7f16815
+Node: Locale Translation\7f17771
+Node: Comments\7f18667
+Node: Shell Commands\7f19281
+Node: Simple Commands\7f20047
+Node: Pipelines\7f20678
+Node: Lists\7f22553
+Node: Compound Commands\7f24184
+Node: Looping Constructs\7f24968
+Node: Conditional Constructs\7f27415
+Node: Command Grouping\7f34482
+Node: Shell Functions\7f35931
+Node: Shell Parameters\7f40221
+Node: Positional Parameters\7f42551
+Node: Special Parameters\7f43451
+Node: Shell Expansions\7f46376
+Node: Brace Expansion\7f48301
+Node: Tilde Expansion\7f50626
+Node: Shell Parameter Expansion\7f52977
+Node: Command Substitution\7f60486
+Node: Arithmetic Expansion\7f61819
+Node: Process Substitution\7f62669
+Node: Word Splitting\7f63719
+Node: Filename Expansion\7f65180
+Node: Pattern Matching\7f67316
+Node: Quote Removal\7f70641
+Node: Redirections\7f70936
+Node: Executing Commands\7f78666
+Node: Simple Command Expansion\7f79341
+Node: Command Search and Execution\7f81271
+Node: Command Execution Environment\7f83277
+Node: Environment\7f86048
+Node: Exit Status\7f87708
+Node: Signals\7f88912
+Node: Shell Scripts\7f90876
+Node: Shell Builtin Commands\7f93394
+Node: Bourne Shell Builtins\7f94973
+Node: Bash Builtins\7f111926
+Node: The Set Builtin\7f140066
+Node: Special Builtins\7f148473
+Node: Shell Variables\7f149450
+Node: Bourne Shell Variables\7f149890
+Node: Bash Variables\7f151871
+Node: Bash Features\7f171578
+Node: Invoking Bash\7f172461
+Node: Bash Startup Files\7f178282
+Node: Interactive Shells\7f183140
+Node: What is an Interactive Shell?\7f183550
+Node: Is this Shell Interactive?\7f184200
+Node: Interactive Shell Behavior\7f185015
+Node: Bash Conditional Expressions\7f188291
+Node: Shell Arithmetic\7f191870
+Node: Aliases\7f194616
+Node: Arrays\7f197184
+Node: The Directory Stack\7f200451
+Node: Directory Stack Builtins\7f201165
+Node: Printing a Prompt\7f204056
+Node: The Restricted Shell\7f206770
+Node: Bash POSIX Mode\7f208602
+Node: Job Control\7f215935
+Node: Job Control Basics\7f216402
+Node: Job Control Builtins\7f220778
+Node: Job Control Variables\7f225130
+Node: Command Line Editing\7f226288
+Node: Introduction and Notation\7f227287
+Node: Readline Interaction\7f228909
+Node: Readline Bare Essentials\7f230100
+Node: Readline Movement Commands\7f231889
+Node: Readline Killing Commands\7f232854
+Node: Readline Arguments\7f234774
+Node: Searching\7f235818
+Node: Readline Init File\7f238004
+Node: Readline Init File Syntax\7f239063
+Node: Conditional Init Constructs\7f250922
+Node: Sample Init File\7f253455
+Node: Bindable Readline Commands\7f256572
+Node: Commands For Moving\7f257779
+Node: Commands For History\7f258640
+Node: Commands For Text\7f261795
+Node: Commands For Killing\7f264468
+Node: Numeric Arguments\7f266610
+Node: Commands For Completion\7f267749
+Node: Keyboard Macros\7f271342
+Node: Miscellaneous Commands\7f271913
+Node: Readline vi Mode\7f277224
+Node: Programmable Completion\7f278138
+Node: Programmable Completion Builtins\7f283950
+Node: Using History Interactively\7f291546
+Node: Bash History Facilities\7f292226
+Node: Bash History Builtins\7f294921
+Node: History Interaction\7f298778
+Node: Event Designators\7f301334
+Node: Word Designators\7f302349
+Node: Modifiers\7f303988
+Node: Installing Bash\7f305394
+Node: Basic Installation\7f306531
+Node: Compilers and Options\7f309223
+Node: Compiling For Multiple Architectures\7f309964
+Node: Installation Names\7f311628
+Node: Specifying the System Type\7f312446
+Node: Sharing Defaults\7f313162
+Node: Operation Controls\7f313835
+Node: Optional Features\7f314793
+Node: Reporting Bugs\7f323072
+Node: Major Differences From The Bourne Shell\7f324266
+Node: Copying This Manual\7f340174
+Node: GNU Free Documentation License\7f340450
+Node: Builtin Index\7f362856
+Node: Reserved Word Index\7f369405
+Node: Variable Index\7f371841
+Node: Function Index\7f382701
+Node: Concept Index\7f389421
\1f
End Tag Table
-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,
.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-
.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,
.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-
.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
-
.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-
.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
[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_
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).
%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
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
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)
(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
(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
(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
-\b-r\br Make _\bn_\ba_\bm_\bes readonly. These names cannot then be assigned
values by subsequent assignment statements or unset.
-\b-t\bt Give each _\bn_\ba_\bm_\be the _\bt_\br_\ba_\bc_\be attribute. Traced functions
- inherit the D\bDE\bEB\bBU\bUG\bG trap from the calling shell. The trace
- attribute has no special meaning for variables.
- -\b-x\bx Mark _\bn_\ba_\bm_\bes for export to subsequent commands via the
+ inherit the D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN traps from the calling
+ shell. The trace attribute has no special meaning for
+ variables.
+ -\b-x\bx Mark _\bn_\ba_\bm_\bes for export to subsequent commands via the
environment.
- Using `+' instead of `-' turns off the attribute instead, with
- the exception that +\b+a\ba may not be used to destroy an array vari-
- able. When used in a function, makes each _\bn_\ba_\bm_\be local, as with
- the l\blo\boc\bca\bal\bl command. If a variable name is followed by =_\bv_\ba_\bl_\bu_\be,
- the value of the variable is set to _\bv_\ba_\bl_\bu_\be. The return value is
+ Using `+' instead of `-' turns off the attribute instead, with
+ the exception that +\b+a\ba may not be used to destroy an array vari-
+ able. When used in a function, makes each _\bn_\ba_\bm_\be local, as with
+ the l\blo\boc\bca\bal\bl command. If a variable name is followed by =_\bv_\ba_\bl_\bu_\be,
+ the value of the variable is set to _\bv_\ba_\bl_\bu_\be. The return value is
0 unless an invalid option is encountered, an attempt is made to
- define a function using ``-f foo=bar'', an attempt is made to
- assign a value to a readonly variable, an attempt is made to
- assign a value to an array variable without using the compound
- assignment syntax (see A\bAr\brr\bra\bay\bys\bs above), one of the _\bn_\ba_\bm_\be_\bs is not a
- valid shell variable name, an attempt is made to turn off read-
- only status for a readonly variable, an attempt is made to turn
+ define a function using ``-f foo=bar'', an attempt is made to
+ assign a value to a readonly variable, an attempt is made to
+ assign a value to an array variable without using the compound
+ assignment syntax (see A\bAr\brr\bra\bay\bys\bs above), one of the _\bn_\ba_\bm_\be_\bs is not a
+ valid shell variable name, an attempt is made to turn off read-
+ only status for a readonly variable, an attempt is made to turn
off array status for an array variable, or an attempt is made to
display a non-existent function with -\b-f\bf.
d\bdi\bir\brs\bs [\b[-\b-c\bcl\blp\bpv\bv]\b] [\b[+\b+_\bn]\b] [\b[-\b-_\bn]\b]
- Without options, displays the list of currently remembered
- directories. The default display is on a single line with
- directory names separated by spaces. Directories are added to
- the list with the p\bpu\bus\bsh\bhd\bd command; the p\bpo\bop\bpd\bd command removes
+ Without options, displays the list of currently remembered
+ directories. The default display is on a single line with
+ directory names separated by spaces. Directories are added to
+ the list with the p\bpu\bus\bsh\bhd\bd command; the p\bpo\bop\bpd\bd command removes
entries from the list.
+\b+_\bn Displays the _\bnth entry counting from the left of the list
shown by d\bdi\bir\brs\bs when invoked without options, starting with
zero.
- -\b-_\bn Displays the _\bnth entry counting from the right of the
+ -\b-_\bn Displays the _\bnth entry counting from the right of the
list shown by d\bdi\bir\brs\bs when invoked without options, starting
with zero.
-\b-c\bc Clears the directory stack by deleting all of the
entries.
- -\b-l\bl Produces a longer listing; the default listing format
+ -\b-l\bl Produces a longer listing; the default listing format
uses a tilde to denote the home directory.
-\b-p\bp Print the directory stack with one entry per line.
- -\b-v\bv Print the directory stack with one entry per line, pre-
+ -\b-v\bv Print the directory stack with one entry per line, pre-
fixing each entry with its index in the stack.
- The return value is 0 unless an invalid option is supplied or _\bn
+ The return value is 0 unless an invalid option is supplied or _\bn
indexes beyond the end of the directory stack.
d\bdi\bis\bso\bow\bwn\bn [-\b-a\bar\br] [-\b-h\bh] [_\bj_\bo_\bb_\bs_\bp_\be_\bc ...]
- Without options, each _\bj_\bo_\bb_\bs_\bp_\be_\bc is removed from the table of
- active jobs. If the -\b-h\bh option is given, each _\bj_\bo_\bb_\bs_\bp_\be_\bc is not
+ Without options, each _\bj_\bo_\bb_\bs_\bp_\be_\bc is removed from the table of
+ active jobs. If the -\b-h\bh option is given, each _\bj_\bo_\bb_\bs_\bp_\be_\bc is not
removed from the table, but is marked so that S\bSI\bIG\bGH\bHU\bUP\bP is not sent
- to the job if the shell receives a S\bSI\bIG\bGH\bHU\bUP\bP. If no _\bj_\bo_\bb_\bs_\bp_\be_\bc is
- present, and neither the -\b-a\ba nor the -\b-r\br option is supplied, the
- _\bc_\bu_\br_\br_\be_\bn_\bt _\bj_\bo_\bb is used. If no _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied, the -\b-a\ba option
- means to remove or mark all jobs; the -\b-r\br option without a _\bj_\bo_\bb_\b-
- _\bs_\bp_\be_\bc argument restricts operation to running jobs. The return
+ to the job if the shell receives a S\bSI\bIG\bGH\bHU\bUP\bP. If no _\bj_\bo_\bb_\bs_\bp_\be_\bc is
+ present, and neither the -\b-a\ba nor the -\b-r\br option is supplied, the
+ _\bc_\bu_\br_\br_\be_\bn_\bt _\bj_\bo_\bb is used. If no _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied, the -\b-a\ba option
+ means to remove or mark all jobs; the -\b-r\br option without a _\bj_\bo_\bb_\b-
+ _\bs_\bp_\be_\bc argument restricts operation to running jobs. The return
value is 0 unless a _\bj_\bo_\bb_\bs_\bp_\be_\bc does not specify a valid job.
e\bec\bch\bho\bo [-\b-n\bne\beE\bE] [_\ba_\br_\bg ...]
- Output the _\ba_\br_\bgs, separated by spaces, followed by a newline.
+ Output the _\ba_\br_\bgs, separated by spaces, followed by a newline.
The return status is always 0. If -\b-n\bn is specified, the trailing
- newline is suppressed. If the -\b-e\be option is given, interpreta-
- tion of the following backslash-escaped characters is enabled.
- The -\b-E\bE option disables the interpretation of these escape char-
- acters, even on systems where they are interpreted by default.
- The x\bxp\bpg\bg_\b_e\bec\bch\bho\bo shell option may be used to dynamically determine
- whether or not e\bec\bch\bho\bo expands these escape characters by default.
- e\bec\bch\bho\bo does not interpret -\b--\b- to mean the end of options. e\bec\bch\bho\bo
+ newline is suppressed. If the -\b-e\be option is given, interpreta-
+ tion of the following backslash-escaped characters is enabled.
+ The -\b-E\bE option disables the interpretation of these escape char-
+ acters, even on systems where they are interpreted by default.
+ The x\bxp\bpg\bg_\b_e\bec\bch\bho\bo shell option may be used to dynamically determine
+ whether or not e\bec\bch\bho\bo expands these escape characters by default.
+ e\bec\bch\bho\bo does not interpret -\b--\b- to mean the end of options. e\bec\bch\bho\bo
interprets the following escape sequences:
\\b\a\ba alert (bell)
\\b\b\bb backspace
\\b\t\bt horizontal tab
\\b\v\bv vertical tab
\\b\\\b\ backslash
- \\b\0\b0_\bn_\bn_\bn the eight-bit character whose value is the octal value
+ \\b\0\b0_\bn_\bn_\bn the eight-bit character whose value is the octal value
_\bn_\bn_\bn (zero to three octal digits)
- \\b\_\bn_\bn_\bn the eight-bit character whose value is the octal value
+ \\b\_\bn_\bn_\bn the eight-bit character whose value is the octal value
_\bn_\bn_\bn (one to three octal digits)
- \\b\x\bx_\bH_\bH the eight-bit character whose value is the hexadecimal
+ \\b\x\bx_\bH_\bH the eight-bit character whose value is the hexadecimal
value _\bH_\bH (one or two hex digits)
e\ben\bna\bab\bbl\ble\be [-\b-a\bad\bdn\bnp\bps\bs] [-\b-f\bf _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be] [_\bn_\ba_\bm_\be ...]
- Enable and disable builtin shell commands. Disabling a builtin
+ Enable and disable builtin shell commands. Disabling a builtin
allows a disk command which has the same name as a shell builtin
- to be executed without specifying a full pathname, even though
- the shell normally searches for builtins before disk commands.
- If -\b-n\bn is used, each _\bn_\ba_\bm_\be is disabled; otherwise, _\bn_\ba_\bm_\be_\bs are
+ to be executed without specifying a full pathname, even though
+ the shell normally searches for builtins before disk commands.
+ If -\b-n\bn is used, each _\bn_\ba_\bm_\be is disabled; otherwise, _\bn_\ba_\bm_\be_\bs are
enabled. For example, to use the t\bte\bes\bst\bt binary found via the P\bPA\bAT\bTH\bH
- instead of the shell builtin version, run ``enable -n test''.
- The -\b-f\bf option means to load the new builtin command _\bn_\ba_\bm_\be from
+ instead of the shell builtin version, run ``enable -n test''.
+ The -\b-f\bf option means to load the new builtin command _\bn_\ba_\bm_\be from
shared object _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be, on systems that support dynamic loading.
- The -\b-d\bd option will delete a builtin previously loaded with -\b-f\bf.
+ The -\b-d\bd option will delete a builtin previously loaded with -\b-f\bf.
If no _\bn_\ba_\bm_\be arguments are given, or if the -\b-p\bp option is supplied,
a list of shell builtins is printed. With no other option argu-
- ments, the list consists of all enabled shell builtins. If -\b-n\bn
- is supplied, only disabled builtins are printed. If -\b-a\ba is sup-
- plied, the list printed includes all builtins, with an indica-
- tion of whether or not each is enabled. If -\b-s\bs is supplied, the
- output is restricted to the POSIX _\bs_\bp_\be_\bc_\bi_\ba_\bl builtins. The return
- value is 0 unless a _\bn_\ba_\bm_\be is not a shell builtin or there is an
+ ments, the list consists of all enabled shell builtins. If -\b-n\bn
+ is supplied, only disabled builtins are printed. If -\b-a\ba is sup-
+ plied, the list printed includes all builtins, with an indica-
+ tion of whether or not each is enabled. If -\b-s\bs is supplied, the
+ output is restricted to the POSIX _\bs_\bp_\be_\bc_\bi_\ba_\bl builtins. The return
+ value is 0 unless a _\bn_\ba_\bm_\be is not a shell builtin or there is an
error loading a new builtin from a shared object.
e\bev\bva\bal\bl [_\ba_\br_\bg ...]
- The _\ba_\br_\bgs are read and concatenated together into a single com-
- mand. This command is then read and executed by the shell, and
- its exit status is returned as the value of e\bev\bva\bal\bl. If there are
+ The _\ba_\br_\bgs are read and concatenated together into a single com-
+ mand. This command is then read and executed by the shell, and
+ its exit status is returned as the value of e\bev\bva\bal\bl. If there are
no _\ba_\br_\bg_\bs, or only null arguments, e\bev\bva\bal\bl returns 0.
e\bex\bxe\bec\bc [-\b-c\bcl\bl] [-\b-a\ba _\bn_\ba_\bm_\be] [_\bc_\bo_\bm_\bm_\ba_\bn_\bd [_\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs]]
- If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is specified, it replaces the shell. No new process
- is created. The _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs become the arguments to _\bc_\bo_\bm_\bm_\ba_\bn_\bd. If
+ If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is specified, it replaces the shell. No new process
+ is created. The _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs become the arguments to _\bc_\bo_\bm_\bm_\ba_\bn_\bd. If
the -\b-l\bl option is supplied, the shell places a dash at the begin-
ning of the zeroth arg passed to _\bc_\bo_\bm_\bm_\ba_\bn_\bd. This is what _\bl_\bo_\bg_\bi_\bn(1)
does. The -\b-c\bc option causes _\bc_\bo_\bm_\bm_\ba_\bn_\bd to be executed with an empty
- environment. If -\b-a\ba is supplied, the shell passes _\bn_\ba_\bm_\be as the
- zeroth argument to the executed command. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd cannot be
- executed for some reason, a non-interactive shell exits, unless
- the shell option e\bex\bxe\bec\bcf\bfa\bai\bil\bl is enabled, in which case it returns
- failure. An interactive shell returns failure if the file can-
- not be executed. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is not specified, any redirections
- take effect in the current shell, and the return status is 0.
+ environment. If -\b-a\ba is supplied, the shell passes _\bn_\ba_\bm_\be as the
+ zeroth argument to the executed command. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd cannot be
+ executed for some reason, a non-interactive shell exits, unless
+ the shell option e\bex\bxe\bec\bcf\bfa\bai\bil\bl is enabled, in which case it returns
+ failure. An interactive shell returns failure if the file can-
+ not be executed. If _\bc_\bo_\bm_\bm_\ba_\bn_\bd is not specified, any redirections
+ take effect in the current shell, and the return status is 0.
If there is a redirection error, the return status is 1.
e\bex\bxi\bit\bt [_\bn]
- Cause the shell to exit with a status of _\bn. If _\bn is omitted,
+ Cause the shell to exit with a status of _\bn. If _\bn is omitted,
the exit status is that of the last command executed. A trap on
E\bEX\bXI\bIT\bT is executed before the shell terminates.
e\bex\bxp\bpo\bor\brt\bt [-\b-f\bfn\bn] [_\bn_\ba_\bm_\be[=_\bw_\bo_\br_\bd]] ...
e\bex\bxp\bpo\bor\brt\bt -\b-p\bp
- The supplied _\bn_\ba_\bm_\be_\bs are marked for automatic export to the envi-
- ronment of subsequently executed commands. If the -\b-f\bf option is
- given, the _\bn_\ba_\bm_\be_\bs refer to functions. If no _\bn_\ba_\bm_\be_\bs are given, or
- if the -\b-p\bp option is supplied, a list of all names that are
- exported in this shell is printed. The -\b-n\bn option causes the
- export property to be removed from each _\bn_\ba_\bm_\be. If a variable
- name is followed by =_\bw_\bo_\br_\bd, the value of the variable is set to
- _\bw_\bo_\br_\bd. e\bex\bxp\bpo\bor\brt\bt returns an exit status of 0 unless an invalid
- option is encountered, one of the _\bn_\ba_\bm_\be_\bs is not a valid shell
+ The supplied _\bn_\ba_\bm_\be_\bs are marked for automatic export to the envi-
+ ronment of subsequently executed commands. If the -\b-f\bf option is
+ given, the _\bn_\ba_\bm_\be_\bs refer to functions. If no _\bn_\ba_\bm_\be_\bs are given, or
+ if the -\b-p\bp option is supplied, a list of all names that are
+ exported in this shell is printed. The -\b-n\bn option causes the
+ export property to be removed from each _\bn_\ba_\bm_\be. If a variable
+ name is followed by =_\bw_\bo_\br_\bd, the value of the variable is set to
+ _\bw_\bo_\br_\bd. e\bex\bxp\bpo\bor\brt\bt returns an exit status of 0 unless an invalid
+ option is encountered, one of the _\bn_\ba_\bm_\be_\bs is not a valid shell
variable name, or -\b-f\bf is supplied with a _\bn_\ba_\bm_\be that is not a func-
tion.
f\bfc\bc [-\b-e\be _\be_\bn_\ba_\bm_\be] [-\b-n\bnl\blr\br] [_\bf_\bi_\br_\bs_\bt] [_\bl_\ba_\bs_\bt]
f\bfc\bc -\b-s\bs [_\bp_\ba_\bt=_\br_\be_\bp] [_\bc_\bm_\bd]
- Fix Command. In the first form, a range of commands from _\bf_\bi_\br_\bs_\bt
- to _\bl_\ba_\bs_\bt is selected from the history list. _\bF_\bi_\br_\bs_\bt and _\bl_\ba_\bs_\bt may
- be specified as a string (to locate the last command beginning
- with that string) or as a number (an index into the history
+ Fix Command. In the first form, a range of commands from _\bf_\bi_\br_\bs_\bt
+ to _\bl_\ba_\bs_\bt is selected from the history list. _\bF_\bi_\br_\bs_\bt and _\bl_\ba_\bs_\bt may
+ be specified as a string (to locate the last command beginning
+ with that string) or as a number (an index into the history
list, where a negative number is used as an offset from the cur-
rent command number). If _\bl_\ba_\bs_\bt is not specified it is set to the
- current command for listing (so that ``fc -l -10'' prints the
- last 10 commands) and to _\bf_\bi_\br_\bs_\bt otherwise. If _\bf_\bi_\br_\bs_\bt is not spec-
- ified it is set to the previous command for editing and -16 for
- listing.
-
- The -\b-n\bn option suppresses the command numbers when listing. The
- -\b-r\br option reverses the order of the commands. If the -\b-l\bl option
- is given, the commands are listed on standard output. Other-
- wise, the editor given by _\be_\bn_\ba_\bm_\be is invoked on a file containing
- those commands. If _\be_\bn_\ba_\bm_\be is not given, the value of the F\bFC\bCE\bED\bDI\bIT\bT
- variable is used, and the value of E\bED\bDI\bIT\bTO\bOR\bR if F\bFC\bCE\bED\bDI\bIT\bT is not set.
- If neither variable is set, is used. When editing is complete,
+ current command for listing (so that ``fc -l -10'' prints the
+ last 10 commands) and to _\bf_\bi_\br_\bs_\bt otherwise. If _\bf_\bi_\br_\bs_\bt is not
+ specified it is set to the previous command for editing and -16
+ for listing.
+
+ The -\b-n\bn option suppresses the command numbers when listing. The
+ -\b-r\br option reverses the order of the commands. If the -\b-l\bl option
+ is given, the commands are listed on standard output. Other-
+ wise, the editor given by _\be_\bn_\ba_\bm_\be is invoked on a file containing
+ those commands. If _\be_\bn_\ba_\bm_\be is not given, the value of the F\bFC\bCE\bED\bDI\bIT\bT
+ variable is used, and the value of E\bED\bDI\bIT\bTO\bOR\bR if F\bFC\bCE\bED\bDI\bIT\bT is not set.
+ If neither variable is set, is used. When editing is complete,
the edited commands are echoed and executed.
- In the second form, _\bc_\bo_\bm_\bm_\ba_\bn_\bd is re-executed after each instance
- of _\bp_\ba_\bt is replaced by _\br_\be_\bp. A useful alias to use with this is
- ``r="fc -s"'', so that typing ``r cc'' runs the last command
+ In the second form, _\bc_\bo_\bm_\bm_\ba_\bn_\bd is re-executed after each instance
+ of _\bp_\ba_\bt is replaced by _\br_\be_\bp. A useful alias to use with this is
+ ``r="fc -s"'', so that typing ``r cc'' runs the last command
beginning with ``cc'' and typing ``r'' re-executes the last com-
mand.
- If the first form is used, the return value is 0 unless an
- invalid option is encountered or _\bf_\bi_\br_\bs_\bt or _\bl_\ba_\bs_\bt specify history
- lines out of range. If the -\b-e\be option is supplied, the return
+ If the first form is used, the return value is 0 unless an
+ invalid option is encountered or _\bf_\bi_\br_\bs_\bt or _\bl_\ba_\bs_\bt specify history
+ lines out of range. If the -\b-e\be option is supplied, the return
value is the value of the last command executed or failure if an
error occurs with the temporary file of commands. If the second
- form is used, the return status is that of the command re-exe-
- cuted, unless _\bc_\bm_\bd does not specify a valid history line, in
+ form is used, the return status is that of the command re-exe-
+ cuted, unless _\bc_\bm_\bd does not specify a valid history line, in
which case f\bfc\bc returns failure.
f\bfg\bg [_\bj_\bo_\bb_\bs_\bp_\be_\bc]
- Resume _\bj_\bo_\bb_\bs_\bp_\be_\bc in the foreground, and make it the current job.
+ Resume _\bj_\bo_\bb_\bs_\bp_\be_\bc in the foreground, and make it the current job.
If _\bj_\bo_\bb_\bs_\bp_\be_\bc is not present, the shell's notion of the _\bc_\bu_\br_\br_\be_\bn_\bt _\bj_\bo_\bb
- is used. The return value is that of the command placed into
- the foreground, or failure if run when job control is disabled
+ is used. The return value is that of the command placed into
+ the foreground, or failure if run when job control is disabled
or, when run with job control enabled, if _\bj_\bo_\bb_\bs_\bp_\be_\bc does not spec-
- ify a valid job or _\bj_\bo_\bb_\bs_\bp_\be_\bc specifies a job that was started
+ ify a valid job or _\bj_\bo_\bb_\bs_\bp_\be_\bc specifies a job that was started
without job control.
g\bge\bet\bto\bop\bpt\bts\bs _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg _\bn_\ba_\bm_\be [_\ba_\br_\bg_\bs]
- g\bge\bet\bto\bop\bpt\bts\bs is used by shell procedures to parse positional parame-
- ters. _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg contains the option characters to be recog-
- nized; if a character is followed by a colon, the option is
- expected to have an argument, which should be separated from it
- by white space. The colon and question mark characters may not
- be used as option characters. Each time it is invoked, g\bge\bet\bto\bop\bpt\bts\bs
- places the next option in the shell variable _\bn_\ba_\bm_\be, initializing
+ g\bge\bet\bto\bop\bpt\bts\bs is used by shell procedures to parse positional parame-
+ ters. _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg contains the option characters to be recog-
+ nized; if a character is followed by a colon, the option is
+ expected to have an argument, which should be separated from it
+ by white space. The colon and question mark characters may not
+ be used as option characters. Each time it is invoked, g\bge\bet\bto\bop\bpt\bts\bs
+ places the next option in the shell variable _\bn_\ba_\bm_\be, initializing
_\bn_\ba_\bm_\be if it does not exist, and the index of the next argument to
be processed into the variable O\bOP\bPT\bTI\bIN\bND\bD. O\bOP\bPT\bTI\bIN\bND\bD is initialized to
- 1 each time the shell or a shell script is invoked. When an
- option requires an argument, g\bge\bet\bto\bop\bpt\bts\bs places that argument into
- the variable O\bOP\bPT\bTA\bAR\bRG\bG. The shell does not reset O\bOP\bPT\bTI\bIN\bND\bD automati-
- cally; it must be manually reset between multiple calls to
+ 1 each time the shell or a shell script is invoked. When an
+ option requires an argument, g\bge\bet\bto\bop\bpt\bts\bs places that argument into
+ the variable O\bOP\bPT\bTA\bAR\bRG\bG. The shell does not reset O\bOP\bPT\bTI\bIN\bND\bD automati-
+ cally; it must be manually reset between multiple calls to
g\bge\bet\bto\bop\bpt\bts\bs within the same shell invocation if a new set of parame-
ters is to be used.
- When the end of options is encountered, g\bge\bet\bto\bop\bpt\bts\bs exits with a
- return value greater than zero. O\bOP\bPT\bTI\bIN\bND\bD is set to the index of
+ When the end of options is encountered, g\bge\bet\bto\bop\bpt\bts\bs exits with a
+ return value greater than zero. O\bOP\bPT\bTI\bIN\bND\bD is set to the index of
the first non-option argument, and n\bna\bam\bme\be is set to ?.
- g\bge\bet\bto\bop\bpt\bts\bs normally parses the positional parameters, but if more
+ g\bge\bet\bto\bop\bpt\bts\bs normally parses the positional parameters, but if more
arguments are given in _\ba_\br_\bg_\bs, g\bge\bet\bto\bop\bpt\bts\bs parses those instead.
- g\bge\bet\bto\bop\bpt\bts\bs can report errors in two ways. If the first character
- of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is a colon, _\bs_\bi_\bl_\be_\bn_\bt error reporting is used. In
- normal operation diagnostic messages are printed when invalid
- options or missing option arguments are encountered. If the
- variable O\bOP\bPT\bTE\bER\bRR\bR is set to 0, no error messages will be dis-
+ g\bge\bet\bto\bop\bpt\bts\bs can report errors in two ways. If the first character
+ of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is a colon, _\bs_\bi_\bl_\be_\bn_\bt error reporting is used. In
+ normal operation diagnostic messages are printed when invalid
+ options or missing option arguments are encountered. If the
+ variable O\bOP\bPT\bTE\bER\bRR\bR is set to 0, no error messages will be dis-
played, even if the first character of _\bo_\bp_\bt_\bs_\bt_\br_\bi_\bn_\bg is not a colon.
If an invalid option is seen, g\bge\bet\bto\bop\bpt\bts\bs places ? into _\bn_\ba_\bm_\be and, if
- not silent, prints an error message and unsets O\bOP\bPT\bTA\bAR\bRG\bG. If
- g\bge\bet\bto\bop\bpt\bts\bs is silent, the option character found is placed in
+ not silent, prints an error message and unsets O\bOP\bPT\bTA\bAR\bRG\bG. If
+ g\bge\bet\bto\bop\bpt\bts\bs is silent, the option character found is placed in
O\bOP\bPT\bTA\bAR\bRG\bG and no diagnostic message is printed.
- If a required argument is not found, and g\bge\bet\bto\bop\bpt\bts\bs is not silent,
- a question mark (?\b?) is placed in _\bn_\ba_\bm_\be, O\bOP\bPT\bTA\bAR\bRG\bG is unset, and a
- diagnostic message is printed. If g\bge\bet\bto\bop\bpt\bts\bs is silent, then a
- colon (:\b:) is placed in _\bn_\ba_\bm_\be and O\bOP\bPT\bTA\bAR\bRG\bG is set to the option
+ If a required argument is not found, and g\bge\bet\bto\bop\bpt\bts\bs is not silent,
+ a question mark (?\b?) is placed in _\bn_\ba_\bm_\be, O\bOP\bPT\bTA\bAR\bRG\bG is unset, and a
+ diagnostic message is printed. If g\bge\bet\bto\bop\bpt\bts\bs is silent, then a
+ colon (:\b:) is placed in _\bn_\ba_\bm_\be and O\bOP\bPT\bTA\bAR\bRG\bG is set to the option
character found.
- g\bge\bet\bto\bop\bpt\bts\bs returns true if an option, specified or unspecified, is
+ g\bge\bet\bto\bop\bpt\bts\bs returns true if an option, specified or unspecified, is
found. It returns false if the end of options is encountered or
an error occurs.
h\bha\bas\bsh\bh [-\b-l\blr\br] [-\b-p\bp _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be] [-\b-d\bdt\bt] [_\bn_\ba_\bm_\be]
- For each _\bn_\ba_\bm_\be, the full file name of the command is determined
+ For each _\bn_\ba_\bm_\be, the full file name of the command is determined
by searching the directories in $\b$P\bPA\bAT\bTH\bH and remembered. If the -\b-p\bp
option is supplied, no path search is performed, and _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be is
used as the full file name of the command. The -\b-r\br option causes
- the shell to forget all remembered locations. The -\b-d\bd option
+ the shell to forget all remembered locations. The -\b-d\bd option
causes the shell to forget the remembered location of each _\bn_\ba_\bm_\be.
- If the -\b-t\bt option is supplied, the full pathname to which each
- _\bn_\ba_\bm_\be corresponds is printed. If multiple _\bn_\ba_\bm_\be arguments are
- supplied with -\b-t\bt, the _\bn_\ba_\bm_\be is printed before the hashed full
+ If the -\b-t\bt option is supplied, the full pathname to which each
+ _\bn_\ba_\bm_\be corresponds is printed. If multiple _\bn_\ba_\bm_\be arguments are
+ supplied with -\b-t\bt, the _\bn_\ba_\bm_\be is printed before the hashed full
pathname. The -\b-l\bl option causes output to be displayed in a for-
- mat that may be reused as input. If no arguments are given, or
+ mat that may be reused as input. If no arguments are given, or
if only -\b-l\bl is supplied, information about remembered commands is
- printed. The return status is true unless a _\bn_\ba_\bm_\be is not found
+ printed. The return status is true unless a _\bn_\ba_\bm_\be is not found
or an invalid option is supplied.
h\bhe\bel\blp\bp [-\b-s\bs] [_\bp_\ba_\bt_\bt_\be_\br_\bn]
- Display helpful information about builtin commands. If _\bp_\ba_\bt_\bt_\be_\br_\bn
- is specified, h\bhe\bel\blp\bp gives detailed help on all commands matching
- _\bp_\ba_\bt_\bt_\be_\br_\bn; otherwise help for all the builtins and shell control
- structures is printed. The -\b-s\bs option restricts the information
- displayed to a short usage synopsis. The return status is 0
+ Display helpful information about builtin commands. If _\bp_\ba_\bt_\bt_\be_\br_\bn
+ is specified, h\bhe\bel\blp\bp gives detailed help on all commands matching
+ _\bp_\ba_\bt_\bt_\be_\br_\bn; otherwise help for all the builtins and shell control
+ structures is printed. The -\b-s\bs option restricts the information
+ displayed to a short usage synopsis. The return status is 0
unless no command matches _\bp_\ba_\bt_\bt_\be_\br_\bn.
h\bhi\bis\bst\bto\bor\bry\by [\b[_\bn]\b]
h\bhi\bis\bst\bto\bor\bry\by -\b-s\bs _\ba_\br_\bg [_\ba_\br_\bg _\b._\b._\b.]
With no options, display the command history list with line num-
bers. Lines listed with a *\b* have been modified. An argument of
- _\bn lists only the last _\bn lines. If the shell variable H\bHI\bIS\bST\bTT\bTI\bIM\bME\bE-\b-
- F\bFO\bOR\bRM\bMA\bAT\bT is set and not null, it is used as a format string for
- _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to display the time stamp associated with each dis-
- played history entry. No intervening blank is printed between
- the formatted time stamp and the history line. If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be is
- supplied, it is used as the name of the history file; if not,
- the value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is used. Options, if supplied, have the
+ _\bn lists only the last _\bn lines. If the shell variable H\bHI\bIS\bST\bTT\bTI\bIM\bME\bE-\b-
+ F\bFO\bOR\bRM\bMA\bAT\bT is set and not null, it is used as a format string for
+ _\bs_\bt_\br_\bf_\bt_\bi_\bm_\be(3) to display the time stamp associated with each dis-
+ played history entry. No intervening blank is printed between
+ the formatted time stamp and the history line. If _\bf_\bi_\bl_\be_\bn_\ba_\bm_\be is
+ supplied, it is used as the name of the history file; if not,
+ the value of H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE is used. Options, if supplied, have the
following meanings:
-\b-c\bc Clear the history list by deleting all the entries.
-\b-d\bd _\bo_\bf_\bf_\bs_\be_\bt
Delete the history entry at position _\bo_\bf_\bf_\bs_\be_\bt.
- -\b-a\ba Append the ``new'' history lines (history lines entered
- since the beginning of the current b\bba\bas\bsh\bh session) to the
+ -\b-a\ba Append the ``new'' history lines (history lines entered
+ since the beginning of the current b\bba\bas\bsh\bh session) to the
history file.
- -\b-n\bn Read the history lines not already read from the history
- file into the current history list. These are lines
- appended to the history file since the beginning of the
+ -\b-n\bn Read the history lines not already read from the history
+ file into the current history list. These are lines
+ appended to the history file since the beginning of the
current b\bba\bas\bsh\bh session.
-\b-r\br Read the contents of the history file and use them as the
current history.
- -\b-w\bw Write the current history to the history file, overwrit-
+ -\b-w\bw Write the current history to the history file, overwrit-
ing the history file's contents.
- -\b-p\bp Perform history substitution on the following _\ba_\br_\bg_\bs and
- display the result on the standard output. Does not
- store the results in the history list. Each _\ba_\br_\bg must be
+ -\b-p\bp Perform history substitution on the following _\ba_\br_\bg_\bs and
+ display the result on the standard output. Does not
+ store the results in the history list. Each _\ba_\br_\bg must be
quoted to disable normal history expansion.
- -\b-s\bs Store the _\ba_\br_\bg_\bs in the history list as a single entry.
- The last command in the history list is removed before
+ -\b-s\bs Store the _\ba_\br_\bg_\bs in the history list as a single entry.
+ The last command in the history list is removed before
the _\ba_\br_\bg_\bs are added.
If the H\bHI\bIS\bST\bTT\bTI\bIM\bME\bEF\bFO\bOR\bRM\bMA\bAT\bT is set, the time stamp information associ-
- ated with each history entry is written to the history file.
- The return value is 0 unless an invalid option is encountered,
- an error occurs while reading or writing the history file, an
- invalid _\bo_\bf_\bf_\bs_\be_\bt is supplied as an argument to -\b-d\bd, or the history
+ ated with each history entry is written to the history file.
+ The return value is 0 unless an invalid option is encountered,
+ an error occurs while reading or writing the history file, an
+ invalid _\bo_\bf_\bf_\bs_\be_\bt is supplied as an argument to -\b-d\bd, or the history
expansion supplied as an argument to -\b-p\bp fails.
j\bjo\bob\bbs\bs [-\b-l\bln\bnp\bpr\brs\bs] [ _\bj_\bo_\bb_\bs_\bp_\be_\bc ... ]
The first form lists the active jobs. The options have the fol-
lowing meanings:
-\b-l\bl List process IDs in addition to the normal information.
- -\b-p\bp List only the process ID of the job's process group
+ -\b-p\bp List only the process ID of the job's process group
leader.
- -\b-n\bn Display information only about jobs that have changed
- status since the user was last notified of their status.
+ -\b-n\bn Display information only about jobs that have changed
+ status since the user was last notified of their status.
-\b-r\br Restrict output to running jobs.
-\b-s\bs Restrict output to stopped jobs.
- If _\bj_\bo_\bb_\bs_\bp_\be_\bc is given, output is restricted to information about
- that job. The return status is 0 unless an invalid option is
+ If _\bj_\bo_\bb_\bs_\bp_\be_\bc is given, output is restricted to information about
+ that job. The return status is 0 unless an invalid option is
encountered or an invalid _\bj_\bo_\bb_\bs_\bp_\be_\bc is supplied.
If the -\b-x\bx option is supplied, j\bjo\bob\bbs\bs replaces any _\bj_\bo_\bb_\bs_\bp_\be_\bc found in
- _\bc_\bo_\bm_\bm_\ba_\bn_\bd or _\ba_\br_\bg_\bs with the corresponding process group ID, and
+ _\bc_\bo_\bm_\bm_\ba_\bn_\bd or _\ba_\br_\bg_\bs with the corresponding process group ID, and
executes _\bc_\bo_\bm_\bm_\ba_\bn_\bd passing it _\ba_\br_\bg_\bs, returning its exit status.
k\bki\bil\bll\bl [-\b-s\bs _\bs_\bi_\bg_\bs_\bp_\be_\bc | -\b-n\bn _\bs_\bi_\bg_\bn_\bu_\bm | -\b-_\bs_\bi_\bg_\bs_\bp_\be_\bc] [_\bp_\bi_\bd | _\bj_\bo_\bb_\bs_\bp_\be_\bc] ...
k\bki\bil\bll\bl -\b-l\bl [_\bs_\bi_\bg_\bs_\bp_\be_\bc | _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs]
- Send the signal named by _\bs_\bi_\bg_\bs_\bp_\be_\bc or _\bs_\bi_\bg_\bn_\bu_\bm to the processes
- named by _\bp_\bi_\bd or _\bj_\bo_\bb_\bs_\bp_\be_\bc. _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a case-insensitive
- signal name such as S\bSI\bIG\bGK\bKI\bIL\bLL\bL (with or without the S\bSI\bIG\bG prefix) or
- a signal number; _\bs_\bi_\bg_\bn_\bu_\bm is a signal number. If _\bs_\bi_\bg_\bs_\bp_\be_\bc is not
- present, then S\bSI\bIG\bGT\bTE\bER\bRM\bM is assumed. An argument of -\b-l\bl lists the
- signal names. If any arguments are supplied when -\b-l\bl is given,
- the names of the signals corresponding to the arguments are
+ Send the signal named by _\bs_\bi_\bg_\bs_\bp_\be_\bc or _\bs_\bi_\bg_\bn_\bu_\bm to the processes
+ named by _\bp_\bi_\bd or _\bj_\bo_\bb_\bs_\bp_\be_\bc. _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a case-insensitive
+ signal name such as S\bSI\bIG\bGK\bKI\bIL\bLL\bL (with or without the S\bSI\bIG\bG prefix) or
+ a signal number; _\bs_\bi_\bg_\bn_\bu_\bm is a signal number. If _\bs_\bi_\bg_\bs_\bp_\be_\bc is not
+ present, then S\bSI\bIG\bGT\bTE\bER\bRM\bM is assumed. An argument of -\b-l\bl lists the
+ signal names. If any arguments are supplied when -\b-l\bl is given,
+ the names of the signals corresponding to the arguments are
listed, and the return status is 0. The _\be_\bx_\bi_\bt_\b__\bs_\bt_\ba_\bt_\bu_\bs argument to
- -\b-l\bl is a number specifying either a signal number or the exit
- status of a process terminated by a signal. k\bki\bil\bll\bl returns true
- if at least one signal was successfully sent, or false if an
+ -\b-l\bl is a number specifying either a signal number or the exit
+ status of a process terminated by a signal. k\bki\bil\bll\bl returns true
+ if at least one signal was successfully sent, or false if an
error occurs or an invalid option is encountered.
l\ble\bet\bt _\ba_\br_\bg [_\ba_\br_\bg ...]
Each _\ba_\br_\bg is an arithmetic expression to be evaluated (see A\bAR\bRI\bIT\bTH\bH-\b-
- M\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN). If the last _\ba_\br_\bg evaluates to 0, l\ble\bet\bt returns
+ M\bME\bET\bTI\bIC\bC E\bEV\bVA\bAL\bLU\bUA\bAT\bTI\bIO\bON\bN). If the last _\ba_\br_\bg evaluates to 0, l\ble\bet\bt returns
1; 0 is returned otherwise.
l\blo\boc\bca\bal\bl [_\bo_\bp_\bt_\bi_\bo_\bn] [_\bn_\ba_\bm_\be[=_\bv_\ba_\bl_\bu_\be] ...]
- For each argument, a local variable named _\bn_\ba_\bm_\be is created, and
- assigned _\bv_\ba_\bl_\bu_\be. The _\bo_\bp_\bt_\bi_\bo_\bn can be any of the options accepted
+ For each argument, a local variable named _\bn_\ba_\bm_\be is created, and
+ assigned _\bv_\ba_\bl_\bu_\be. The _\bo_\bp_\bt_\bi_\bo_\bn can be any of the options accepted
by d\bde\bec\bcl\bla\bar\bre\be. When l\blo\boc\bca\bal\bl is used within a function, it causes the
- variable _\bn_\ba_\bm_\be to have a visible scope restricted to that func-
+ variable _\bn_\ba_\bm_\be to have a visible scope restricted to that func-
tion and its children. With no operands, l\blo\boc\bca\bal\bl writes a list of
- local variables to the standard output. It is an error to use
+ local variables to the standard output. It is an error to use
l\blo\boc\bca\bal\bl when not within a function. The return status is 0 unless
- l\blo\boc\bca\bal\bl is used outside a function, an invalid _\bn_\ba_\bm_\be is supplied,
+ l\blo\boc\bca\bal\bl is used outside a function, an invalid _\bn_\ba_\bm_\be is supplied,
or _\bn_\ba_\bm_\be is a readonly variable.
l\blo\bog\bgo\bou\but\bt Exit a login shell.
p\bpo\bop\bpd\bd [-n\bn] [+_\bn] [-_\bn]
- Removes entries from the directory stack. With no arguments,
- removes the top directory from the stack, and performs a c\bcd\bd to
+ Removes entries from the directory stack. With no arguments,
+ removes the top directory from the stack, and performs a c\bcd\bd to
the new top directory. Arguments, if supplied, have the follow-
ing meanings:
- +\b+_\bn Removes the _\bnth entry counting from the left of the list
- shown by d\bdi\bir\brs\bs, starting with zero. For example: ``popd
+ +\b+_\bn Removes the _\bnth entry counting from the left of the list
+ shown by d\bdi\bir\brs\bs, starting with zero. For example: ``popd
+0'' removes the first directory, ``popd +1'' the second.
-\b-_\bn Removes the _\bnth entry counting from the right of the list
- shown by d\bdi\bir\brs\bs, starting with zero. For example: ``popd
- -0'' removes the last directory, ``popd -1'' the next to
+ shown by d\bdi\bir\brs\bs, starting with zero. For example: ``popd
+ -0'' removes the last directory, ``popd -1'' the next to
last.
- -\b-n\bn Suppresses the normal change of directory when removing
- directories from the stack, so that only the stack is
+ -\b-n\bn Suppresses the normal change of directory when removing
+ directories from the stack, so that only the stack is
manipulated.
- If the p\bpo\bop\bpd\bd command is successful, a d\bdi\bir\brs\bs is performed as well,
- and the return status is 0. p\bpo\bop\bpd\bd returns false if an invalid
+ If the p\bpo\bop\bpd\bd command is successful, a d\bdi\bir\brs\bs is performed as well,
+ and the return status is 0. p\bpo\bop\bpd\bd returns false if an invalid
option is encountered, the directory stack is empty, a non-exis-
tent directory stack entry is specified, or the directory change
fails.
p\bpr\bri\bin\bnt\btf\bf _\bf_\bo_\br_\bm_\ba_\bt [_\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs]
- Write the formatted _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs to the standard output under the
- control of the _\bf_\bo_\br_\bm_\ba_\bt. The _\bf_\bo_\br_\bm_\ba_\bt is a character string which
- contains three types of objects: plain characters, which are
- simply copied to standard output, character escape sequences,
- which are converted and copied to the standard output, and for-
- mat specifications, each of which causes printing of the next
- successive _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt. In addition to the standard _\bp_\br_\bi_\bn_\bt_\bf(1) for-
- mats, %\b%b\bb causes p\bpr\bri\bin\bnt\btf\bf to expand backslash escape sequences in
- the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt (except that \\b\c\bc terminates output,
+ Write the formatted _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs to the standard output under the
+ control of the _\bf_\bo_\br_\bm_\ba_\bt. The _\bf_\bo_\br_\bm_\ba_\bt is a character string which
+ contains three types of objects: plain characters, which are
+ simply copied to standard output, character escape sequences,
+ which are converted and copied to the standard output, and for-
+ mat specifications, each of which causes printing of the next
+ successive _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt. In addition to the standard _\bp_\br_\bi_\bn_\bt_\bf(1)
+ formats, %\b%b\bb causes p\bpr\bri\bin\bnt\btf\bf to expand backslash escape sequences
+ in the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt (except that \\b\c\bc terminates output,
backslashes in \\b\'\b', \\b\"\b", and \\b\?\b? are not removed, and octal escapes
- beginning with \\b\0\b0 may contain up to four digits), and %\b%q\bq causes
+ beginning with \\b\0\b0 may contain up to four digits), and %\b%q\bq causes
p\bpr\bri\bin\bnt\btf\bf to output the corresponding _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt in a format that can
be reused as shell input.
- The _\bf_\bo_\br_\bm_\ba_\bt is reused as necessary to consume all of the _\ba_\br_\bg_\bu_\b-
+ The _\bf_\bo_\br_\bm_\ba_\bt is reused as necessary to consume all of the _\ba_\br_\bg_\bu_\b-
_\bm_\be_\bn_\bt_\bs. If the _\bf_\bo_\br_\bm_\ba_\bt requires more _\ba_\br_\bg_\bu_\bm_\be_\bn_\bt_\bs than are supplied,
- the extra format specifications behave as if a zero value or
- null string, as appropriate, had been supplied. The return
+ the extra format specifications behave as if a zero value or
+ null string, as appropriate, had been supplied. The return
value is zero on success, non-zero on failure.
p\bpu\bus\bsh\bhd\bd [-\b-n\bn] [_\bd_\bi_\br]
p\bpu\bus\bsh\bhd\bd [-\b-n\bn] [+_\bn] [-_\bn]
- Adds a directory to the top of the directory stack, or rotates
- the stack, making the new top of the stack the current working
+ Adds a directory to the top of the directory stack, or rotates
+ the stack, making the new top of the stack the current working
directory. With no arguments, exchanges the top two directories
- and returns 0, unless the directory stack is empty. Arguments,
+ and returns 0, unless the directory stack is empty. Arguments,
if supplied, have the following meanings:
- +\b+_\bn Rotates the stack so that the _\bnth directory (counting
- from the left of the list shown by d\bdi\bir\brs\bs, starting with
+ +\b+_\bn Rotates the stack so that the _\bnth directory (counting
+ from the left of the list shown by d\bdi\bir\brs\bs, starting with
zero) is at the top.
- -\b-_\bn Rotates the stack so that the _\bnth directory (counting
- from the right of the list shown by d\bdi\bir\brs\bs, starting with
+ -\b-_\bn Rotates the stack so that the _\bnth directory (counting
+ from the right of the list shown by d\bdi\bir\brs\bs, starting with
zero) is at the top.
- -\b-n\bn Suppresses the normal change of directory when adding
- directories to the stack, so that only the stack is
+ -\b-n\bn Suppresses the normal change of directory when adding
+ directories to the stack, so that only the stack is
manipulated.
_\bd_\bi_\br Adds _\bd_\bi_\br to the directory stack at the top, making it the
new current working directory.
If the p\bpu\bus\bsh\bhd\bd command is successful, a d\bdi\bir\brs\bs is performed as well.
- If the first form is used, p\bpu\bus\bsh\bhd\bd returns 0 unless the cd to _\bd_\bi_\br
- fails. With the second form, p\bpu\bus\bsh\bhd\bd returns 0 unless the direc-
- tory stack is empty, a non-existent directory stack element is
- specified, or the directory change to the specified new current
+ If the first form is used, p\bpu\bus\bsh\bhd\bd returns 0 unless the cd to _\bd_\bi_\br
+ fails. With the second form, p\bpu\bus\bsh\bhd\bd returns 0 unless the direc-
+ tory stack is empty, a non-existent directory stack element is
+ specified, or the directory change to the specified new current
directory fails.
p\bpw\bwd\bd [-\b-L\bLP\bP]
- Print the absolute pathname of the current working directory.
+ Print the absolute pathname of the current working directory.
The pathname printed contains no symbolic links if the -\b-P\bP option
is supplied or the -\b-o\bo p\bph\bhy\bys\bsi\bic\bca\bal\bl option to the s\bse\bet\bt builtin command
- is enabled. If the -\b-L\bL option is used, the pathname printed may
- contain symbolic links. The return status is 0 unless an error
- occurs while reading the name of the current directory or an
+ is enabled. If the -\b-L\bL option is used, the pathname printed may
+ contain symbolic links. The return status is 0 unless an error
+ occurs while reading the name of the current directory or an
invalid option is supplied.
r\bre\bea\bad\bd [-\b-e\ber\brs\bs] [-\b-u\bu _\bf_\bd] [-\b-t\bt _\bt_\bi_\bm_\be_\bo_\bu_\bt] [-\b-a\ba _\ba_\bn_\ba_\bm_\be] [-\b-p\bp _\bp_\br_\bo_\bm_\bp_\bt] [-\b-n\bn _\bn_\bc_\bh_\ba_\br_\bs] [-\b-d\bd
_\bd_\be_\bl_\bi_\bm] [_\bn_\ba_\bm_\be ...]
- One line is read from the standard input, or from the file
- descriptor _\bf_\bd supplied as an argument to the -\b-u\bu option, and the
+ One line is read from the standard input, or from the file
+ descriptor _\bf_\bd supplied as an argument to the -\b-u\bu option, and the
first word is assigned to the first _\bn_\ba_\bm_\be, the second word to the
- second _\bn_\ba_\bm_\be, and so on, with leftover words and their interven-
- ing separators assigned to the last _\bn_\ba_\bm_\be. If there are fewer
+ second _\bn_\ba_\bm_\be, and so on, with leftover words and their interven-
+ ing separators assigned to the last _\bn_\ba_\bm_\be. If there are fewer
words read from the input stream than names, the remaining names
- are assigned empty values. The characters in I\bIF\bFS\bS are used to
- split the line into words. The backslash character (\\b\) may be
- used to remove any special meaning for the next character read
- and for line continuation. Options, if supplied, have the fol-
+ are assigned empty values. The characters in I\bIF\bFS\bS are used to
+ split the line into words. The backslash character (\\b\) may be
+ used to remove any special meaning for the next character read
+ and for line continuation. Options, if supplied, have the fol-
lowing meanings:
-\b-a\ba _\ba_\bn_\ba_\bm_\be
The words are assigned to sequential indices of the array
new values are assigned. Other _\bn_\ba_\bm_\be arguments are
ignored.
-\b-d\bd _\bd_\be_\bl_\bi_\bm
- The first character of _\bd_\be_\bl_\bi_\bm is used to terminate the
+ The first character of _\bd_\be_\bl_\bi_\bm is used to terminate the
input line, rather than newline.
-\b-e\be If the standard input is coming from a terminal, r\bre\bea\bad\bdl\bli\bin\bne\be
(see R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE above) is used to obtain the line.
-\b-n\bn _\bn_\bc_\bh_\ba_\br_\bs
- r\bre\bea\bad\bd returns after reading _\bn_\bc_\bh_\ba_\br_\bs characters rather than
+ r\bre\bea\bad\bd returns after reading _\bn_\bc_\bh_\ba_\br_\bs characters rather than
waiting for a complete line of input.
-\b-p\bp _\bp_\br_\bo_\bm_\bp_\bt
Display _\bp_\br_\bo_\bm_\bp_\bt on standard error, without a trailing new-
line, before attempting to read any input. The prompt is
displayed only if input is coming from a terminal.
-\b-r\br Backslash does not act as an escape character. The back-
- slash is considered to be part of the line. In particu-
- lar, a backslash-newline pair may not be used as a line
- continuation.
+ slash is considered to be part of the line. In
+ particular, a backslash-newline pair may not be used as a
+ line continuation.
-\b-s\bs Silent mode. If input is coming from a terminal, charac-
ters are not echoed.
-\b-t\bt _\bt_\bi_\bm_\be_\bo_\bu_\bt
- Cause r\bre\bea\bad\bd to time out and return failure if a complete
- line of input is not read within _\bt_\bi_\bm_\be_\bo_\bu_\bt seconds. This
- option has no effect if r\bre\bea\bad\bd is not reading input from
+ Cause r\bre\bea\bad\bd to time out and return failure if a complete
+ line of input is not read within _\bt_\bi_\bm_\be_\bo_\bu_\bt seconds. This
+ option has no effect if r\bre\bea\bad\bd is not reading input from
the terminal or a pipe.
-\b-u\bu _\bf_\bd Read input from file descriptor _\bf_\bd.
If no _\bn_\ba_\bm_\be_\bs are supplied, the line read is assigned to the vari-
- able R\bRE\bEP\bPL\bLY\bY. The return code is zero, unless end-of-file is
- encountered, r\bre\bea\bad\bd times out, or an invalid file descriptor is
+ able R\bRE\bEP\bPL\bLY\bY. The return code is zero, unless end-of-file is
+ encountered, r\bre\bea\bad\bd times out, or an invalid file descriptor is
supplied as the argument to -\b-u\bu.
r\bre\bea\bad\bdo\bon\bnl\bly\by [-\b-a\bap\bpf\bf] [_\bn_\ba_\bm_\be[=_\bw_\bo_\br_\bd] ...]
- The given _\bn_\ba_\bm_\be_\bs are marked readonly; the values of these _\bn_\ba_\bm_\be_\bs
- may not be changed by subsequent assignment. If the -\b-f\bf option
- is supplied, the functions corresponding to the _\bn_\ba_\bm_\be_\bs are so
+ The given _\bn_\ba_\bm_\be_\bs are marked readonly; the values of these _\bn_\ba_\bm_\be_\bs
+ may not be changed by subsequent assignment. If the -\b-f\bf option
+ is supplied, the functions corresponding to the _\bn_\ba_\bm_\be_\bs are so
marked. The -\b-a\ba option restricts the variables to arrays. If no
- _\bn_\ba_\bm_\be arguments are given, or if the -\b-p\bp option is supplied, a
- list of all readonly names is printed. The -\b-p\bp option causes
- output to be displayed in a format that may be reused as input.
- If a variable name is followed by =_\bw_\bo_\br_\bd, the value of the vari-
- able is set to _\bw_\bo_\br_\bd. The return status is 0 unless an invalid
- option is encountered, one of the _\bn_\ba_\bm_\be_\bs is not a valid shell
+ _\bn_\ba_\bm_\be arguments are given, or if the -\b-p\bp option is supplied, a
+ list of all readonly names is printed. The -\b-p\bp option causes
+ output to be displayed in a format that may be reused as input.
+ If a variable name is followed by =_\bw_\bo_\br_\bd, the value of the vari-
+ able is set to _\bw_\bo_\br_\bd. The return status is 0 unless an invalid
+ option is encountered, one of the _\bn_\ba_\bm_\be_\bs is not a valid shell
variable name, or -\b-f\bf is supplied with a _\bn_\ba_\bm_\be that is not a func-
tion.
r\bre\bet\btu\bur\brn\bn [_\bn]
- Causes a function to exit with the return value specified by _\bn.
- If _\bn is omitted, the return status is that of the last command
- executed in the function body. If used outside a function, but
- during execution of a script by the .\b. (s\bso\bou\bur\brc\bce\be) command, it
+ Causes a function to exit with the return value specified by _\bn.
+ If _\bn is omitted, the return status is that of the last command
+ executed in the function body. If used outside a function, but
+ during execution of a script by the .\b. (s\bso\bou\bur\brc\bce\be) command, it
causes the shell to stop executing that script and return either
- _\bn or the exit status of the last command executed within the
- script as the exit status of the script. If used outside a
- function and not during execution of a script by .\b., the return
+ _\bn or the exit status of the last command executed within the
+ script as the exit status of the script. If used outside a
+ function and not during execution of a script by .\b., the return
status is false. Any command associated with the R\bRE\bET\bTU\bUR\bRN\bN trap is
- executed before execution resumes after the function or script.
+ executed before execution resumes after the function or script.
s\bse\bet\bt [-\b--\b-a\bab\bbe\bef\bfh\bhk\bkm\bmn\bnp\bpt\btu\buv\bvx\bxB\bBC\bCH\bHP\bP] [-\b-o\bo _\bo_\bp_\bt_\bi_\bo_\bn] [_\ba_\br_\bg ...]
- Without options, the name and value of each shell variable are
+ Without options, the name and value of each shell variable are
displayed in a format that can be reused as input for setting or
resetting the currently-set variables. Read-only variables can-
- not be reset. In _\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be, only shell variables are listed.
- The output is sorted according to the current locale. When
- options are specified, they set or unset shell attributes. Any
- arguments remaining after the options are processed are treated
- as values for the positional parameters and are assigned, in
+ not be reset. In _\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be, only shell variables are listed.
+ The output is sorted according to the current locale. When
+ options are specified, they set or unset shell attributes. Any
+ arguments remaining after the options are processed are treated
+ as values for the positional parameters and are assigned, in
order, to $\b$1\b1, $\b$2\b2, .\b..\b..\b. $\b$_\bn. Options, if specified, have the fol-
lowing meanings:
- -\b-a\ba Automatically mark variables and functions which are
- modified or created for export to the environment of
+ -\b-a\ba Automatically mark variables and functions which are
+ modified or created for export to the environment of
subsequent commands.
- -\b-b\bb Report the status of terminated background jobs immedi-
+ -\b-b\bb Report the status of terminated background jobs immedi-
ately, rather than before the next primary prompt. This
is effective only when job control is enabled.
- -\b-e\be Exit immediately if a _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR
+ -\b-e\be Exit immediately if a _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR
above) exits with a non-zero status. The shell does not
- exit if the command that fails is part of the command
- list immediately following a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword,
- part of the test in an _\bi_\bf statement, part of a &\b&&\b& or |\b||\b|
+ exit if the command that fails is part of the command
+ list immediately following a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword,
+ part of the test in an _\bi_\bf statement, part of a &\b&&\b& or |\b||\b|
list, or if the command's return value is being inverted
- via !\b!. A trap on E\bER\bRR\bR, if set, is executed before the
+ via !\b!. A trap on E\bER\bRR\bR, if set, is executed before the
shell exits.
-\b-f\bf Disable pathname expansion.
- -\b-h\bh Remember the location of commands as they are looked up
+ -\b-h\bh Remember the location of commands as they are looked up
for execution. This is enabled by default.
- -\b-k\bk All arguments in the form of assignment statements are
- placed in the environment for a command, not just those
+ -\b-k\bk All arguments in the form of assignment statements are
+ placed in the environment for a command, not just those
that precede the command name.
- -\b-m\bm Monitor mode. Job control is enabled. This option is
- on by default for interactive shells on systems that
- support it (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL above). Background pro-
- cesses run in a separate process group and a line con-
- taining their exit status is printed upon their comple-
+ -\b-m\bm Monitor mode. Job control is enabled. This option is
+ on by default for interactive shells on systems that
+ support it (see J\bJO\bOB\bB C\bCO\bON\bNT\bTR\bRO\bOL\bL above). Background pro-
+ cesses run in a separate process group and a line con-
+ taining their exit status is printed upon their comple-
tion.
-\b-n\bn Read commands but do not execute them. This may be used
- to check a shell script for syntax errors. This is
+ to check a shell script for syntax errors. This is
ignored by interactive shells.
-\b-o\bo _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be
The _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be can be one of the following:
Same as -\b-a\ba.
b\bbr\bra\bac\bce\bee\bex\bxp\bpa\ban\bnd\bd
Same as -\b-B\bB.
- e\bem\bma\bac\bcs\bs Use an emacs-style command line editing inter-
+ e\bem\bma\bac\bcs\bs Use an emacs-style command line editing inter-
face. This is enabled by default when the shell
is interactive, unless the shell is started with
the -\b--\b-n\bno\boe\bed\bdi\bit\bti\bin\bng\bg option.
H\bHI\bIS\bST\bTO\bOR\bRY\bY. This option is on by default in inter-
active shells.
i\big\bgn\bno\bor\bre\bee\beo\bof\bf
- The effect is as if the shell command
- ``IGNOREEOF=10'' had been executed (see S\bSh\bhe\bel\bll\bl
+ The effect is as if the shell command
+ ``IGNOREEOF=10'' had been executed (see S\bSh\bhe\bel\bll\bl
V\bVa\bar\bri\bia\bab\bbl\ble\bes\bs above).
k\bke\bey\byw\bwo\bor\brd\bd Same as -\b-k\bk.
m\bmo\bon\bni\bit\bto\bor\br Same as -\b-m\bm.
p\bph\bhy\bys\bsi\bic\bca\bal\bl
Same as -\b-P\bP.
p\bpi\bip\bpe\bef\bfa\bai\bil\bl
- If set, the return value of a pipeline is the
- value of the last (rightmost) command to exit
- with a non-zero status, or zero if all commands
- in the pipeline exit successfully. This option
+ If set, the return value of a pipeline is the
+ value of the last (rightmost) command to exit
+ with a non-zero status, or zero if all commands
+ in the pipeline exit successfully. This option
is disabled by default.
- p\bpo\bos\bsi\bix\bx Change the behavior of b\bba\bas\bsh\bh where the default
+ p\bpo\bos\bsi\bix\bx Change the behavior of b\bba\bas\bsh\bh where the default
operation differs from the POSIX 1003.2 standard
to match the standard (_\bp_\bo_\bs_\bi_\bx _\bm_\bo_\bd_\be).
p\bpr\bri\biv\bvi\bil\ble\beg\bge\bed\bd
v\bvi\bi Use a vi-style command line editing interface.
x\bxt\btr\bra\bac\bce\be Same as -\b-x\bx.
If -\b-o\bo is supplied with no _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, the values of the
- current options are printed. If +\b+o\bo is supplied with no
- _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, a series of s\bse\bet\bt commands to recreate the
- current option settings is displayed on the standard
+ current options are printed. If +\b+o\bo is supplied with no
+ _\bo_\bp_\bt_\bi_\bo_\bn_\b-_\bn_\ba_\bm_\be, a series of s\bse\bet\bt commands to recreate the
+ current option settings is displayed on the standard
output.
- -\b-p\bp Turn on _\bp_\br_\bi_\bv_\bi_\bl_\be_\bg_\be_\bd mode. In this mode, the $\b$E\bEN\bNV\bV and
- $\b$B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV files are not processed, shell functions are
- not inherited from the environment, and the S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS
- variable, if it appears in the environment, is ignored.
- If the shell is started with the effective user (group)
- id not equal to the real user (group) id, and the -\b-p\bp
- option is not supplied, these actions are taken and the
+ -\b-p\bp Turn on _\bp_\br_\bi_\bv_\bi_\bl_\be_\bg_\be_\bd mode. In this mode, the $\b$E\bEN\bNV\bV and
+ $\b$B\bBA\bAS\bSH\bH_\b_E\bEN\bNV\bV files are not processed, shell functions are
+ not inherited from the environment, and the S\bSH\bHE\bEL\bLL\bLO\bOP\bPT\bTS\bS
+ variable, if it appears in the environment, is ignored.
+ If the shell is started with the effective user (group)
+ id not equal to the real user (group) id, and the -\b-p\bp
+ option is not supplied, these actions are taken and the
effective user id is set to the real user id. If the -\b-p\bp
- option is supplied at startup, the effective user id is
+ option is supplied at startup, the effective user id is
not reset. Turning this option off causes the effective
- user and group ids to be set to the real user and group
+ user and group ids to be set to the real user and group
ids.
-\b-t\bt Exit after reading and executing one command.
-\b-u\bu Treat unset variables as an error when performing param-
- eter expansion. If expansion is attempted on an unset
+ eter expansion. If expansion is attempted on an unset
variable, the shell prints an error message, and, if not
interactive, exits with a non-zero status.
-\b-v\bv Print shell input lines as they are read.
- -\b-x\bx After expanding each _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, f\bfo\bor\br command, c\bca\bas\bse\be
+ -\b-x\bx After expanding each _\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, f\bfo\bor\br command, c\bca\bas\bse\be
command, s\bse\bel\ble\bec\bct\bt command, or arithmetic f\bfo\bor\br command, dis-
- play the expanded value of P\bPS\bS4\b4, followed by the command
+ play the expanded value of P\bPS\bS4\b4, followed by the command
and its expanded arguments or associated word list.
- -\b-B\bB The shell performs brace expansion (see B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
+ -\b-B\bB The shell performs brace expansion (see B\bBr\bra\bac\bce\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn
above). This is on by default.
- -\b-C\bC If set, b\bba\bas\bsh\bh does not overwrite an existing file with
- the >\b>, >\b>&\b&, and <\b<>\b> redirection operators. This may be
+ -\b-C\bC If set, b\bba\bas\bsh\bh does not overwrite an existing file with
+ the >\b>, >\b>&\b&, and <\b<>\b> redirection operators. This may be
overridden when creating output files by using the redi-
rection operator >\b>|\b| instead of >\b>.
-\b-E\bE If set, any trap on E\bER\bRR\bR is inherited by shell functions,
- command substitutions, and commands executed in a sub-
- shell environment. The E\bER\bRR\bR trap is normally not inher-
+ command substitutions, and commands executed in a sub-
+ shell environment. The E\bER\bRR\bR trap is normally not inher-
ited in such cases.
-\b-H\bH Enable !\b! style history substitution. This option is on
by default when the shell is interactive.
- -\b-P\bP If set, the shell does not follow symbolic links when
- executing commands such as c\bcd\bd that change the current
+ -\b-P\bP If set, the shell does not follow symbolic links when
+ executing commands such as c\bcd\bd that change the current
working directory. It uses the physical directory
structure instead. By default, b\bba\bas\bsh\bh follows the logical
- chain of directories when performing commands which
+ chain of directories when performing commands which
change the current directory.
- -\b-T\bT If set, any trap on D\bDE\bEB\bBU\bUG\bG is inherited by shell func-
- tions, command substitutions, and commands executed in a
- subshell environment. The D\bDE\bEB\bBU\bUG\bG trap is normally not
- inherited in such cases.
- -\b--\b- If no arguments follow this option, then the positional
+ -\b-T\bT If set, any traps on D\bDE\bEB\bBU\bUG\bG and R\bRE\bET\bTU\bUR\bRN\bN are inherited by
+ shell functions, command substitutions, and commands
+ executed in a subshell environment. The D\bDE\bEB\bBU\bUG\bG and
+ R\bRE\bET\bTU\bUR\bRN\bN traps are normally not inherited in such cases.
+ -\b--\b- If no arguments follow this option, then the positional
parameters are unset. Otherwise, the positional parame-
- ters are set to the _\ba_\br_\bgs, even if some of them begin
+ ters are set to the _\ba_\br_\bgs, even if some of them begin
with a -\b-.
- -\b- Signal the end of options, cause all remaining _\ba_\br_\bgs to
+ -\b- Signal the end of options, cause all remaining _\ba_\br_\bgs to
be assigned to the positional parameters. The -\b-x\bx and -\b-v\bv
options are turned off. If there are no _\ba_\br_\bgs, the posi-
tional parameters remain unchanged.
- The options are off by default unless otherwise noted. Using +
- rather than - causes these options to be turned off. The
- options can also be specified as arguments to an invocation of
- the shell. The current set of options may be found in $\b$-\b-. The
+ The options are off by default unless otherwise noted. Using +
+ rather than - causes these options to be turned off. The
+ options can also be specified as arguments to an invocation of
+ the shell. The current set of options may be found in $\b$-\b-. The
return status is always true unless an invalid option is encoun-
tered.
s\bsh\bhi\bif\bft\bt [_\bn]
- The positional parameters from _\bn+1 ... are renamed to $\b$1\b1 .\b..\b..\b..\b.
- Parameters represented by the numbers $\b$#\b# down to $\b$#\b#-_\bn+1 are
- unset. _\bn must be a non-negative number less than or equal to
- $\b$#\b#. If _\bn is 0, no parameters are changed. If _\bn is not given,
- it is assumed to be 1. If _\bn is greater than $\b$#\b#, the positional
- parameters are not changed. The return status is greater than
+ The positional parameters from _\bn+1 ... are renamed to $\b$1\b1 .\b..\b..\b..\b.
+ Parameters represented by the numbers $\b$#\b# down to $\b$#\b#-_\bn+1 are
+ unset. _\bn must be a non-negative number less than or equal to
+ $\b$#\b#. If _\bn is 0, no parameters are changed. If _\bn is not given,
+ it is assumed to be 1. If _\bn is greater than $\b$#\b#, the positional
+ parameters are not changed. The return status is greater than
zero if _\bn is greater than $\b$#\b# or less than zero; otherwise 0.
s\bsh\bho\bop\bpt\bt [-\b-p\bpq\bqs\bsu\bu] [-\b-o\bo] [_\bo_\bp_\bt_\bn_\ba_\bm_\be ...]
Toggle the values of variables controlling optional shell behav-
ior. With no options, or with the -\b-p\bp option, a list of all set-
table options is displayed, with an indication of whether or not
- each is set. The -\b-p\bp option causes output to be displayed in a
- form that may be reused as input. Other options have the fol-
+ each is set. The -\b-p\bp option causes output to be displayed in a
+ form that may be reused as input. Other options have the fol-
lowing meanings:
-\b-s\bs Enable (set) each _\bo_\bp_\bt_\bn_\ba_\bm_\be.
-\b-u\bu Disable (unset) each _\bo_\bp_\bt_\bn_\ba_\bm_\be.
- -\b-q\bq Suppresses normal output (quiet mode); the return status
+ -\b-q\bq Suppresses normal output (quiet mode); the return status
indicates whether the _\bo_\bp_\bt_\bn_\ba_\bm_\be is set or unset. If multi-
- ple _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments are given with -\b-q\bq, the return sta-
- tus is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are enabled; non-zero other-
+ ple _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments are given with -\b-q\bq, the return sta-
+ tus is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs are enabled; non-zero other-
wise.
- -\b-o\bo Restricts the values of _\bo_\bp_\bt_\bn_\ba_\bm_\be to be those defined for
+ -\b-o\bo Restricts the values of _\bo_\bp_\bt_\bn_\ba_\bm_\be to be those defined for
the -\b-o\bo option to the s\bse\bet\bt builtin.
- If either -\b-s\bs or -\b-u\bu is used with no _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments, the dis-
+ If either -\b-s\bs or -\b-u\bu is used with no _\bo_\bp_\bt_\bn_\ba_\bm_\be arguments, the dis-
play is limited to those options which are set or unset, respec-
- tively. Unless otherwise noted, the s\bsh\bho\bop\bpt\bt options are disabled
+ tively. Unless otherwise noted, the s\bsh\bho\bop\bpt\bt options are disabled
(unset) by default.
- The return status when listing options is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs
- are enabled, non-zero otherwise. When setting or unsetting
- options, the return status is zero unless an _\bo_\bp_\bt_\bn_\ba_\bm_\be is not a
+ The return status when listing options is zero if all _\bo_\bp_\bt_\bn_\ba_\bm_\be_\bs
+ are enabled, non-zero otherwise. When setting or unsetting
+ options, the return status is zero unless an _\bo_\bp_\bt_\bn_\ba_\bm_\be is not a
valid shell option.
The list of s\bsh\bho\bop\bpt\bt options is:
c\bcd\bda\bab\bbl\ble\be_\b_v\bva\bar\brs\bs
- If set, an argument to the c\bcd\bd builtin command that is
- not a directory is assumed to be the name of a variable
+ If set, an argument to the c\bcd\bd builtin command that is
+ not a directory is assumed to be the name of a variable
whose value is the directory to change to.
c\bcd\bds\bsp\bpe\bel\bll\bl If set, minor errors in the spelling of a directory com-
- ponent in a c\bcd\bd command will be corrected. The errors
+ ponent in a c\bcd\bd command will be corrected. The errors
checked for are transposed characters, a missing charac-
- ter, and one character too many. If a correction is
- found, the corrected file name is printed, and the com-
- mand proceeds. This option is only used by interactive
+ ter, and one character too many. If a correction is
+ found, the corrected file name is printed, and the com-
+ mand proceeds. This option is only used by interactive
shells.
c\bch\bhe\bec\bck\bkh\bha\bas\bsh\bh
If set, b\bba\bas\bsh\bh checks that a command found in the hash ta-
- ble exists before trying to execute it. If a hashed
- command no longer exists, a normal path search is per-
+ ble exists before trying to execute it. If a hashed
+ command no longer exists, a normal path search is per-
formed.
c\bch\bhe\bec\bck\bkw\bwi\bin\bns\bsi\biz\bze\be
- If set, b\bba\bas\bsh\bh checks the window size after each command
- and, if necessary, updates the values of L\bLI\bIN\bNE\bES\bS and
+ If set, b\bba\bas\bsh\bh checks the window size after each command
+ and, if necessary, updates the values of L\bLI\bIN\bNE\bES\bS and
C\bCO\bOL\bLU\bUM\bMN\bNS\bS.
- c\bcm\bmd\bdh\bhi\bis\bst\bt If set, b\bba\bas\bsh\bh attempts to save all lines of a multiple-
- line command in the same history entry. This allows
+ c\bcm\bmd\bdh\bhi\bis\bst\bt If set, b\bba\bas\bsh\bh attempts to save all lines of a multiple-
+ line command in the same history entry. This allows
easy re-editing of multi-line commands.
- d\bdo\bot\btg\bgl\blo\bob\bb If set, b\bba\bas\bsh\bh includes filenames beginning with a `.' in
+ d\bdo\bot\btg\bgl\blo\bob\bb If set, b\bba\bas\bsh\bh includes filenames beginning with a `.' in
the results of pathname expansion.
e\bex\bxe\bec\bcf\bfa\bai\bil\bl
If set, a non-interactive shell will not exit if it can-
- not execute the file specified as an argument to the
- e\bex\bxe\bec\bc builtin command. An interactive shell does not
+ not execute the file specified as an argument to the
+ e\bex\bxe\bec\bc builtin command. An interactive shell does not
exit if e\bex\bxe\bec\bc fails.
e\bex\bxp\bpa\ban\bnd\bd_\b_a\bal\bli\bia\bas\bse\bes\bs
- If set, aliases are expanded as described above under
+ If set, aliases are expanded as described above under
A\bAL\bLI\bIA\bAS\bSE\bES\bS. This option is enabled by default for interac-
tive shells.
e\bex\bxt\btd\bde\beb\bbu\bug\bg
- If set, behavior intended for use by debuggers is
+ If set, behavior intended for use by debuggers is
enabled:
1\b1.\b. The -\b-F\bF option to the d\bde\bec\bcl\bla\bar\bre\be builtin displays the
source file name and line number corresponding to
each function name supplied as an argument.
- 2\b2.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
- non-zero value, the next command is skipped and
+ 2\b2.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
+ non-zero value, the next command is skipped and
not executed.
- 3\b3.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
- value of 2, and the shell is executing in a sub-
- routine (a shell function or a shell script exe-
- cuted by the .\b. or s\bso\bou\bur\brc\bce\be builtins), a call to
+ 3\b3.\b. If the command run by the D\bDE\bEB\bBU\bUG\bG trap returns a
+ value of 2, and the shell is executing in a sub-
+ routine (a shell function or a shell script exe-
+ cuted by the .\b. or s\bso\bou\bur\brc\bce\be builtins), a call to
r\bre\bet\btu\bur\brn\bn is simulated.
e\bex\bxt\btg\bgl\blo\bob\bb If set, the extended pattern matching features described
above under P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn are enabled.
e\bex\bxt\btq\bqu\buo\bot\bte\be
- If set, $\b$'_\bs_\bt_\br_\bi_\bn_\bg' and $\b$"_\bs_\bt_\br_\bi_\bn_\bg" quoting is performed
- within $\b${\b{_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}\b} expansions enclosed in double
+ If set, $\b$'_\bs_\bt_\br_\bi_\bn_\bg' and $\b$"_\bs_\bt_\br_\bi_\bn_\bg" quoting is performed
+ within $\b${\b{_\bp_\ba_\br_\ba_\bm_\be_\bt_\be_\br}\b} expansions enclosed in double
quotes. This option is enabled by default.
f\bfa\bai\bil\blg\bgl\blo\bob\bb
- If set, patterns which fail to match filenames during
+ If set, patterns which fail to match filenames during
pathname expansion result in an expansion error.
f\bfo\bor\brc\bce\be_\b_f\bfi\big\bgn\bno\bor\bre\be
- If set, the suffixes specified by the F\bFI\bIG\bGN\bNO\bOR\bRE\bE shell
- variable cause words to be ignored when performing word
+ If set, the suffixes specified by the F\bFI\bIG\bGN\bNO\bOR\bRE\bE shell
+ variable cause words to be ignored when performing word
completion even if the ignored words are the only possi-
ble completions. See S\bSH\bHE\bEL\bLL\bL V\bVA\bAR\bRI\bIA\bAB\bBL\bLE\bES\bS above for a
- description of F\bFI\bIG\bGN\bNO\bOR\bRE\bE. This option is enabled by
+ description of F\bFI\bIG\bGN\bNO\bOR\bRE\bE. This option is enabled by
default.
g\bgn\bnu\bu_\b_e\ber\brr\brf\bfm\bmt\bt
If set, shell error messages are written in the standard
GNU error message format.
h\bhi\bis\bst\bta\bap\bpp\bpe\ben\bnd\bd
- If set, the history list is appended to the file named
- by the value of the H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE variable when the shell
+ If set, the history list is appended to the file named
+ by the value of the H\bHI\bIS\bST\bTF\bFI\bIL\bLE\bE variable when the shell
exits, rather than overwriting the file.
h\bhi\bis\bst\btr\bre\bee\bed\bdi\bit\bt
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, a user is given the
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, a user is given the
opportunity to re-edit a failed history substitution.
h\bhi\bis\bst\btv\bve\ber\bri\bif\bfy\by
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the results of his-
- tory substitution are not immediately passed to the
- shell parser. Instead, the resulting line is loaded
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, the results of his-
+ tory substitution are not immediately passed to the
+ shell parser. Instead, the resulting line is loaded
into the r\bre\bea\bad\bdl\bli\bin\bne\be editing buffer, allowing further modi-
fication.
h\bho\bos\bst\btc\bco\bom\bmp\bpl\ble\bet\bte\be
If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh will attempt to
- perform hostname completion when a word containing a @\b@
- is being completed (see C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg under R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE
+ perform hostname completion when a word containing a @\b@
+ is being completed (see C\bCo\bom\bmp\bpl\ble\bet\bti\bin\bng\bg under R\bRE\bEA\bAD\bDL\bLI\bIN\bNE\bE
above). This is enabled by default.
h\bhu\bup\bpo\bon\bne\bex\bxi\bit\bt
If set, b\bba\bas\bsh\bh will send S\bSI\bIG\bGH\bHU\bUP\bP to all jobs when an inter-
active login shell exits.
i\bin\bnt\bte\ber\bra\bac\bct\bti\biv\bve\be_\b_c\bco\bom\bmm\bme\ben\bnt\bts\bs
If set, allow a word beginning with #\b# to cause that word
- and all remaining characters on that line to be ignored
- in an interactive shell (see C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS above). This
+ and all remaining characters on that line to be ignored
+ in an interactive shell (see C\bCO\bOM\bMM\bME\bEN\bNT\bTS\bS above). This
option is enabled by default.
- l\bli\bit\bth\bhi\bis\bst\bt If set, and the c\bcm\bmd\bdh\bhi\bis\bst\bt option is enabled, multi-line
+ l\bli\bit\bth\bhi\bis\bst\bt If set, and the c\bcm\bmd\bdh\bhi\bis\bst\bt option is enabled, multi-line
commands are saved to the history with embedded newlines
rather than using semicolon separators where possible.
l\blo\bog\bgi\bin\bn_\b_s\bsh\bhe\bel\bll\bl
- The shell sets this option if it is started as a login
- shell (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN above). The value may not be
+ The shell sets this option if it is started as a login
+ shell (see I\bIN\bNV\bVO\bOC\bCA\bAT\bTI\bIO\bON\bN above). The value may not be
changed.
m\bma\bai\bil\blw\bwa\bar\brn\bn
- If set, and a file that b\bba\bas\bsh\bh is checking for mail has
- been accessed since the last time it was checked, the
- message ``The mail in _\bm_\ba_\bi_\bl_\bf_\bi_\bl_\be has been read'' is dis-
+ If set, and a file that b\bba\bas\bsh\bh is checking for mail has
+ been accessed since the last time it was checked, the
+ message ``The mail in _\bm_\ba_\bi_\bl_\bf_\bi_\bl_\be has been read'' is dis-
played.
n\bno\bo_\b_e\bem\bmp\bpt\bty\by_\b_c\bcm\bmd\bd_\b_c\bco\bom\bmp\bpl\ble\bet\bti\bio\bon\bn
- If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh will not
+ If set, and r\bre\bea\bad\bdl\bli\bin\bne\be is being used, b\bba\bas\bsh\bh will not
attempt to search the P\bPA\bAT\bTH\bH for possible completions when
completion is attempted on an empty line.
n\bno\boc\bca\bas\bse\beg\bgl\blo\bob\bb
- If set, b\bba\bas\bsh\bh matches filenames in a case-insensitive
+ If set, b\bba\bas\bsh\bh matches filenames in a case-insensitive
fashion when performing pathname expansion (see P\bPa\bat\bth\bhn\bna\bam\bme\be
E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn above).
n\bnu\bul\bll\blg\bgl\blo\bob\bb
- If set, b\bba\bas\bsh\bh allows patterns which match no files (see
- P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn above) to expand to a null string,
+ If set, b\bba\bas\bsh\bh allows patterns which match no files (see
+ P\bPa\bat\bth\bhn\bna\bam\bme\be E\bEx\bxp\bpa\ban\bns\bsi\bio\bon\bn above) to expand to a null string,
rather than themselves.
p\bpr\bro\bog\bgc\bco\bom\bmp\bp
If set, the programmable completion facilities (see P\bPr\bro\bo-\b-
enabled by default.
p\bpr\bro\bom\bmp\bpt\btv\bva\bar\brs\bs
If set, prompt strings undergo parameter expansion, com-
- mand substitution, arithmetic expansion, and quote
- removal after being expanded as described in P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG
+ mand substitution, arithmetic expansion, and quote
+ removal after being expanded as described in P\bPR\bRO\bOM\bMP\bPT\bTI\bIN\bNG\bG
above. This option is enabled by default.
r\bre\bes\bst\btr\bri\bic\bct\bte\bed\bd_\b_s\bsh\bhe\bel\bll\bl
- The shell sets this option if it is started in
+ The shell sets this option if it is started in
restricted mode (see R\bRE\bES\bST\bTR\bRI\bIC\bCT\bTE\bED\bD S\bSH\bHE\bEL\bLL\bL below). The value
- may not be changed. This is not reset when the startup
- files are executed, allowing the startup files to dis-
+ may not be changed. This is not reset when the startup
+ files are executed, allowing the startup files to dis-
cover whether or not a shell is restricted.
s\bsh\bhi\bif\bft\bt_\b_v\bve\ber\brb\bbo\bos\bse\be
- If set, the s\bsh\bhi\bif\bft\bt builtin prints an error message when
+ If set, the s\bsh\bhi\bif\bft\bt builtin prints an error message when
the shift count exceeds the number of positional parame-
ters.
s\bso\bou\bur\brc\bce\bep\bpa\bat\bth\bh
If set, the s\bso\bou\bur\brc\bce\be (.\b.) builtin uses the value of P\bPA\bAT\bTH\bH to
- find the directory containing the file supplied as an
+ find the directory containing the file supplied as an
argument. This option is enabled by default.
x\bxp\bpg\bg_\b_e\bec\bch\bho\bo
- If set, the e\bec\bch\bho\bo builtin expands backslash-escape
+ If set, the e\bec\bch\bho\bo builtin expands backslash-escape
sequences by default.
s\bsu\bus\bsp\bpe\ben\bnd\bd [-\b-f\bf]
- Suspend the execution of this shell until it receives a S\bSI\bIG\bGC\bCO\bON\bNT\bT
- signal. The -\b-f\bf option says not to complain if this is a login
- shell; just suspend anyway. The return status is 0 unless the
+ Suspend the execution of this shell until it receives a S\bSI\bIG\bGC\bCO\bON\bNT\bT
+ signal. The -\b-f\bf option says not to complain if this is a login
+ shell; just suspend anyway. The return status is 0 unless the
shell is a login shell and -\b-f\bf is not supplied, or if job control
is not enabled.
t\bte\bes\bst\bt _\be_\bx_\bp_\br
[\b[ _\be_\bx_\bp_\br ]\b]
- Return a status of 0 or 1 depending on the evaluation of the
- conditional expression _\be_\bx_\bp_\br. Each operator and operand must be
- a separate argument. Expressions are composed of the primaries
+ Return a status of 0 or 1 depending on the evaluation of the
+ conditional expression _\be_\bx_\bp_\br. Each operator and operand must be
+ a separate argument. Expressions are composed of the primaries
described above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS.
- Expressions may be combined using the following operators,
+ Expressions may be combined using the following operators,
listed in decreasing order of precedence.
!\b! _\be_\bx_\bp_\br True if _\be_\bx_\bp_\br is false.
(\b( _\be_\bx_\bp_\br )\b)
- Returns the value of _\be_\bx_\bp_\br. This may be used to override
+ Returns the value of _\be_\bx_\bp_\br. This may be used to override
the normal precedence of operators.
_\be_\bx_\bp_\br_\b1 -a\ba _\be_\bx_\bp_\br_\b2
True if both _\be_\bx_\bp_\br_\b1 and _\be_\bx_\bp_\br_\b2 are true.
null.
2 arguments
If the first argument is !\b!, the expression is true if and
- only if the second argument is null. If the first argu-
- ment is one of the unary conditional operators listed
- above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the expression is
+ only if the second argument is null. If the first argu-
+ ment is one of the unary conditional operators listed
+ above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the expression is
true if the unary test is true. If the first argument is
not a valid unary conditional operator, the expression is
false.
3 arguments
- If the second argument is one of the binary conditional
+ If the second argument is one of the binary conditional
operators listed above under C\bCO\bON\bND\bDI\bIT\bTI\bIO\bON\bNA\bAL\bL E\bEX\bXP\bPR\bRE\bES\bSS\bSI\bIO\bON\bNS\bS, the
result of the expression is the result of the binary test
- using the first and third arguments as operands. If the
- first argument is !\b!, the value is the negation of the
- two-argument test using the second and third arguments.
+ using the first and third arguments as operands. If the
+ first argument is !\b!, the value is the negation of the
+ two-argument test using the second and third arguments.
If the first argument is exactly (\b( and the third argument
- is exactly )\b), the result is the one-argument test of the
- second argument. Otherwise, the expression is false.
- The -\b-a\ba and -\b-o\bo operators are considered binary operators
+ is exactly )\b), the result is the one-argument test of the
+ second argument. Otherwise, the expression is false.
+ The -\b-a\ba and -\b-o\bo operators are considered binary operators
in this case.
4 arguments
If the first argument is !\b!, the result is the negation of
- the three-argument expression composed of the remaining
+ the three-argument expression composed of the remaining
arguments. Otherwise, the expression is parsed and eval-
- uated according to precedence using the rules listed
+ uated according to precedence using the rules listed
above.
5 or more arguments
- The expression is parsed and evaluated according to
+ The expression is parsed and evaluated according to
precedence using the rules listed above.
- t\bti\bim\bme\bes\bs Print the accumulated user and system times for the shell and
+ t\bti\bim\bme\bes\bs Print the accumulated user and system times for the shell and
for processes run from the shell. The return status is 0.
t\btr\bra\bap\bp [-\b-l\blp\bp] [[_\ba_\br_\bg] _\bs_\bi_\bg_\bs_\bp_\be_\bc ...]
- The command _\ba_\br_\bg is to be read and executed when the shell
- receives signal(s) _\bs_\bi_\bg_\bs_\bp_\be_\bc. If _\ba_\br_\bg is absent (and there is a
- single _\bs_\bi_\bg_\bs_\bp_\be_\bc) or -\b-, each specified signal is reset to its
- original disposition (the value it had upon entrance to the
- shell). If _\ba_\br_\bg is the null string the signal specified by each
- _\bs_\bi_\bg_\bs_\bp_\be_\bc is ignored by the shell and by the commands it invokes.
- If _\ba_\br_\bg is not present and -\b-p\bp has been supplied, then the trap
- commands associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc are displayed. If no
- arguments are supplied or if only -\b-p\bp is given, t\btr\bra\bap\bp prints the
- list of commands associated with each signal. The -\b-l\bl option
- causes the shell to print a list of signal names and their cor-
- responding numbers. Each _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a signal name
- defined in <_\bs_\bi_\bg_\bn_\ba_\bl_\b._\bh>, or a signal number. Signal names are
- case insensitive and the SIG prefix is optional. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc
- is E\bEX\bXI\bIT\bT (0) the command _\ba_\br_\bg is executed on exit from the shell.
- If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is D\bDE\bEB\bBU\bUG\bG, the command _\ba_\br_\bg is executed before every
+ The command _\ba_\br_\bg is to be read and executed when the shell
+ receives signal(s) _\bs_\bi_\bg_\bs_\bp_\be_\bc. If _\ba_\br_\bg is absent (and there is a
+ single _\bs_\bi_\bg_\bs_\bp_\be_\bc) or -\b-, each specified signal is reset to its
+ original disposition (the value it had upon entrance to the
+ shell). If _\ba_\br_\bg is the null string the signal specified by each
+ _\bs_\bi_\bg_\bs_\bp_\be_\bc is ignored by the shell and by the commands it invokes.
+ If _\ba_\br_\bg is not present and -\b-p\bp has been supplied, then the trap
+ commands associated with each _\bs_\bi_\bg_\bs_\bp_\be_\bc are displayed. If no
+ arguments are supplied or if only -\b-p\bp is given, t\btr\bra\bap\bp prints the
+ list of commands associated with each signal. The -\b-l\bl option
+ causes the shell to print a list of signal names and their cor-
+ responding numbers. Each _\bs_\bi_\bg_\bs_\bp_\be_\bc is either a signal name
+ defined in <_\bs_\bi_\bg_\bn_\ba_\bl_\b._\bh>, or a signal number. Signal names are
+ case insensitive and the SIG prefix is optional. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc
+ is E\bEX\bXI\bIT\bT (0) the command _\ba_\br_\bg is executed on exit from the shell.
+ If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is D\bDE\bEB\bBU\bUG\bG, the command _\ba_\br_\bg is executed before every
_\bs_\bi_\bm_\bp_\bl_\be _\bc_\bo_\bm_\bm_\ba_\bn_\bd, _\bf_\bo_\br command, _\bc_\ba_\bs_\be command, _\bs_\be_\bl_\be_\bc_\bt command, every
arithmetic _\bf_\bo_\br command, and before the first command executes in
- a shell function (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR above). Refer to the
- description of the e\bex\bxt\btd\bde\beb\bbu\bug\bg option to the s\bsh\bho\bop\bpt\bt builtin for
- details of its effect on the D\bDE\bEB\bBU\bUG\bG trap. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bER\bRR\bR,
- the command _\ba_\br_\bg is executed whenever a simple command has a
- non-zero exit status, subject to the following conditions. The
- E\bER\bRR\bR trap is not executed if the failed command is part of the
- command list immediately following a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword,
+ a shell function (see S\bSH\bHE\bEL\bLL\bL G\bGR\bRA\bAM\bMM\bMA\bAR\bR above). Refer to the
+ description of the e\bex\bxt\btd\bde\beb\bbu\bug\bg option to the s\bsh\bho\bop\bpt\bt builtin for
+ details of its effect on the D\bDE\bEB\bBU\bUG\bG trap. If a _\bs_\bi_\bg_\bs_\bp_\be_\bc is E\bER\bRR\bR,
+ the command _\ba_\br_\bg is executed whenever a simple command has a
+ non-zero exit status, subject to the following conditions. The
+ E\bER\bRR\bR trap is not executed if the failed command is part of the
+ command list immediately following a w\bwh\bhi\bil\ble\be or u\bun\bnt\bti\bil\bl keyword,
part of the test in an _\bi_\bf statement, part of a &\b&&\b& or |\b||\b| list, or
- if the command's return value is being inverted via !\b!. These
- are the same conditions obeyed by the e\ber\brr\bre\bex\bxi\bit\bt option. If a
+ if the command's return value is being inverted via !\b!. These
+ are the same conditions obeyed by the e\ber\brr\bre\bex\bxi\bit\bt option. If a
_\bs_\bi_\bg_\bs_\bp_\be_\bc is R\bRE\bET\bTU\bUR\bRN\bN, the command _\ba_\br_\bg is executed each time a shell
function or a script executed with the .\b. or s\bso\bou\bur\brc\bce\be builtins fin-
ishes executing. Signals ignored upon entry to the shell cannot
- be trapped or reset. Trapped signals are reset to their origi-
- nal values in a child process when it is created. The return
- status is false if any _\bs_\bi_\bg_\bs_\bp_\be_\bc is invalid; otherwise t\btr\bra\bap\bp
+ be trapped or reset. Trapped signals are reset to their origi-
+ nal values in a child process when it is created. The return
+ status is false if any _\bs_\bi_\bg_\bs_\bp_\be_\bc is invalid; otherwise t\btr\bra\bap\bp
returns true.
t\bty\byp\bpe\be [-\b-a\baf\bft\btp\bpP\bP] _\bn_\ba_\bm_\be [_\bn_\ba_\bm_\be ...]
- With no options, indicate how each _\bn_\ba_\bm_\be would be interpreted if
+ With no options, indicate how each _\bn_\ba_\bm_\be would be interpreted if
used as a command name. If the -\b-t\bt option is used, t\bty\byp\bpe\be prints a
- string which is one of _\ba_\bl_\bi_\ba_\bs, _\bk_\be_\by_\bw_\bo_\br_\bd, _\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn, _\bb_\bu_\bi_\bl_\bt_\bi_\bn, or
- _\bf_\bi_\bl_\be if _\bn_\ba_\bm_\be is an alias, shell reserved word, function,
- builtin, or disk file, respectively. If the _\bn_\ba_\bm_\be is not found,
- then nothing is printed, and an exit status of false is
- returned. If the -\b-p\bp option is used, t\bty\byp\bpe\be either returns the
+ string which is one of _\ba_\bl_\bi_\ba_\bs, _\bk_\be_\by_\bw_\bo_\br_\bd, _\bf_\bu_\bn_\bc_\bt_\bi_\bo_\bn, _\bb_\bu_\bi_\bl_\bt_\bi_\bn, or
+ _\bf_\bi_\bl_\be if _\bn_\ba_\bm_\be is an alias, shell reserved word, function,
+ builtin, or disk file, respectively. If the _\bn_\ba_\bm_\be is not found,
+ then nothing is printed, and an exit status of false is
+ returned. If the -\b-p\bp option is used, t\bty\byp\bpe\be either returns the
name of the disk file that would be executed if _\bn_\ba_\bm_\be were speci-
fied as a command name, or nothing if ``type -t name'' would not
- return _\bf_\bi_\bl_\be. The -\b-P\bP option forces a P\bPA\bAT\bTH\bH search for each _\bn_\ba_\bm_\be,
+ return _\bf_\bi_\bl_\be. The -\b-P\bP option forces a P\bPA\bAT\bTH\bH search for each _\bn_\ba_\bm_\be,
even if ``type -t name'' would not return _\bf_\bi_\bl_\be. If a command is
- hashed, -\b-p\bp and -\b-P\bP print the hashed value, not necessarily the
+ hashed, -\b-p\bp and -\b-P\bP print the hashed value, not necessarily the
file that appears first in P\bPA\bAT\bTH\bH. If the -\b-a\ba option is used, t\bty\byp\bpe\be
- prints all of the places that contain an executable named _\bn_\ba_\bm_\be.
- This includes aliases and functions, if and only if the -\b-p\bp
- option is not also used. The table of hashed commands is not
- consulted when using -\b-a\ba. The -\b-f\bf option suppresses shell func-
- tion lookup, as with the c\bco\bom\bmm\bma\ban\bnd\bd builtin. t\bty\byp\bpe\be returns true if
+ prints all of the places that contain an executable named _\bn_\ba_\bm_\be.
+ This includes aliases and functions, if and only if the -\b-p\bp
+ option is not also used. The table of hashed commands is not
+ consulted when using -\b-a\ba. The -\b-f\bf option suppresses shell func-
+ tion lookup, as with the c\bco\bom\bmm\bma\ban\bnd\bd builtin. t\bty\byp\bpe\be returns true if
any of the arguments are found, false if none are found.
u\bul\bli\bim\bmi\bit\bt [-\b-S\bSH\bHa\bac\bcd\bdf\bfl\blm\bmn\bnp\bps\bst\btu\buv\bv [_\bl_\bi_\bm_\bi_\bt]]
- Provides control over the resources available to the shell and
- to processes started by it, on systems that allow such control.
+ Provides control over the resources available to the shell and
+ to processes started by it, on systems that allow such control.
The -\b-H\bH and -\b-S\bS options specify that the hard or soft limit is set
- for the given resource. A hard limit cannot be increased once
- it is set; a soft limit may be increased up to the value of the
- hard limit. If neither -\b-H\bH nor -\b-S\bS is specified, both the soft
- and hard limits are set. The value of _\bl_\bi_\bm_\bi_\bt can be a number in
+ for the given resource. A hard limit cannot be increased once
+ it is set; a soft limit may be increased up to the value of the
+ hard limit. If neither -\b-H\bH nor -\b-S\bS is specified, both the soft
+ and hard limits are set. The value of _\bl_\bi_\bm_\bi_\bt can be a number in
the unit specified for the resource or one of the special values
- h\bha\bar\brd\bd, s\bso\bof\bft\bt, or u\bun\bnl\bli\bim\bmi\bit\bte\bed\bd, which stand for the current hard
- limit, the current soft limit, and no limit, respectively. If
- _\bl_\bi_\bm_\bi_\bt is omitted, the current value of the soft limit of the
- resource is printed, unless the -\b-H\bH option is given. When more
- than one resource is specified, the limit name and unit are
+ h\bha\bar\brd\bd, s\bso\bof\bft\bt, or u\bun\bnl\bli\bim\bmi\bit\bte\bed\bd, which stand for the current hard
+ limit, the current soft limit, and no limit, respectively. If
+ _\bl_\bi_\bm_\bi_\bt is omitted, the current value of the soft limit of the
+ resource is printed, unless the -\b-H\bH option is given. When more
+ than one resource is specified, the limit name and unit are
printed before the value. Other options are interpreted as fol-
lows:
-\b-a\ba All current limits are reported
-\b-p\bp The pipe size in 512-byte blocks (this may not be set)
-\b-s\bs The maximum stack size
-\b-t\bt The maximum amount of cpu time in seconds
- -\b-u\bu The maximum number of processes available to a single
+ -\b-u\bu The maximum number of processes available to a single
user
- -\b-v\bv The maximum amount of virtual memory available to the
+ -\b-v\bv The maximum amount of virtual memory available to the
shell
If _\bl_\bi_\bm_\bi_\bt is given, it is the new value of the specified resource
(the -\b-a\ba option is display only). If no option is given, then -\b-f\bf
- is assumed. Values are in 1024-byte increments, except for -\b-t\bt,
- which is in seconds, -\b-p\bp, which is in units of 512-byte blocks,
- and -\b-n\bn and -\b-u\bu, which are unscaled values. The return status is
- 0 unless an invalid option or argument is supplied, or an error
+ is assumed. Values are in 1024-byte increments, except for -\b-t\bt,
+ which is in seconds, -\b-p\bp, which is in units of 512-byte blocks,
+ and -\b-n\bn and -\b-u\bu, which are unscaled values. The return status is
+ 0 unless an invalid option or argument is supplied, or an error
occurs while setting a new limit.
u\bum\bma\bas\bsk\bk [-\b-p\bp] [-\b-S\bS] [_\bm_\bo_\bd_\be]
The user file-creation mask is set to _\bm_\bo_\bd_\be. If _\bm_\bo_\bd_\be begins with
- a digit, it is interpreted as an octal number; otherwise it is
- interpreted as a symbolic mode mask similar to that accepted by
- _\bc_\bh_\bm_\bo_\bd(1). If _\bm_\bo_\bd_\be is omitted, the current value of the mask is
- printed. The -\b-S\bS option causes the mask to be printed in sym-
- bolic form; the default output is an octal number. If the -\b-p\bp
+ a digit, it is interpreted as an octal number; otherwise it is
+ interpreted as a symbolic mode mask similar to that accepted by
+ _\bc_\bh_\bm_\bo_\bd(1). If _\bm_\bo_\bd_\be is omitted, the current value of the mask is
+ printed. The -\b-S\bS option causes the mask to be printed in sym-
+ bolic form; the default output is an octal number. If the -\b-p\bp
option is supplied, and _\bm_\bo_\bd_\be is omitted, the output is in a form
that may be reused as input. The return status is 0 if the mode
- was successfully changed or if no _\bm_\bo_\bd_\be argument was supplied,
+ was successfully changed or if no _\bm_\bo_\bd_\be argument was supplied,
and false otherwise.
u\bun\bna\bal\bli\bia\bas\bs [-a\ba] [_\bn_\ba_\bm_\be ...]
- Remove each _\bn_\ba_\bm_\be from the list of defined aliases. If -\b-a\ba is
- supplied, all alias definitions are removed. The return value
+ Remove each _\bn_\ba_\bm_\be from the list of defined aliases. If -\b-a\ba is
+ supplied, all alias definitions are removed. The return value
is true unless a supplied _\bn_\ba_\bm_\be is not a defined alias.
u\bun\bns\bse\bet\bt [-f\bfv\bv] [_\bn_\ba_\bm_\be ...]
- For each _\bn_\ba_\bm_\be, remove the corresponding variable or function.
+ For each _\bn_\ba_\bm_\be, remove the corresponding variable or function.
If no options are supplied, or the -\b-v\bv option is given, each _\bn_\ba_\bm_\be
- refers to a shell variable. Read-only variables may not be
- unset. If -\b-f\bf is specified, each _\bn_\ba_\bm_\be refers to a shell func-
- tion, and the function definition is removed. Each unset vari-
- able or function is removed from the environment passed to sub-
- sequent commands. If any of R\bRA\bAN\bND\bDO\bOM\bM, S\bSE\bEC\bCO\bON\bND\bDS\bS, L\bLI\bIN\bNE\bEN\bNO\bO, H\bHI\bIS\bST\bTC\bCM\bMD\bD,
+ refers to a shell variable. Read-only variables may not be
+ unset. If -\b-f\bf is specified, each _\bn_\ba_\bm_\be refers to a shell func-
+ tion, and the function definition is removed. Each unset vari-
+ able or function is removed from the environment passed to sub-
+ sequent commands. If any of R\bRA\bAN\bND\bDO\bOM\bM, S\bSE\bEC\bCO\bON\bND\bDS\bS, L\bLI\bIN\bNE\bEN\bNO\bO, H\bHI\bIS\bST\bTC\bCM\bMD\bD,
F\bFU\bUN\bNC\bCN\bNA\bAM\bME\bE, G\bGR\bRO\bOU\bUP\bPS\bS, or D\bDI\bIR\bRS\bST\bTA\bAC\bCK\bK are unset, they lose their special
- properties, even if they are subsequently reset. The exit sta-
+ properties, even if they are subsequently reset. The exit sta-
tus is true unless a _\bn_\ba_\bm_\be is readonly.
w\bwa\bai\bit\bt [_\bn _\b._\b._\b.]
- Wait for each specified process and return its termination sta-
- tus. Each _\bn may be a process ID or a job specification; if a
- job spec is given, all processes in that job's pipeline are
- waited for. If _\bn is not given, all currently active child pro-
- cesses are waited for, and the return status is zero. If _\bn
- specifies a non-existent process or job, the return status is
- 127. Otherwise, the return status is the exit status of the
+ Wait for each specified process and return its termination sta-
+ tus. Each _\bn may be a process ID or a job specification; if a
+ job spec is given, all processes in that job's pipeline are
+ waited for. If _\bn is not given, all currently active child pro-
+ cesses are waited for, and the return status is zero. If _\bn
+ specifies a non-existent process or job, the return status is
+ 127. Otherwise, the return status is the exit status of the
last process or job waited for.
S\bSE\bEE\bE A\bAL\bLS\bSO\bO
%!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
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
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
%!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
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)
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')
{
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 },
}
*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;
}
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
${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"}