From: Chet Ramey Date: Sat, 3 Dec 2011 18:43:49 +0000 (-0500) Subject: commit bash-20050225 snapshot X-Git-Tag: bash-3.1-alpha~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d2b70f04e80e6373f4815b16961d519d24ee1ce;p=thirdparty%2Fbash.git commit bash-20050225 snapshot --- diff --git a/CWRU/CWRU.chlog b/CWRU/CWRU.chlog index 757113801..085e8cde9 100644 --- a/CWRU/CWRU.chlog +++ b/CWRU/CWRU.chlog @@ -11114,3 +11114,44 @@ builtins/shopt.def doc/{bashref.texi,bash.1} - updated descriptions of [[ and case to include reference to nocasematch option + + 2/22 + ---- +builtins/mkbuiltins.c + - add `times' to the list of posix special builtins + + 2/23 + ---- +builtins/cd.def + - posix mode no longer turns on effect of -P option on $PWD if a + directory is chosen from CDPATH + +doc/bashref.texi + - clarified that in posix mode, reserved words are not alias expanded + only in a reserved word context + - removed item about cd, $CDPATH, and -P from posix mode section + + 2/24 + ---- +builtins/reserved.def + - minor cleanups to the description of `if' + + 3/2 + --- +subst.c + - change list_string and get_word_from_string to explicitly treat an + IFS character that is not space, tab, or newline *and any adjacent + IFS white space* as a single delimiter, as SUSv3/XPG6 says + +builtins/read.def + - check whether or not the number of fields is exactly the same as + the number of variables instead of just assigning the rest of the + line (minus any trailing IFS white space) to the last variable. + This parses a field and checks whether or not it consumes all of + the input (including any trailing field delimiters), falling back + to the previous behavior if it does not. This is what POSIX.2 + specifies, I believe (and the consensus of the austin-group list). + This requires a few tests in read.tests to be changed: backslashes + escaping IFS whitespace characters at the end of input cause the + whitespace characters to be preserved in the value assigned to the + variable, and the trailing non-whitespace field delimiter issue diff --git a/CWRU/CWRU.chlog~ b/CWRU/CWRU.chlog~ index 251a83c05..ae6ca9cd9 100644 --- a/CWRU/CWRU.chlog~ +++ b/CWRU/CWRU.chlog~ @@ -11110,3 +11110,46 @@ builtins/shopt.def - new settable option, `nocasematch', controls the match_ignore_case variable. Currently alters pattern matching for case and [[ ... ]] commands (==, !=, and =~ operators) + +doc/{bashref.texi,bash.1} + - updated descriptions of [[ and case to include reference to + nocasematch option + + 2/22 + ---- +builtins/mkbuiltins.c + - add `times' to the list of posix special builtins + + 2/23 + ---- +builtins/cd.def + - posix mode no longer turns on effect of -P option on $PWD if a + directory is chosen from CDPATH + +doc/bashref.texi + - clarified that in posix mode, reserved words are not alias expanded + only in a reserved word context + - removed item about cd, $CDPATH, and -P from posix mode section + + 2/24 + ---- +builtins/reserved.def + - minor cleanups to the description of `if' + + 3/2 + --- +subst.c + - change list_string and get_word_from_string to explicitly treat an + IFS character that is not space, tab, or newline *and any adjacent + IFS white space* as a single delimiter, as SUSv3/XPG6 says + +builtins/read.def + - check whether or not the number of fields is exactly the same as + the number of variables instead of just assigning the rest of the + line (minus any trailing IFS white space) to the last variable. + This parses a field and checks whether or not it consumes all of + the input (including any trailing field delimiters), falling back + to the previous behavior if it does not. This is what POSIX.2 + specifies, I believe (and the consensus of the austin-group list). + This requires a few tests in read.tests to be changed + diff --git a/builtins/cd.def b/builtins/cd.def index 6734b8162..d7bf77054 100644 --- a/builtins/cd.def +++ b/builtins/cd.def @@ -246,9 +246,13 @@ cd_builtin (list) printf ("%s\n", path); free (temp); +#if 0 /* Posix.2 says that after using CDPATH, the resultant value of $PWD will not contain `.' or `..'. */ return (bindpwd (posixly_correct || no_symlinks)); +#else + return (bindpwd (no_symlinks)); +#endif } else free (temp); diff --git a/builtins/mkbuiltins.c b/builtins/mkbuiltins.c index 391f4a2ca..ae2893ca1 100644 --- a/builtins/mkbuiltins.c +++ b/builtins/mkbuiltins.c @@ -134,7 +134,7 @@ ARRAY *saved_builtins = (ARRAY *)NULL; char *special_builtins[] = { ":", ".", "source", "break", "continue", "eval", "exec", "exit", - "export", "readonly", "return", "set", "shift", "trap", "unset", + "export", "readonly", "return", "set", "shift", "times", "trap", "unset", (char *)NULL }; diff --git a/builtins/read.def b/builtins/read.def index e28b8cde5..05e69e853 100644 --- a/builtins/read.def +++ b/builtins/read.def @@ -1,7 +1,7 @@ This file is read.def, from which is created read.c. It implements the builtin "read" in Bash. -Copyright (C) 1987-2004 Free Software Foundation, Inc. +Copyright (C) 1987-2005 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. @@ -627,10 +627,24 @@ read_builtin (list) return (EXECUTION_FAILURE); } +#if 0 /* This has to be done this way rather than using string_list and list_string because Posix.2 says that the last variable gets the remaining words and their intervening separators. */ input_string = strip_trailing_ifs_whitespace (input_string, ifs_chars, saw_escape); +#else + /* Check whether or not the number of fields is exactly the same as the + number of variables. */ + if (*input_string) + { + t1 = input_string; + t = get_word_from_string (&input_string, ifs_chars, &e); + if (*input_string == 0) + input_string = t; + else + input_string = strip_trailing_ifs_whitespace (t1, ifs_chars, saw_escape); + } +#endif if (saw_escape) { diff --git a/builtins/read.def.save1 b/builtins/read.def.save1 new file mode 100644 index 000000000..e28b8cde5 --- /dev/null +++ b/builtins/read.def.save1 @@ -0,0 +1,736 @@ +This file is read.def, from which is created read.c. +It implements the builtin "read" in Bash. + +Copyright (C) 1987-2004 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 read.c + +$BUILTIN read +$FUNCTION read_builtin +$SHORT_DOC read [-ers] [-u fd] [-t timeout] [-p prompt] [-a array] [-n nchars] [-d delim] [name ...] +One line is read from the standard input, or from file descriptor FD if the +-u option is supplied, and the first word is assigned to the first NAME, +the second word to the second NAME, and so on, with leftover words assigned +to the last NAME. Only the characters found in $IFS are recognized as word +delimiters. If no NAMEs are supplied, the line read is stored in the REPLY +variable. If the -r option is given, this signifies `raw' input, and +backslash escaping is disabled. The -d option causes read to continue +until the first character of DELIM is read, rather than newline. If the -p +option is supplied, the string PROMPT is output without a trailing newline +before attempting to read. If -a is supplied, the words read are assigned +to sequential indices of ARRAY, starting at zero. If -e is supplied and +the shell is interactive, readline is used to obtain the line. If -n is +supplied with a non-zero NCHARS argument, read returns after NCHARS +characters have been read. The -s option causes input coming from a +terminal to not be echoed. + +The -t option causes read to time out and return failure if a complete line +of input is not read within TIMEOUT seconds. If the TMOUT variable is set, +its value is the default timeout. The return code is zero, unless end-of-file +is encountered, read times out, or an invalid file descriptor is supplied as +the argument to -u. +$END + +#include + +#include "bashtypes.h" +#include "posixstat.h" + +#include + +#if defined (HAVE_UNISTD_H) +# include +#endif + +#include +#include + +#ifdef __CYGWIN__ +# include +# include +#endif + +#include "../bashintl.h" + +#include "../shell.h" +#include "common.h" +#include "bashgetopt.h" + +#include + +#if defined (READLINE) +#include "../bashline.h" +#include +#endif + +#if !defined(errno) +extern int errno; +#endif + +extern int interrupt_immediately; + +#if defined (READLINE) +static char *edit_line __P((char *)); +static void set_eol_delim __P((int)); +static void reset_eol_delim __P((char *)); +#endif +static SHELL_VAR *bind_read_variable __P((char *, char *)); + +static sighandler sigalrm __P((int)); +static void reset_alarm __P((void)); + +static procenv_t alrmbuf; +static SigHandler *old_alrm; +static unsigned char delim; + +static sighandler +sigalrm (s) + int s; +{ + longjmp (alrmbuf, 1); +} + +static void +reset_alarm () +{ + set_signal_handler (SIGALRM, old_alrm); + alarm (0); +} + +/* Read the value of the shell variables whose names follow. + The reading is done from the current input stream, whatever + that may be. Successive words of the input line are assigned + to the variables mentioned in LIST. The last variable in LIST + gets the remainder of the words on the line. If no variables + are mentioned in LIST, then the default variable is $REPLY. */ +int +read_builtin (list) + WORD_LIST *list; +{ + register char *varname; + int size, i, pass_next, saw_escape, eof, opt, retval, code; + int input_is_tty, input_is_pipe, unbuffered_read; + int raw, edit, nchars, silent, have_timeout, fd; + unsigned int tmout; + intmax_t intval; + char c; + char *input_string, *orig_input_string, *ifs_chars, *prompt, *arrayname; + char *e, *t, *t1; + struct stat tsb; + SHELL_VAR *var; +#if defined (ARRAY_VARS) + WORD_LIST *alist; +#endif +#if defined (READLINE) + char *rlbuf; + int rlind; +#endif + + USE_VAR(size); + USE_VAR(i); + USE_VAR(pass_next); + USE_VAR(saw_escape); + USE_VAR(input_is_pipe); +/* USE_VAR(raw); */ + USE_VAR(edit); + USE_VAR(tmout); + USE_VAR(nchars); + USE_VAR(silent); + USE_VAR(ifs_chars); + USE_VAR(prompt); + USE_VAR(arrayname); +#if defined (READLINE) + USE_VAR(rlbuf); + USE_VAR(rlind); +#endif + USE_VAR(list); + + i = 0; /* Index into the string that we are reading. */ + raw = edit = 0; /* Not reading raw input by default. */ + silent = 0; + arrayname = prompt = (char *)NULL; + fd = 0; /* file descriptor to read from */ + +#if defined (READLINE) + rlbuf = (char *)0; + rlind = 0; +#endif + + tmout = 0; /* no timeout */ + nchars = input_is_tty = input_is_pipe = unbuffered_read = have_timeout = 0; + delim = '\n'; /* read until newline */ + + reset_internal_getopt (); + while ((opt = internal_getopt (list, "ersa:d:n:p:t:u:")) != -1) + { + switch (opt) + { + case 'r': + raw = 1; + break; + case 'p': + prompt = list_optarg; + break; + case 's': + silent = 1; + break; + case 'e': +#if defined (READLINE) + edit = 1; +#endif + break; +#if defined (ARRAY_VARS) + case 'a': + arrayname = list_optarg; + break; +#endif + case 't': + code = legal_number (list_optarg, &intval); + if (code == 0 || intval < 0 || intval != (unsigned int)intval) + { + builtin_error (_("%s: invalid timeout specification"), list_optarg); + return (EXECUTION_FAILURE); + } + else + { + have_timeout = 1; + tmout = intval; + } + break; + case 'n': + code = legal_number (list_optarg, &intval); + if (code == 0 || intval < 0 || intval != (int)intval) + { + sh_invalidnum (list_optarg); + return (EXECUTION_FAILURE); + } + else + nchars = intval; + break; + case 'u': + code = legal_number (list_optarg, &intval); + if (code == 0 || intval < 0 || intval != (int)intval) + { + builtin_error (_("%s: invalid file descriptor specification"), list_optarg); + return (EXECUTION_FAILURE); + } + else + fd = intval; + if (sh_validfd (fd) == 0) + { + builtin_error (_("%d: invalid file descriptor: %s"), fd, strerror (errno)); + return (EXECUTION_FAILURE); + } + break; + case 'd': + delim = *list_optarg; + break; + default: + builtin_usage (); + return (EX_USAGE); + } + } + list = loptend; + + /* `read -t 0 var' returns failure immediately. XXX - should it test + whether input is available with select/FIONREAD, and fail if those + are unavailable? */ + if (have_timeout && tmout == 0) + return (EXECUTION_FAILURE); + + /* IF IFS is unset, we use the default of " \t\n". */ + ifs_chars = getifs (); + if (ifs_chars == 0) /* XXX - shouldn't happen */ + ifs_chars = ""; + + input_string = (char *)xmalloc (size = 112); /* XXX was 128 */ + + /* $TMOUT, if set, is the default timeout for read. */ + if (have_timeout == 0 && (e = get_string_value ("TMOUT"))) + { + code = legal_number (e, &intval); + if (code == 0 || intval < 0 || intval != (unsigned int)intval) + tmout = 0; + else + tmout = intval; + } + + begin_unwind_frame ("read_builtin"); + + input_is_tty = isatty (fd); + if (input_is_tty == 0) +#ifndef __CYGWIN__ + input_is_pipe = (lseek (0, 0L, SEEK_CUR) < 0) && (errno == ESPIPE); +#else + input_is_pipe = 1; +#endif + + /* If the -p, -e or -s flags were given, but input is not coming from the + terminal, turn them off. */ + if ((prompt || edit || silent) && input_is_tty == 0) + { + prompt = (char *)NULL; + edit = silent = 0; + } + +#if defined (READLINE) + if (edit) + add_unwind_protect (xfree, rlbuf); +#endif + + if (prompt && edit == 0) + { + fprintf (stderr, "%s", prompt); + fflush (stderr); + } + + pass_next = 0; /* Non-zero signifies last char was backslash. */ + saw_escape = 0; /* Non-zero signifies that we saw an escape char */ + + if (tmout > 0) + { + /* Turn off the timeout if stdin is a regular file (e.g. from + input redirection). */ + if ((fstat (fd, &tsb) < 0) || S_ISREG (tsb.st_mode)) + tmout = 0; + } + + if (tmout > 0) + { + code = setjmp (alrmbuf); + if (code) + { + run_unwind_frame ("read_builtin"); + return (EXECUTION_FAILURE); + } + old_alrm = set_signal_handler (SIGALRM, sigalrm); + add_unwind_protect (reset_alarm, (char *)NULL); + alarm (tmout); + } + + /* If we've been asked to read only NCHARS chars, or we're using some + character other than newline to terminate the line, do the right + thing to readline or the tty. */ + if (nchars > 0 || delim != '\n') + { +#if defined (READLINE) + if (edit) + { + if (nchars > 0) + { + unwind_protect_int (rl_num_chars_to_read); + rl_num_chars_to_read = nchars; + } + if (delim != '\n') + { + set_eol_delim (delim); + add_unwind_protect (reset_eol_delim, (char *)NULL); + } + } + else +#endif + if (input_is_tty) + { + ttsave (); + if (silent) + ttcbreak (); + else + ttonechar (); + add_unwind_protect ((Function *)ttrestore, (char *)NULL); + } + } + else if (silent) /* turn off echo but leave term in canonical mode */ + { + ttsave (); + ttnoecho (); + add_unwind_protect ((Function *)ttrestore, (char *)NULL); + } + + /* This *must* be the top unwind-protect on the stack, so the manipulation + of the unwind-protect stack after the realloc() works right. */ + add_unwind_protect (xfree, input_string); + interrupt_immediately++; + + unbuffered_read = (nchars > 0) || (delim != '\n') || input_is_pipe; + +#if defined (__CYGWIN__) && defined (O_TEXT) + setmode (0, O_TEXT); +#endif + + for (eof = retval = 0;;) + { +#if defined (READLINE) + if (edit) + { + if (rlbuf && rlbuf[rlind] == '\0') + { + xfree (rlbuf); + rlbuf = (char *)0; + } + if (rlbuf == 0) + { + rlbuf = edit_line (prompt ? prompt : ""); + rlind = 0; + } + if (rlbuf == 0) + { + eof = 1; + break; + } + c = rlbuf[rlind++]; + } + else + { +#endif + + if (unbuffered_read) + retval = zread (fd, &c, 1); + else + retval = zreadc (fd, &c); + + if (retval <= 0) + { + eof = 1; + break; + } + +#if defined (READLINE) + } +#endif + + if (i + 2 >= size) + { + input_string = (char *)xrealloc (input_string, size += 128); + remove_unwind_protect (); + add_unwind_protect (xfree, input_string); + } + + /* If the next character is to be accepted verbatim, a backslash + newline pair still disappears from the input. */ + if (pass_next) + { + if (c == '\n') + i--; /* back up over the CTLESC */ + else + input_string[i++] = c; + pass_next = 0; + continue; + } + + if (c == '\\' && raw == 0) + { + pass_next++; + saw_escape++; + input_string[i++] = CTLESC; + continue; + } + + if ((unsigned char)c == delim) + break; + + if (c == CTLESC || c == CTLNUL) + { + saw_escape++; + input_string[i++] = CTLESC; + } + + input_string[i++] = c; + + if (nchars > 0 && i >= nchars) + break; + } + input_string[i] = '\0'; + +#if 1 + if (retval < 0) + { + builtin_error (_("read error: %d: %s"), fd, strerror (errno)); + return (EXECUTION_FAILURE); + } +#endif + + if (tmout > 0) + reset_alarm (); + + if (nchars > 0 || delim != '\n') + { +#if defined (READLINE) + if (edit) + { + if (nchars > 0) + rl_num_chars_to_read = 0; + if (delim != '\n') + reset_eol_delim ((char *)NULL); + } + else +#endif + if (input_is_tty) + ttrestore (); + } + else if (silent) + ttrestore (); + + if (unbuffered_read == 0) + zsyncfd (fd); + + interrupt_immediately--; + discard_unwind_frame ("read_builtin"); + + retval = eof ? EXECUTION_FAILURE : EXECUTION_SUCCESS; + +#if defined (ARRAY_VARS) + /* If -a was given, take the string read, break it into a list of words, + an assign them to `arrayname' in turn. */ + if (arrayname) + { + if (legal_identifier (arrayname) == 0) + { + sh_invalidid (arrayname); + xfree (input_string); + return (EXECUTION_FAILURE); + } + + var = find_or_make_array_variable (arrayname, 1); + if (var == 0) + return EXECUTION_FAILURE; /* readonly or noassign */ + array_flush (array_cell (var)); + + alist = list_string (input_string, ifs_chars, 0); + if (alist) + { + word_list_remove_quoted_nulls (alist); + assign_array_var_from_word_list (var, alist, 0); + dispose_words (alist); + } + xfree (input_string); + return (retval); + } +#endif /* ARRAY_VARS */ + + /* If there are no variables, save the text of the line read to the + variable $REPLY. ksh93 strips leading and trailing IFS whitespace, + so that `read x ; echo "$x"' and `read ; echo "$REPLY"' behave the + same way, but I believe that the difference in behaviors is useful + enough to not do it. Without the bash behavior, there is no way + to read a line completely without interpretation or modification + unless you mess with $IFS (e.g., setting it to the empty string). + If you disagree, change the occurrences of `#if 0' to `#if 1' below. */ + if (list == 0) + { +#if 0 + orig_input_string = input_string; + for (t = input_string; ifs_chars && *ifs_chars && spctabnl(*t) && isifs(*t); t++) + ; + input_string = t; + input_string = strip_trailing_ifs_whitespace (input_string, ifs_chars, saw_escape); +#endif + + if (saw_escape) + { + t = dequote_string (input_string); + var = bind_variable ("REPLY", t, 0); + free (t); + } + else + var = bind_variable ("REPLY", input_string, 0); + VUNSETATTR (var, att_invisible); + + free (input_string); + return (retval); + } + + /* This code implements the Posix.2 spec for splitting the words + read and assigning them to variables. */ + orig_input_string = input_string; + + /* Remove IFS white space at the beginning of the input string. If + $IFS is null, no field splitting is performed. */ + for (t = input_string; ifs_chars && *ifs_chars && spctabnl(*t) && isifs(*t); t++) + ; + input_string = t; + + for (; list->next; list = list->next) + { + varname = list->word->word; +#if defined (ARRAY_VARS) + if (legal_identifier (varname) == 0 && valid_array_reference (varname) == 0) +#else + if (legal_identifier (varname) == 0) +#endif + { + sh_invalidid (varname); + xfree (orig_input_string); + return (EXECUTION_FAILURE); + } + + /* If there are more variables than words read from the input, + the remaining variables are set to the empty string. */ + if (*input_string) + { + /* This call updates INPUT_STRING. */ + t = get_word_from_string (&input_string, ifs_chars, &e); + if (t) + *e = '\0'; + /* Don't bother to remove the CTLESC unless we added one + somewhere while reading the string. */ + if (t && saw_escape) + { + t1 = dequote_string (t); + var = bind_read_variable (varname, t1); + xfree (t1); + } + else + var = bind_read_variable (varname, t); + } + else + { + t = (char *)0; + var = bind_read_variable (varname, ""); + } + + FREE (t); + if (var == 0) + { + xfree (orig_input_string); + return (EXECUTION_FAILURE); + } + + stupidly_hack_special_variables (varname); + VUNSETATTR (var, att_invisible); + } + + /* Now assign the rest of the line to the last variable argument. */ +#if defined (ARRAY_VARS) + if (legal_identifier (list->word->word) == 0 && valid_array_reference (list->word->word) == 0) +#else + if (legal_identifier (list->word->word) == 0) +#endif + { + sh_invalidid (list->word->word); + xfree (orig_input_string); + return (EXECUTION_FAILURE); + } + + /* This has to be done this way rather than using string_list + and list_string because Posix.2 says that the last variable gets the + remaining words and their intervening separators. */ + input_string = strip_trailing_ifs_whitespace (input_string, ifs_chars, saw_escape); + + if (saw_escape) + { + t = dequote_string (input_string); + var = bind_read_variable (list->word->word, t); + xfree (t); + } + else + var = bind_read_variable (list->word->word, input_string); + stupidly_hack_special_variables (list->word->word); + if (var) + VUNSETATTR (var, att_invisible); + xfree (orig_input_string); + + return (retval); +} + +static SHELL_VAR * +bind_read_variable (name, value) + char *name, *value; +{ +#if defined (ARRAY_VARS) + if (valid_array_reference (name) == 0) + return (bind_variable (name, value, 0)); + else + return (assign_array_element (name, value, 0)); +#else /* !ARRAY_VARS */ + return bind_variable (name, value, 0); +#endif /* !ARRAY_VARS */ +} + +#if defined (READLINE) +static rl_completion_func_t *old_attempted_completion_function; + +static char * +edit_line (p) + char *p; +{ + char *ret; + int len; + + if (!bash_readline_initialized) + initialize_readline (); + old_attempted_completion_function = rl_attempted_completion_function; + rl_attempted_completion_function = (rl_completion_func_t *)NULL; + ret = readline (p); + rl_attempted_completion_function = old_attempted_completion_function; + if (ret == 0) + return ret; + len = strlen (ret); + ret = (char *)xrealloc (ret, len + 2); + ret[len++] = delim; + ret[len] = '\0'; + return ret; +} + +static int old_delim_ctype; +static rl_command_func_t *old_delim_func; +static int old_newline_ctype; +static rl_command_func_t *old_newline_func; + +static unsigned char delim_char; + +static void +set_eol_delim (c) + int c; +{ + Keymap cmap; + + if (bash_readline_initialized == 0) + initialize_readline (); + cmap = rl_get_keymap (); + + /* Change newline to self-insert */ + old_newline_ctype = cmap[RETURN].type; + old_newline_func = cmap[RETURN].function; + cmap[RETURN].type = ISFUNC; + cmap[RETURN].function = rl_insert; + + /* Bind the delimiter character to accept-line. */ + old_delim_ctype = cmap[c].type; + old_delim_func = cmap[c].function; + cmap[c].type = ISFUNC; + cmap[c].function = rl_newline; + + delim_char = c; +} + +static void +reset_eol_delim (cp) + char *cp; +{ + Keymap cmap; + + cmap = rl_get_keymap (); + + cmap[RETURN].type = old_newline_ctype; + cmap[RETURN].function = old_newline_func; + + cmap[delim_char].type = old_delim_ctype; + cmap[delim_char].function = old_delim_func; +} +#endif diff --git a/builtins/read.def~ b/builtins/read.def~ index 0446d4824..ce9c99d6a 100644 --- a/builtins/read.def~ +++ b/builtins/read.def~ @@ -1,7 +1,7 @@ This file is read.def, from which is created read.c. It implements the builtin "read" in Bash. -Copyright (C) 1987-2004 Free Software Foundation, Inc. +Copyright (C) 1987-2005 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. @@ -131,7 +131,7 @@ read_builtin (list) intmax_t intval; char c; char *input_string, *orig_input_string, *ifs_chars, *prompt, *arrayname; - char *e, *t, *t1; + char *e, *t, *t1, *savei; struct stat tsb; SHELL_VAR *var; #if defined (ARRAY_VARS) @@ -544,11 +544,11 @@ read_builtin (list) if (saw_escape) { t = dequote_string (input_string); - var = bind_variable ("REPLY", t); + var = bind_variable ("REPLY", t, 0); free (t); } else - var = bind_variable ("REPLY", input_string); + var = bind_variable ("REPLY", input_string, 0); VUNSETATTR (var, att_invisible); free (input_string); @@ -627,10 +627,24 @@ read_builtin (list) return (EXECUTION_FAILURE); } +#if 0 /* This has to be done this way rather than using string_list and list_string because Posix.2 says that the last variable gets the remaining words and their intervening separators. */ input_string = strip_trailing_ifs_whitespace (input_string, ifs_chars, saw_escape); +#else + /* Check whether or not the number of fields is exactly the same as the + number of variables. */ + if (*input_string) + { + savei = input_string; + t = get_word_from_string (&input_string, ifs_chars, &e); + if (*input_string == 0) + input_string = t; + else + input_string = strip_trailing_ifs_whitespace (savei, ifs_chars, saw_escape); + } +#endif if (saw_escape) { @@ -654,11 +668,11 @@ bind_read_variable (name, value) { #if defined (ARRAY_VARS) if (valid_array_reference (name) == 0) - return (bind_variable (name, value)); + return (bind_variable (name, value, 0)); else return (assign_array_element (name, value, 0)); #else /* !ARRAY_VARS */ - return bind_variable (name, value); + return bind_variable (name, value, 0); #endif /* !ARRAY_VARS */ } diff --git a/builtins/readsave b/builtins/readsave new file mode 100644 index 000000000..8c26c792c --- /dev/null +++ b/builtins/readsave @@ -0,0 +1,17 @@ +#else + /* This code implements the `rest of the fields and their intervening + separators' portion of the Posix spec. The latest interpretation says + that the last non-IFS white space separator (and any adjacent IFS + white space) is removed. We repeatedly parse fields, stopping when the + last results in us hitting the end of INPUT_STRING. */ + savei = t = input_string; + while (*input_string) + { + /* This call updates INPUT_STRING. */ + t1 = get_word_from_string (&input_string, ifs_chars, &e); + if (*input_string) + t = input_string; + } + *t = '\0'; + input_string = savei; +#endif diff --git a/builtins/reserved.def b/builtins/reserved.def index 870f85892..5482f5f36 100644 --- a/builtins/reserved.def +++ b/builtins/reserved.def @@ -2,7 +2,7 @@ This file is reserved.def, in which the shell reserved words are defined. It has no direct C file production, but defines builtins for the Bash builtin help command. -Copyright (C) 1987-2002 Free Software Foundation, Inc. +Copyright (C) 1987-2005 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. @@ -73,12 +73,13 @@ $END $BUILTIN if $SHORT_DOC if COMMANDS; then COMMANDS; [ elif COMMANDS; then COMMANDS; ]... [ else COMMANDS; ] fi -The if COMMANDS are executed. If the exit status is zero, then the then -COMMANDS are executed. Otherwise, each of the elif COMMANDS are executed -in turn, and if the exit status is zero, the corresponding then COMMANDS -are executed and the if command completes. Otherwise, the else COMMANDS -are executed, if present. The exit status is the exit status of the last -command executed, or zero if no condition tested true. +The `if COMMANDS' list is executed. If its exit status is zero, then the +`then COMMANDS' list is executed. Otherwise, each `elif COMMANDS' list is +executed in turn, and if its exit status is zero, the corresponding +`then COMMANDS' list is executed and the if command completes. Otherwise, +the `else COMMANDS' list is executed, if present. The exit status of the +entire construct is the exit status of the last command executed, or zero +if no condition tested true. $END $BUILTIN while diff --git a/doc/bash.0 b/doc/bash.0 index 46e777500..0080f894e 100644 --- a/doc/bash.0 +++ b/doc/bash.0 @@ -339,8 +339,10 @@ SSHHEELLLL GGRRAAMMMMAARR When the ==== and !!== operators are used, the string to the right of the operator is considered a pattern and matched according to - the rules described below under PPaatttteerrnn MMaattcchhiinngg. The return - value is 0 if the string matches or does not match the pattern, + the rules described below under PPaatttteerrnn MMaattcchhiinngg. If the shell + option nnooccaasseemmaattcchh is enabled, the match is performed without + regard to the case of alphabetic characters. The return value + is 0 if the string matches or does not match the pattern, respectively, and 1 otherwise. Any part of the pattern may be quoted to force it to be matched as a string. @@ -350,7 +352,7 @@ SSHHEELLLL GGRRAAMMMMAARR sion and matched accordingly (as in _r_e_g_e_x(3)). The return value is 0 if the string matches the pattern, and 1 otherwise. If the regular expression is syntactically incorrect, the conditional - expression's return value is 2. If the shell option nnooccaasseegglloobb + expression's return value is 2. If the shell option nnooccaasseemmaattcchh is enabled, the match is performed without regard to the case of alphabetic characters. Substrings matched by parenthesized subexpressions within the regular expression are saved in the @@ -395,8 +397,8 @@ SSHHEELLLL GGRRAAMMMMAARR value, _l_i_s_t is executed and the arithmetic expression _e_x_p_r_3 is evaluated. If any expression is omitted, it behaves as if it evaluates to 1. The return value is the exit status of the last - command in _l_i_s_t that is executed, or false if any of the - expressions is invalid. + command in _l_i_s_t that is executed, or false if any of the expres- + sions is invalid. sseelleecctt _n_a_m_e [ iinn _w_o_r_d ] ; ddoo _l_i_s_t ; ddoonnee The list of words following iinn is expanded, generating a list of @@ -417,7 +419,9 @@ SSHHEELLLL GGRRAAMMMMAARR ccaassee _w_o_r_d iinn [ [(] _p_a_t_t_e_r_n [ || _p_a_t_t_e_r_n ] ... ) _l_i_s_t ;; ] ... eessaacc A ccaassee command first expands _w_o_r_d, and tries to match it against each _p_a_t_t_e_r_n in turn, using the same matching rules as for path- - name expansion (see PPaatthhnnaammee EExxppaannssiioonn below). When a match is + name expansion (see PPaatthhnnaammee EExxppaannssiioonn below). If the shell + option nnooccaasseemmaattcchh is enabled, the match is performed without + regard to the case of alphabetic characters. When a match is found, the corresponding _l_i_s_t is executed. After the first match, no subsequent matches are attempted. The exit status is zero if no pattern matches. Otherwise, it is the exit status of @@ -594,10 +598,10 @@ PPAARRAAMMEETTEERRSS ** Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, it expands to a sin- gle word with the value of each parameter separated by the first - character of the IIFFSS special variable. That is, "$$**" is equiva- - lent to "$$11_c$$22_c......", where _c is the first character of the value - of the IIFFSS variable. If IIFFSS is unset, the parameters are sepa- - rated by spaces. If IIFFSS is null, the parameters are joined + character of the IIFFSS special variable. That is, "$$**" is + equivalent to "$$11_c$$22_c......", where _c is the first character of the + value of the IIFFSS variable. If IIFFSS is unset, the parameters are + separated by spaces. If IIFFSS is null, the parameters are joined without intervening separators. @@ Expands to the positional parameters, starting from one. When the expansion occurs within double quotes, each parameter @@ -646,159 +650,164 @@ PPAARRAAMMEETTEERRSS of parameters to the current subroutine (shell function or script executed with .. or ssoouurrccee) is at the top of the stack. When a subroutine is executed, the number of parameters passed - is pushed onto BBAASSHH__AARRGGCC. + is pushed onto BBAASSHH__AARRGGCC. The shell sets BBAASSHH__AARRGGCC only when in + extended debugging mode (see the description of the eexxttddeebbuugg + option to the sshhoopptt builtin below) BBAASSHH__AARRGGVV An array variable containing all of the parameters in the cur- rent bash execution call stack. The final parameter of the last subroutine call is at the top of the stack; the first parameter of the initial call is at the bottom. When a subroutine is exe- - cuted, the parameters supplied are pushed onto BBAASSHH__AARRGGVV. + cuted, the parameters supplied are pushed onto BBAASSHH__AARRGGVV. The + shell sets BBAASSHH__AARRGGVV only when in extended debugging mode (see + the description of the eexxttddeebbuugg option to the sshhoopptt builtin + below) BBAASSHH__CCOOMMMMAANNDD - The command currently being executed or about to be executed, + The command currently being executed or about to be executed, unless the shell is executing a command as the result of a trap, - in which case it is the command executing at the time of the + in which case it is the command executing at the time of the trap. BBAASSHH__EEXXEECCUUTTIIOONN__SSTTRRIINNGG The command argument to the --cc invocation option. BBAASSHH__LLIINNEENNOO - An array variable whose members are the line numbers in source - files corresponding to each member of FFUUNNCCNNAAMMEE. - $${{BBAASSHH__LLIINNEENNOO[[_$_i]]}} is the line number in the source file where - $${{FFUUNNCCNNAAMMEE[[_$_i_f_P]]}} _w_a_s _c_a_l_l_e_d_. _T_h_e _c_o_r_r_e_s_p_o_n_d_i_n_g _s_o_u_r_c_e _f_i_l_e - _n_a_m_e _i_s $${{BBAASSHH__SSOOUURRCCEE[[_$_i]]}}.. UUssee LLIINNEENNOO ttoo oobbttaaiinn tthhee ccuurrrreenntt + An array variable whose members are the line numbers in source + files corresponding to each member of FFUUNNCCNNAAMMEE. + $${{BBAASSHH__LLIINNEENNOO[[_$_i]]}} is the line number in the source file where + $${{FFUUNNCCNNAAMMEE[[_$_i_f_P]]}} _w_a_s _c_a_l_l_e_d_. _T_h_e _c_o_r_r_e_s_p_o_n_d_i_n_g _s_o_u_r_c_e _f_i_l_e + _n_a_m_e _i_s $${{BBAASSHH__SSOOUURRCCEE[[_$_i]]}}.. UUssee LLIINNEENNOO ttoo oobbttaaiinn tthhee ccuurrrreenntt lliinnee nnuummbbeerr.. BBAASSHH__RREEMMAATTCCHH - An array variable whose members are assigned by the ==~~ binary - operator to the [[[[ conditional command. The element with index - 0 is the portion of the string matching the entire regular - expression. The element with index _n is the portion of the + An array variable whose members are assigned by the ==~~ binary + operator to the [[[[ conditional command. The element with index + 0 is the portion of the string matching the entire regular + expression. The element with index _n is the portion of the string matching the _nth parenthesized subexpression. This vari- able is read-only. BBAASSHH__SSOOUURRCCEE - An array variable whose members are the source filenames corre- + An array variable whose members are the source filenames corre- sponding to the elements in the FFUUNNCCNNAAMMEE array variable. BBAASSHH__SSUUBBSSHHEELLLL - Incremented by one each time a subshell or subshell environment + Incremented by one each time a subshell or subshell environment is spawned. The initial value is 0. BBAASSHH__VVEERRSSIINNFFOO A readonly array variable whose members hold version information - for this instance of bbaasshh. The values assigned to the array + for this instance of bbaasshh. The values assigned to the array members are as follows: - BBAASSHH__VVEERRSSIINNFFOO[[0]] The major version number (the _r_e_l_e_a_s_e). - BBAASSHH__VVEERRSSIINNFFOO[[1]] The minor version number (the _v_e_r_s_i_o_n). + BBAASSHH__VVEERRSSIINNFFOO[[0]] The major version number (the _r_e_l_e_a_s_e). + BBAASSHH__VVEERRSSIINNFFOO[[1]] The minor version number (the _v_e_r_s_i_o_n). BBAASSHH__VVEERRSSIINNFFOO[[2]] The patch level. BBAASSHH__VVEERRSSIINNFFOO[[3]] The build version. BBAASSHH__VVEERRSSIINNFFOO[[4]] The release status (e.g., _b_e_t_a_1). BBAASSHH__VVEERRSSIINNFFOO[[5]] The value of MMAACCHHTTYYPPEE. BBAASSHH__VVEERRSSIIOONN - Expands to a string describing the version of this instance of + Expands to a string describing the version of this instance of bbaasshh. CCOOMMPP__CCWWOORRDD - An index into $${{CCOOMMPP__WWOORRDDSS}} of the word containing the current + An index into $${{CCOOMMPP__WWOORRDDSS}} of the word containing the current cursor position. This variable is available only in shell func- - tions invoked by the programmable completion facilities (see + tions invoked by the programmable completion facilities (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn below). CCOOMMPP__LLIINNEE - The current command line. This variable is available only in - shell functions and external commands invoked by the pro- - grammable completion facilities (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn + The current command line. This variable is available only in + shell functions and external commands invoked by the pro- + grammable completion facilities (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn below). CCOOMMPP__PPOOIINNTT - The index of the current cursor position relative to the begin- - ning of the current command. If the current cursor position is + The index of the current cursor position relative to the begin- + ning of the current command. If the current cursor position is at the end of the current command, the value of this variable is - equal to $${{##CCOOMMPP__LLIINNEE}}. This variable is available only in - shell functions and external commands invoked by the pro- - grammable completion facilities (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn + equal to $${{##CCOOMMPP__LLIINNEE}}. This variable is available only in + shell functions and external commands invoked by the pro- + grammable completion facilities (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn below). CCOOMMPP__WWOORRDDBBRREEAAKKSS - The set of characters that the Readline library treats as word - separators when performing word completion. If CCOOMMPP__WWOORRDDBBRREEAAKKSS - is unset, it loses its special properties, even if it is subse- + The set of characters that the Readline library treats as word + separators when performing word completion. If CCOOMMPP__WWOORRDDBBRREEAAKKSS + is unset, it loses its special properties, even if it is subse- quently reset. CCOOMMPP__WWOORRDDSS - An array variable (see AArrrraayyss below) consisting of the individ- - ual words in the current command line. This variable is avail- - able only in shell functions invoked by the programmable comple- - tion facilities (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn below). + An array variable (see AArrrraayyss below) consisting of the individ- + ual words in the current command line. This variable is avail- + able only in shell functions invoked by the programmable + completion facilities (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn below). DDIIRRSSTTAACCKK An array variable (see AArrrraayyss below) containing the current con- - tents of the directory stack. Directories appear in the stack - in the order they are displayed by the ddiirrss builtin. Assigning + tents of the directory stack. Directories appear in the stack + in the order they are displayed by the ddiirrss builtin. Assigning to members of this array variable may be used to modify directo- - ries already in the stack, but the ppuusshhdd and ppooppdd builtins must - be used to add and remove directories. Assignment to this - variable will not change the current directory. If DDIIRRSSTTAACCKK is - unset, it loses its special properties, even if it is subse- + ries already in the stack, but the ppuusshhdd and ppooppdd builtins must + be used to add and remove directories. Assignment to this vari- + able will not change the current directory. If DDIIRRSSTTAACCKK is + unset, it loses its special properties, even if it is subse- quently reset. - EEUUIIDD Expands to the effective user ID of the current user, initial- + EEUUIIDD Expands to the effective user ID of the current user, initial- ized at shell startup. This variable is readonly. FFUUNNCCNNAAMMEE - An array variable containing the names of all shell functions + An array variable containing the names of all shell functions currently in the execution call stack. The element with index 0 is the name of any currently-executing shell function. The bot- - tom-most element is "main". This variable exists only when a - shell function is executing. Assignments to FFUUNNCCNNAAMMEE have no - effect and return an error status. If FFUUNNCCNNAAMMEE is unset, it - loses its special properties, even if it is subsequently reset. - - GGRROOUUPPSS An array variable containing the list of groups of which the - current user is a member. Assignments to GGRROOUUPPSS have no effect - and return an error status. If GGRROOUUPPSS is unset, it loses its + tom-most element is "main". This variable exists only when a + shell function is executing. Assignments to FFUUNNCCNNAAMMEE have no + effect and return an error status. If FFUUNNCCNNAAMMEE is unset, it + loses its special properties, even if it is subsequently reset. + + GGRROOUUPPSS An array variable containing the list of groups of which the + current user is a member. Assignments to GGRROOUUPPSS have no effect + and return an error status. If GGRROOUUPPSS is unset, it loses its special properties, even if it is subsequently reset. HHIISSTTCCMMDD The history number, or index in the history list, of the current - command. If HHIISSTTCCMMDD is unset, it loses its special properties, + command. If HHIISSTTCCMMDD is unset, it loses its special properties, even if it is subsequently reset. HHOOSSTTNNAAMMEE Automatically set to the name of the current host. HHOOSSTTTTYYPPEE - Automatically set to a string that uniquely describes the type - of machine on which bbaasshh is executing. The default is system- + Automatically set to a string that uniquely describes the type + of machine on which bbaasshh is executing. The default is system- dependent. - LLIINNEENNOO Each time this parameter is referenced, the shell substitutes a - decimal number representing the current sequential line number - (starting with 1) within a script or function. When not in a - script or function, the value substituted is not guaranteed to + LLIINNEENNOO Each time this parameter is referenced, the shell substitutes a + decimal number representing the current sequential line number + (starting with 1) within a script or function. When not in a + script or function, the value substituted is not guaranteed to be meaningful. If LLIINNEENNOO is unset, it loses its special proper- ties, even if it is subsequently reset. MMAACCHHTTYYPPEE - Automatically set to a string that fully describes the system - type on which bbaasshh is executing, in the standard GNU _c_p_u_-_c_o_m_- + Automatically set to a string that fully describes the system + type on which bbaasshh is executing, in the standard GNU _c_p_u_-_c_o_m_- _p_a_n_y_-_s_y_s_t_e_m format. The default is system-dependent. OOLLDDPPWWDD The previous working directory as set by the ccdd command. - OOPPTTAARRGG The value of the last option argument processed by the ggeettooppttss + OOPPTTAARRGG The value of the last option argument processed by the ggeettooppttss builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). - OOPPTTIINNDD The index of the next argument to be processed by the ggeettooppttss + OOPPTTIINNDD The index of the next argument to be processed by the ggeettooppttss builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). - OOSSTTYYPPEE Automatically set to a string that describes the operating sys- - tem on which bbaasshh is executing. The default is system-depen- + OOSSTTYYPPEE Automatically set to a string that describes the operating sys- + tem on which bbaasshh is executing. The default is system-depen- dent. PPIIPPEESSTTAATTUUSS - An array variable (see AArrrraayyss below) containing a list of exit - status values from the processes in the most-recently-executed + An array variable (see AArrrraayyss below) containing a list of exit + status values from the processes in the most-recently-executed foreground pipeline (which may contain only a single command). - PPPPIIDD The process ID of the shell's parent. This variable is read- + PPPPIIDD The process ID of the shell's parent. This variable is read- only. PPWWDD The current working directory as set by the ccdd command. @@ -806,27 +815,27 @@ PPAARRAAMMEETTEERRSS RRAANNDDOOMM Each time this parameter is referenced, a random integer between 0 and 32767 is generated. The sequence of random numbers may be initialized by assigning a value to RRAANNDDOOMM. If RRAANNDDOOMM is unset, - it loses its special properties, even if it is subsequently + it loses its special properties, even if it is subsequently reset. - RREEPPLLYY Set to the line of input read by the rreeaadd builtin command when + RREEPPLLYY Set to the line of input read by the rreeaadd builtin command when no arguments are supplied. SSEECCOONNDDSS - Each time this parameter is referenced, the number of seconds - since shell invocation is returned. If a value is assigned to - SSEECCOONNDDSS, the value returned upon subsequent references is the - number of seconds since the assignment plus the value assigned. + Each time this parameter is referenced, the number of seconds + since shell invocation is returned. If a value is assigned to + SSEECCOONNDDSS, the value returned upon subsequent references is the + number of seconds since the assignment plus the value assigned. If SSEECCOONNDDSS is unset, it loses its special properties, even if it is subsequently reset. SSHHEELLLLOOPPTTSS - A colon-separated list of enabled shell options. Each word in - the list is a valid argument for the --oo option to the sseett + A colon-separated list of enabled shell options. Each word in + the list is a valid argument for the --oo option to the sseett builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). The options - appearing in SSHHEELLLLOOPPTTSS are those reported as _o_n by sseett --oo. If - this variable is in the environment when bbaasshh starts up, each - shell option in the list will be enabled before reading any + appearing in SSHHEELLLLOOPPTTSS are those reported as _o_n by sseett --oo. If + this variable is in the environment when bbaasshh starts up, each + shell option in the list will be enabled before reading any startup files. This variable is read-only. SSHHLLVVLL Incremented by one each time an instance of bbaasshh is started. @@ -834,202 +843,202 @@ PPAARRAAMMEETTEERRSS UUIIDD Expands to the user ID of the current user, initialized at shell startup. This variable is readonly. - The following variables are used by the shell. In some cases, bbaasshh + The following variables are used by the shell. In some cases, bbaasshh assigns a default value to a variable; these cases are noted below. BBAASSHH__EENNVV - If this parameter is set when bbaasshh is executing a shell script, - its value is interpreted as a filename containing commands to + If this parameter is set when bbaasshh is executing a shell script, + its value is interpreted as a filename containing commands to initialize the shell, as in _~_/_._b_a_s_h_r_c. The value of BBAASSHH__EENNVV is - subjected to parameter expansion, command substitution, and - arithmetic expansion before being interpreted as a file name. + subjected to parameter expansion, command substitution, and + arithmetic expansion before being interpreted as a file name. PPAATTHH is not used to search for the resultant file name. - CCDDPPAATTHH The search path for the ccdd command. This is a colon-separated - list of directories in which the shell looks for destination - directories specified by the ccdd command. A sample value is + CCDDPPAATTHH The search path for the ccdd command. This is a colon-separated + list of directories in which the shell looks for destination + directories specified by the ccdd command. A sample value is ".:~:/usr". CCOOLLUUMMNNSS - Used by the sseelleecctt builtin command to determine the terminal - width when printing selection lists. Automatically set upon + Used by the sseelleecctt builtin command to determine the terminal + width when printing selection lists. Automatically set upon receipt of a SIGWINCH. CCOOMMPPRREEPPLLYY An array variable from which bbaasshh reads the possible completions - generated by a shell function invoked by the programmable com- + generated by a shell function invoked by the programmable com- pletion facility (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn below). - EEMMAACCSS If bbaasshh finds this variable in the environment when the shell - starts with value "t", it assumes that the shell is running in + EEMMAACCSS If bbaasshh finds this variable in the environment when the shell + starts with value "t", it assumes that the shell is running in an emacs shell buffer and disables line editing. FFCCEEDDIITT The default editor for the ffcc builtin command. FFIIGGNNOORREE - A colon-separated list of suffixes to ignore when performing + A colon-separated list of suffixes to ignore when performing filename completion (see RREEAADDLLIINNEE below). A filename whose suf- - fix matches one of the entries in FFIIGGNNOORREE is excluded from the + fix matches one of the entries in FFIIGGNNOORREE is excluded from the list of matched filenames. A sample value is ".o:~". GGLLOOBBIIGGNNOORREE A colon-separated list of patterns defining the set of filenames to be ignored by pathname expansion. If a filename matched by a - pathname expansion pattern also matches one of the patterns in + pathname expansion pattern also matches one of the patterns in GGLLOOBBIIGGNNOORREE, it is removed from the list of matches. HHIISSTTCCOONNTTRROOLL - A colon-separated list of values controlling how commands are - saved on the history list. If the list of values includes - _i_g_n_o_r_e_s_p_a_c_e, lines which begin with a ssppaaccee character are not - saved in the history list. A value of _i_g_n_o_r_e_d_u_p_s causes lines + A colon-separated list of values controlling how commands are + saved on the history list. If the list of values includes + _i_g_n_o_r_e_s_p_a_c_e, lines which begin with a ssppaaccee character are not + saved in the history list. A value of _i_g_n_o_r_e_d_u_p_s causes lines matching the previous history entry to not be saved. A value of _i_g_n_o_r_e_b_o_t_h is shorthand for _i_g_n_o_r_e_s_p_a_c_e and _i_g_n_o_r_e_d_u_p_s. A value of _e_r_a_s_e_d_u_p_s causes all previous lines matching the current line - to be removed from the history list before that line is saved. - Any value not in the above list is ignored. If HHIISSTTCCOONNTTRROOLL is - unset, or does not include a valid value, all lines read by the + to be removed from the history list before that line is saved. + Any value not in the above list is ignored. If HHIISSTTCCOONNTTRROOLL is + unset, or does not include a valid value, all lines read by the shell parser are saved on the history list, subject to the value - of HHIISSTTIIGGNNOORREE. The second and subsequent lines of a multi-line - compound command are not tested, and are added to the history + of HHIISSTTIIGGNNOORREE. The second and subsequent lines of a multi-line + compound command are not tested, and are added to the history regardless of the value of HHIISSTTCCOONNTTRROOLL. HHIISSTTFFIILLEE The name of the file in which command history is saved (see HHIISS-- - TTOORRYY below). The default value is _~_/_._b_a_s_h___h_i_s_t_o_r_y. If unset, - the command history is not saved when an interactive shell + TTOORRYY below). The default value is _~_/_._b_a_s_h___h_i_s_t_o_r_y. If unset, + the command history is not saved when an interactive shell exits. HHIISSTTFFIILLEESSIIZZEE The maximum number of lines contained in the history file. When - this variable is assigned a value, the history file is trun- - cated, if necessary, to contain no more than that number of - lines. The default value is 500. The history file is also - truncated to this size after writing it when an interactive + this variable is assigned a value, the history file is trun- + cated, if necessary, to contain no more than that number of + lines. The default value is 500. The history file is also + truncated to this size after writing it when an interactive shell exits. HHIISSTTIIGGNNOORREE - A colon-separated list of patterns used to decide which command - lines should be saved on the history list. Each pattern is - anchored at the beginning of the line and must match the com- - plete line (no implicit `**' is appended). Each pattern is - tested against the line after the checks specified by HHIISSTTCCOONN-- - TTRROOLL are applied. In addition to the normal shell pattern + A colon-separated list of patterns used to decide which command + lines should be saved on the history list. Each pattern is + anchored at the beginning of the line and must match the com- + plete line (no implicit `**' is appended). Each pattern is + tested against the line after the checks specified by HHIISSTTCCOONN-- + TTRROOLL are applied. In addition to the normal shell pattern matching characters, `&&' matches the previous history line. `&&' - may be escaped using a backslash; the backslash is removed + may be escaped using a backslash; the backslash is removed before attempting a match. The second and subsequent lines of a multi-line compound command are not tested, and are added to the history regardless of the value of HHIISSTTIIGGNNOORREE. HHIISSTTSSIIZZEE - The number of commands to remember in the command history (see + The number of commands to remember in the command history (see HHIISSTTOORRYY below). The default value is 500. HHIISSTTTTIIMMEEFFOORRMMAATT - If this variable is set and not null, its value is used as a + If this variable is set and not null, its value is used as a format string for _s_t_r_f_t_i_m_e(3) to print the time stamp associated - with each history entry displayed by the hhiissttoorryy builtin. If - this variable is set, time stamps are written to the history + with each history entry displayed by the hhiissttoorryy builtin. If + this variable is set, time stamps are written to the history file so they may be preserved across shell sessions. HHOOMMEE The home directory of the current user; the default argument for the ccdd builtin command. The value of this variable is also used when performing tilde expansion. HHOOSSTTFFIILLEE - Contains the name of a file in the same format as _/_e_t_c_/_h_o_s_t_s + Contains the name of a file in the same format as _/_e_t_c_/_h_o_s_t_s that should be read when the shell needs to complete a hostname. - The list of possible hostname completions may be changed while - the shell is running; the next time hostname completion is - attempted after the value is changed, bbaasshh adds the contents of - the new file to the existing list. If HHOOSSTTFFIILLEE is set, but has + The list of possible hostname completions may be changed while + the shell is running; the next time hostname completion is + attempted after the value is changed, bbaasshh adds the contents of + the new file to the existing list. If HHOOSSTTFFIILLEE is set, but has no value, bbaasshh attempts to read _/_e_t_c_/_h_o_s_t_s to obtain the list of - possible hostname completions. When HHOOSSTTFFIILLEE is unset, the + possible hostname completions. When HHOOSSTTFFIILLEE is unset, the hostname list is cleared. - IIFFSS The _I_n_t_e_r_n_a_l _F_i_e_l_d _S_e_p_a_r_a_t_o_r that is used for word splitting - after expansion and to split lines into words with the rreeaadd + IIFFSS The _I_n_t_e_r_n_a_l _F_i_e_l_d _S_e_p_a_r_a_t_o_r that is used for word splitting + after expansion and to split lines into words with the rreeaadd builtin command. The default value is ``''. IIGGNNOORREEEEOOFF Controls the action of an interactive shell on receipt of an EEOOFF character as the sole input. If set, the value is the number of - consecutive EEOOFF characters which must be typed as the first - characters on an input line before bbaasshh exits. If the variable - exists but does not have a numeric value, or has no value, the - default value is 10. If it does not exist, EEOOFF signifies the + consecutive EEOOFF characters which must be typed as the first + characters on an input line before bbaasshh exits. If the variable + exists but does not have a numeric value, or has no value, the + default value is 10. If it does not exist, EEOOFF signifies the end of input to the shell. IINNPPUUTTRRCC - The filename for the rreeaaddlliinnee startup file, overriding the + The filename for the rreeaaddlliinnee startup file, overriding the default of _~_/_._i_n_p_u_t_r_c (see RREEAADDLLIINNEE below). - LLAANNGG Used to determine the locale category for any category not + LLAANNGG Used to determine the locale category for any category not specifically selected with a variable starting with LLCC__. - LLCC__AALLLL This variable overrides the value of LLAANNGG and any other LLCC__ + LLCC__AALLLL This variable overrides the value of LLAANNGG and any other LLCC__ variable specifying a locale category. LLCC__CCOOLLLLAATTEE - This variable determines the collation order used when sorting - the results of pathname expansion, and determines the behavior - of range expressions, equivalence classes, and collating + This variable determines the collation order used when sorting + the results of pathname expansion, and determines the behavior + of range expressions, equivalence classes, and collating sequences within pathname expansion and pattern matching. LLCC__CCTTYYPPEE - This variable determines the interpretation of characters and - the behavior of character classes within pathname expansion and + This variable determines the interpretation of characters and + the behavior of character classes within pathname expansion and pattern matching. LLCC__MMEESSSSAAGGEESS - This variable determines the locale used to translate double- + This variable determines the locale used to translate double- quoted strings preceded by a $$. LLCC__NNUUMMEERRIICC - This variable determines the locale category used for number + This variable determines the locale category used for number formatting. - LLIINNEESS Used by the sseelleecctt builtin command to determine the column - length for printing selection lists. Automatically set upon + LLIINNEESS Used by the sseelleecctt builtin command to determine the column + length for printing selection lists. Automatically set upon receipt of a SIGWINCH. - MMAAIILL If this parameter is set to a file name and the MMAAIILLPPAATTHH vari- + MMAAIILL If this parameter is set to a file name and the MMAAIILLPPAATTHH vari- able is not set, bbaasshh informs the user of the arrival of mail in the specified file. MMAAIILLCCHHEECCKK - Specifies how often (in seconds) bbaasshh checks for mail. The - default is 60 seconds. When it is time to check for mail, the - shell does so before displaying the primary prompt. If this - variable is unset, or set to a value that is not a number + Specifies how often (in seconds) bbaasshh checks for mail. The + default is 60 seconds. When it is time to check for mail, the + shell does so before displaying the primary prompt. If this + variable is unset, or set to a value that is not a number greater than or equal to zero, the shell disables mail checking. MMAAIILLPPAATTHH - A colon-separated list of file names to be checked for mail. + A colon-separated list of file names to be checked for mail. The message to be printed when mail arrives in a particular file - may be specified by separating the file name from the message + may be specified by separating the file name from the message with a `?'. When used in the text of the message, $$__ expands to the name of the current mailfile. Example: MMAAIILLPPAATTHH='/var/mail/bfox?"You have mail":~/shell-mail?"$_ has mail!"' - BBaasshh supplies a default value for this variable, but the loca- - tion of the user mail files that it uses is system dependent + BBaasshh supplies a default value for this variable, but the loca- + tion of the user mail files that it uses is system dependent (e.g., /var/mail/$$UUSSEERR). OOPPTTEERRRR If set to the value 1, bbaasshh displays error messages generated by - the ggeettooppttss builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). - OOPPTTEERRRR is initialized to 1 each time the shell is invoked or a + the ggeettooppttss builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). + OOPPTTEERRRR is initialized to 1 each time the shell is invoked or a shell script is executed. - PPAATTHH The search path for commands. It is a colon-separated list of - directories in which the shell looks for commands (see CCOOMMMMAANNDD - EEXXEECCUUTTIIOONN below). A zero-length (null) directory name in the + PPAATTHH The search path for commands. It is a colon-separated list of + directories in which the shell looks for commands (see CCOOMMMMAANNDD + EEXXEECCUUTTIIOONN below). A zero-length (null) directory name in the value of PPAATTHH indicates the current directory. A null directory - name may appear as two adjacent colons, or as an initial or - trailing colon. The default path is system-dependent, and is - set by the administrator who installs bbaasshh. A common value is + name may appear as two adjacent colons, or as an initial or + trailing colon. The default path is system-dependent, and is + set by the administrator who installs bbaasshh. A common value is ``/usr/gnu/bin:/usr/local/bin:/usr/ucb:/bin:/usr/bin''. PPOOSSIIXXLLYY__CCOORRRREECCTT - If this variable is in the environment when bbaasshh starts, the - shell enters _p_o_s_i_x _m_o_d_e before reading the startup files, as if - the ----ppoossiixx invocation option had been supplied. If it is set - while the shell is running, bbaasshh enables _p_o_s_i_x _m_o_d_e, as if the + If this variable is in the environment when bbaasshh starts, the + shell enters _p_o_s_i_x _m_o_d_e before reading the startup files, as if + the ----ppoossiixx invocation option had been supplied. If it is set + while the shell is running, bbaasshh enables _p_o_s_i_x _m_o_d_e, as if the command _s_e_t _-_o _p_o_s_i_x had been executed. PPRROOMMPPTT__CCOOMMMMAANNDD If set, the value is executed as a command prior to issuing each primary prompt. - PPSS11 The value of this parameter is expanded (see PPRROOMMPPTTIINNGG below) - and used as the primary prompt string. The default value is + PPSS11 The value of this parameter is expanded (see PPRROOMMPPTTIINNGG below) + and used as the primary prompt string. The default value is ``\\ss--\\vv\\$$ ''. - PPSS22 The value of this parameter is expanded as with PPSS11 and used as + PPSS22 The value of this parameter is expanded as with PPSS11 and used as the secondary prompt string. The default is ``>> ''. PPSS33 The value of this parameter is used as the prompt for the sseelleecctt command (see SSHHEELLLL GGRRAAMMMMAARR above). - PPSS44 The value of this parameter is expanded as with PPSS11 and the - value is printed before each command bbaasshh displays during an - execution trace. The first character of PPSS44 is replicated mul- - tiple times, as necessary, to indicate multiple levels of indi- + PPSS44 The value of this parameter is expanded as with PPSS11 and the + value is printed before each command bbaasshh displays during an + execution trace. The first character of PPSS44 is replicated mul- + tiple times, as necessary, to indicate multiple levels of indi- rection. The default is ``++ ''. SSHHEELLLL The full pathname to the shell is kept in this environment vari- - able. If it is not set when the shell starts, bbaasshh assigns to + able. If it is not set when the shell starts, bbaasshh assigns to it the full pathname of the current user's login shell. TTIIMMEEFFOORRMMAATT - The value of this parameter is used as a format string specify- - ing how the timing information for pipelines prefixed with the - ttiimmee reserved word should be displayed. The %% character intro- - duces an escape sequence that is expanded to a time value or - other information. The escape sequences and their meanings are + The value of this parameter is used as a format string specify- + ing how the timing information for pipelines prefixed with the + ttiimmee reserved word should be displayed. The %% character intro- + duces an escape sequence that is expanded to a time value or + other information. The escape sequences and their meanings are as follows; the braces denote optional portions. %%%% A literal %%. %%[[_p]][[ll]]RR The elapsed time in seconds. @@ -1037,165 +1046,165 @@ PPAARRAAMMEETTEERRSS %%[[_p]][[ll]]SS The number of CPU seconds spent in system mode. %%PP The CPU percentage, computed as (%U + %S) / %R. - The optional _p is a digit specifying the _p_r_e_c_i_s_i_o_n, the number + The optional _p is a digit specifying the _p_r_e_c_i_s_i_o_n, the number of fractional digits after a decimal point. A value of 0 causes no decimal point or fraction to be output. At most three places - after the decimal point may be specified; values of _p greater - than 3 are changed to 3. If _p is not specified, the value 3 is + after the decimal point may be specified; values of _p greater + than 3 are changed to 3. If _p is not specified, the value 3 is used. - The optional ll specifies a longer format, including minutes, of - the form _M_Mm_S_S._F_Fs. The value of _p determines whether or not + The optional ll specifies a longer format, including minutes, of + the form _M_Mm_S_S._F_Fs. The value of _p determines whether or not the fraction is included. - If this variable is not set, bbaasshh acts as if it had the value - $$''\\nnrreeaall\\tt%%33llRR\\nnuusseerr\\tt%%33llUU\\nnssyyss%%33llSS''. If the value is null, no - timing information is displayed. A trailing newline is added + If this variable is not set, bbaasshh acts as if it had the value + $$''\\nnrreeaall\\tt%%33llRR\\nnuusseerr\\tt%%33llUU\\nnssyyss%%33llSS''. If the value is null, no + timing information is displayed. A trailing newline is added when the format string is displayed. - TTMMOOUUTT If set to a value greater than zero, TTMMOOUUTT is treated as the + TTMMOOUUTT If set to a value greater than zero, TTMMOOUUTT is treated as the default timeout for the rreeaadd builtin. The sseelleecctt command termi- nates if input does not arrive after TTMMOOUUTT seconds when input is - coming from a terminal. In an interactive shell, the value is - interpreted as the number of seconds to wait for input after - issuing the primary prompt. BBaasshh terminates after waiting for + coming from a terminal. In an interactive shell, the value is + interpreted as the number of seconds to wait for input after + issuing the primary prompt. BBaasshh terminates after waiting for that number of seconds if input does not arrive. aauuttoo__rreessuummee This variable controls how the shell interacts with the user and - job control. If this variable is set, single word simple com- + job control. If this variable is set, single word simple com- mands without redirections are treated as candidates for resump- tion of an existing stopped job. There is no ambiguity allowed; - if there is more than one job beginning with the string typed, - the job most recently accessed is selected. The _n_a_m_e of a - stopped job, in this context, is the command line used to start - it. If set to the value _e_x_a_c_t, the string supplied must match - the name of a stopped job exactly; if set to _s_u_b_s_t_r_i_n_g, the - string supplied needs to match a substring of the name of a - stopped job. The _s_u_b_s_t_r_i_n_g value provides functionality analo- - gous to the %%?? job identifier (see JJOOBB CCOONNTTRROOLL below). If set - to any other value, the supplied string must be a prefix of a + if there is more than one job beginning with the string typed, + the job most recently accessed is selected. The _n_a_m_e of a + stopped job, in this context, is the command line used to start + it. If set to the value _e_x_a_c_t, the string supplied must match + the name of a stopped job exactly; if set to _s_u_b_s_t_r_i_n_g, the + string supplied needs to match a substring of the name of a + stopped job. The _s_u_b_s_t_r_i_n_g value provides functionality analo- + gous to the %%?? job identifier (see JJOOBB CCOONNTTRROOLL below). If set + to any other value, the supplied string must be a prefix of a stopped job's name; this provides functionality analogous to the %%_s_t_r_i_n_g job identifier. hhiissttcchhaarrss - The two or three characters which control history expansion and + The two or three characters which control history expansion and tokenization (see HHIISSTTOORRYY EEXXPPAANNSSIIOONN below). The first character - is the _h_i_s_t_o_r_y _e_x_p_a_n_s_i_o_n character, the character which signals - the start of a history expansion, normally `!!'. The second - character is the _q_u_i_c_k _s_u_b_s_t_i_t_u_t_i_o_n character, which is used as - shorthand for re-running the previous command entered, - substituting one string for another in the command. The default - is `^^'. The optional third character is the character which - indicates that the remainder of the line is a comment when found - as the first character of a word, normally `##'. The history - comment character causes history substitution to be skipped for - the remaining words on the line. It does not necessarily cause - the shell parser to treat the rest of the line as a comment. + is the _h_i_s_t_o_r_y _e_x_p_a_n_s_i_o_n character, the character which signals + the start of a history expansion, normally `!!'. The second + character is the _q_u_i_c_k _s_u_b_s_t_i_t_u_t_i_o_n character, which is used as + shorthand for re-running the previous command entered, substi- + tuting one string for another in the command. The default is + `^^'. The optional third character is the character which indi- + cates that the remainder of the line is a comment when found as + the first character of a word, normally `##'. The history com- + ment character causes history substitution to be skipped for the + remaining words on the line. It does not necessarily cause the + shell parser to treat the rest of the line as a comment. AArrrraayyss - BBaasshh provides one-dimensional array variables. Any variable may be + BBaasshh provides one-dimensional array variables. Any variable may be used as an array; the ddeeccllaarree builtin will explicitly declare an array. - There is no maximum limit on the size of an array, nor any requirement - that members be indexed or assigned contiguously. Arrays are indexed + There is no maximum limit on the size of an array, nor any requirement + that members be indexed or assigned contiguously. Arrays are indexed using integers and are zero-based. - An array is created automatically if any variable is assigned to using - the syntax _n_a_m_e[_s_u_b_s_c_r_i_p_t]=_v_a_l_u_e. The _s_u_b_s_c_r_i_p_t is treated as an - arithmetic expression that must evaluate to a number greater than or - equal to zero. To explicitly declare an array, use ddeeccllaarree --aa _n_a_m_e + An array is created automatically if any variable is assigned to using + the syntax _n_a_m_e[_s_u_b_s_c_r_i_p_t]=_v_a_l_u_e. The _s_u_b_s_c_r_i_p_t is treated as an + arithmetic expression that must evaluate to a number greater than or + equal to zero. To explicitly declare an array, use ddeeccllaarree --aa _n_a_m_e (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). ddeeccllaarree --aa _n_a_m_e[[_s_u_b_s_c_r_i_p_t]] is also accepted; the _s_u_b_s_c_r_i_p_t is ignored. Attributes may be specified for an array variable using the ddeeccllaarree and rreeaaddoonnllyy builtins. Each attribute applies to all members of an array. - Arrays are assigned to using compound assignments of the form - _n_a_m_e=((value_1 ... value_n)), where each _v_a_l_u_e is of the form [_s_u_b_- + Arrays are assigned to using compound assignments of the form + _n_a_m_e=((value_1 ... value_n)), where each _v_a_l_u_e is of the form [_s_u_b_- _s_c_r_i_p_t]=_s_t_r_i_n_g. Only _s_t_r_i_n_g is required. If the optional brackets and - subscript are supplied, that index is assigned to; otherwise the index - of the element assigned is the last index assigned to by the statement - plus one. Indexing starts at zero. This syntax is also accepted by - the ddeeccllaarree builtin. Individual array elements may be assigned to + subscript are supplied, that index is assigned to; otherwise the index + of the element assigned is the last index assigned to by the statement + plus one. Indexing starts at zero. This syntax is also accepted by + the ddeeccllaarree builtin. Individual array elements may be assigned to using the _n_a_m_e[_s_u_b_s_c_r_i_p_t]=_v_a_l_u_e syntax introduced above. - Any element of an array may be referenced using ${_n_a_m_e[_s_u_b_s_c_r_i_p_t]}. + Any element of an array may be referenced using ${_n_a_m_e[_s_u_b_s_c_r_i_p_t]}. The braces are required to avoid conflicts with pathname expansion. If - _s_u_b_s_c_r_i_p_t is @@ or **, the word expands to all members of _n_a_m_e. These - subscripts differ only when the word appears within double quotes. If + _s_u_b_s_c_r_i_p_t is @@ or **, the word expands to all members of _n_a_m_e. These + subscripts differ only when the word appears within double quotes. If the word is double-quoted, ${_n_a_m_e[*]} expands to a single word with the - value of each array member separated by the first character of the IIFFSS + value of each array member separated by the first character of the IIFFSS special variable, and ${_n_a_m_e[@]} expands each element of _n_a_m_e to a sep- - arate word. When there are no array members, ${_n_a_m_e[@]} expands to - nothing. If the double-quoted expansion occurs within a word, the - expansion of the first parameter is joined with the beginning part of - the original word, and the expansion of the last parameter is joined - with the last part of the original word. This is analogous to the - expansion of the special parameters ** and @@ (see SSppeecciiaall PPaarraammeetteerrss - above). ${#_n_a_m_e[_s_u_b_s_c_r_i_p_t]} expands to the length of ${_n_a_m_e[_s_u_b_- - _s_c_r_i_p_t]}. If _s_u_b_s_c_r_i_p_t is ** or @@, the expansion is the number of ele- - ments in the array. Referencing an array variable without a subscript + arate word. When there are no array members, ${_n_a_m_e[@]} expands to + nothing. If the double-quoted expansion occurs within a word, the + expansion of the first parameter is joined with the beginning part of + the original word, and the expansion of the last parameter is joined + with the last part of the original word. This is analogous to the + expansion of the special parameters ** and @@ (see SSppeecciiaall PPaarraammeetteerrss + above). ${#_n_a_m_e[_s_u_b_s_c_r_i_p_t]} expands to the length of ${_n_a_m_e[_s_u_b_- + _s_c_r_i_p_t]}. If _s_u_b_s_c_r_i_p_t is ** or @@, the expansion is the number of ele- + ments in the array. Referencing an array variable without a subscript is equivalent to referencing element zero. - The uunnsseett builtin is used to destroy arrays. uunnsseett _n_a_m_e[_s_u_b_s_c_r_i_p_t] - destroys the array element at index _s_u_b_s_c_r_i_p_t. uunnsseett _n_a_m_e, where _n_a_m_e - is an array, or uunnsseett _n_a_m_e[_s_u_b_s_c_r_i_p_t], where _s_u_b_s_c_r_i_p_t is ** or @@, + The uunnsseett builtin is used to destroy arrays. uunnsseett _n_a_m_e[_s_u_b_s_c_r_i_p_t] + destroys the array element at index _s_u_b_s_c_r_i_p_t. uunnsseett _n_a_m_e, where _n_a_m_e + is an array, or uunnsseett _n_a_m_e[_s_u_b_s_c_r_i_p_t], where _s_u_b_s_c_r_i_p_t is ** or @@, removes the entire array. - The ddeeccllaarree, llooccaall, and rreeaaddoonnllyy builtins each accept a --aa option to - specify an array. The rreeaadd builtin accepts a --aa option to assign a - list of words read from the standard input to an array. The sseett and - ddeeccllaarree builtins display array values in a way that allows them to be + The ddeeccllaarree, llooccaall, and rreeaaddoonnllyy builtins each accept a --aa option to + specify an array. The rreeaadd builtin accepts a --aa option to assign a + list of words read from the standard input to an array. The sseett and + ddeeccllaarree builtins display array values in a way that allows them to be reused as assignments. EEXXPPAANNSSIIOONN Expansion is performed on the command line after it has been split into - words. There are seven kinds of expansion performed: _b_r_a_c_e _e_x_p_a_n_s_i_o_n, - _t_i_l_d_e _e_x_p_a_n_s_i_o_n, _p_a_r_a_m_e_t_e_r _a_n_d _v_a_r_i_a_b_l_e _e_x_p_a_n_s_i_o_n, _c_o_m_m_a_n_d _s_u_b_s_t_i_t_u_- + words. There are seven kinds of expansion performed: _b_r_a_c_e _e_x_p_a_n_s_i_o_n, + _t_i_l_d_e _e_x_p_a_n_s_i_o_n, _p_a_r_a_m_e_t_e_r _a_n_d _v_a_r_i_a_b_l_e _e_x_p_a_n_s_i_o_n, _c_o_m_m_a_n_d _s_u_b_s_t_i_t_u_- _t_i_o_n, _a_r_i_t_h_m_e_t_i_c _e_x_p_a_n_s_i_o_n, _w_o_r_d _s_p_l_i_t_t_i_n_g, and _p_a_t_h_n_a_m_e _e_x_p_a_n_s_i_o_n. - The order of expansions is: brace expansion, tilde expansion, parame- - ter, variable and arithmetic expansion and command substitution (done + The order of expansions is: brace expansion, tilde expansion, parame- + ter, variable and arithmetic expansion and command substitution (done in a left-to-right fashion), word splitting, and pathname expansion. On systems that can support it, there is an additional expansion avail- able: _p_r_o_c_e_s_s _s_u_b_s_t_i_t_u_t_i_o_n. Only brace expansion, word splitting, and pathname expansion can change - the number of words of the expansion; other expansions expand a single - word to a single word. The only exceptions to this are the expansions + the number of words of the expansion; other expansions expand a single + word to a single word. The only exceptions to this are the expansions of "$$@@" and "$${{_n_a_m_e[[@@]]}}" as explained above (see PPAARRAAMMEETTEERRSS). BBrraaccee EExxppaannssiioonn _B_r_a_c_e _e_x_p_a_n_s_i_o_n is a mechanism by which arbitrary strings may be gener- - ated. This mechanism is similar to _p_a_t_h_n_a_m_e _e_x_p_a_n_s_i_o_n, but the file- + ated. This mechanism is similar to _p_a_t_h_n_a_m_e _e_x_p_a_n_s_i_o_n, but the file- names generated need not exist. Patterns to be brace expanded take the form of an optional _p_r_e_a_m_b_l_e, followed by either a series of comma-sep- - arated strings or a sequence expression between a pair of braces, fol- - lowed by an optional _p_o_s_t_s_c_r_i_p_t. The preamble is prefixed to each + arated strings or a sequence expression between a pair of braces, fol- + lowed by an optional _p_o_s_t_s_c_r_i_p_t. The preamble is prefixed to each string contained within the braces, and the postscript is then appended to each resulting string, expanding left to right. - Brace expansions may be nested. The results of each expanded string - are not sorted; left to right order is preserved. For example, + Brace expansions may be nested. The results of each expanded string + are not sorted; left to right order is preserved. For example, a{{d,c,b}}e expands into `ade ace abe'. - A sequence expression takes the form {{_x...._y}}, where _x and _y are either + A sequence expression takes the form {{_x...._y}}, where _x and _y are either integers or single characters. When integers are supplied, the expres- - sion expands to each number between _x and _y, inclusive. When charac- - ters are supplied, the expression expands to each character lexico- + sion expands to each number between _x and _y, inclusive. When charac- + ters are supplied, the expression expands to each character lexico- graphically between _x and _y, inclusive. Note that both _x and _y must be of the same type. Brace expansion is performed before any other expansions, and any char- - acters special to other expansions are preserved in the result. It is - strictly textual. BBaasshh does not apply any syntactic interpretation to + acters special to other expansions are preserved in the result. It is + strictly textual. BBaasshh does not apply any syntactic interpretation to the context of the expansion or the text between the braces. - A correctly-formed brace expansion must contain unquoted opening and - closing braces, and at least one unquoted comma or a valid sequence - expression. Any incorrectly formed brace expansion is left unchanged. + A correctly-formed brace expansion must contain unquoted opening and + closing braces, and at least one unquoted comma or a valid sequence + expression. Any incorrectly formed brace expansion is left unchanged. A {{ or ,, may be quoted with a backslash to prevent its being considered - part of a brace expression. To avoid conflicts with parameter expan- + part of a brace expression. To avoid conflicts with parameter expan- sion, the string $${{ is not considered eligible for brace expansion. This construct is typically used as shorthand when the common prefix of @@ -1205,36 +1214,36 @@ EEXXPPAANNSSIIOONN or chown root /usr/{ucb/{ex,edit},lib/{ex?.?*,how_ex}} - Brace expansion introduces a slight incompatibility with historical - versions of sshh. sshh does not treat opening or closing braces specially - when they appear as part of a word, and preserves them in the output. - BBaasshh removes braces from words as a consequence of brace expansion. - For example, a word entered to sshh as _f_i_l_e_{_1_,_2_} appears identically in - the output. The same word is output as _f_i_l_e_1 _f_i_l_e_2 after expansion by - bbaasshh. If strict compatibility with sshh is desired, start bbaasshh with the + Brace expansion introduces a slight incompatibility with historical + versions of sshh. sshh does not treat opening or closing braces specially + when they appear as part of a word, and preserves them in the output. + BBaasshh removes braces from words as a consequence of brace expansion. + For example, a word entered to sshh as _f_i_l_e_{_1_,_2_} appears identically in + the output. The same word is output as _f_i_l_e_1 _f_i_l_e_2 after expansion by + bbaasshh. If strict compatibility with sshh is desired, start bbaasshh with the ++BB option or disable brace expansion with the ++BB option to the sseett com- mand (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). TTiillddee EExxppaannssiioonn - If a word begins with an unquoted tilde character (`~~'), all of the - characters preceding the first unquoted slash (or all characters, if - there is no unquoted slash) are considered a _t_i_l_d_e_-_p_r_e_f_i_x. If none of - the characters in the tilde-prefix are quoted, the characters in the - tilde-prefix following the tilde are treated as a possible _l_o_g_i_n _n_a_m_e. - If this login name is the null string, the tilde is replaced with the - value of the shell parameter HHOOMMEE. If HHOOMMEE is unset, the home direc- - tory of the user executing the shell is substituted instead. Other- - wise, the tilde-prefix is replaced with the home directory associated + If a word begins with an unquoted tilde character (`~~'), all of the + characters preceding the first unquoted slash (or all characters, if + there is no unquoted slash) are considered a _t_i_l_d_e_-_p_r_e_f_i_x. If none of + the characters in the tilde-prefix are quoted, the characters in the + tilde-prefix following the tilde are treated as a possible _l_o_g_i_n _n_a_m_e. + If this login name is the null string, the tilde is replaced with the + value of the shell parameter HHOOMMEE. If HHOOMMEE is unset, the home direc- + tory of the user executing the shell is substituted instead. Other- + wise, the tilde-prefix is replaced with the home directory associated with the specified login name. - If the tilde-prefix is a `~+', the value of the shell variable PPWWDD + If the tilde-prefix is a `~+', the value of the shell variable PPWWDD replaces the tilde-prefix. If the tilde-prefix is a `~-', the value of - the shell variable OOLLDDPPWWDD, if it is set, is substituted. If the char- - acters following the tilde in the tilde-prefix consist of a number _N, - optionally prefixed by a `+' or a `-', the tilde-prefix is replaced + the shell variable OOLLDDPPWWDD, if it is set, is substituted. If the char- + acters following the tilde in the tilde-prefix consist of a number _N, + optionally prefixed by a `+' or a `-', the tilde-prefix is replaced with the corresponding element from the directory stack, as it would be displayed by the ddiirrss builtin invoked with the tilde-prefix as an argu- - ment. If the characters following the tilde in the tilde-prefix con- + ment. If the characters following the tilde in the tilde-prefix con- sist of a number without a leading `+' or `-', `+' is assumed. If the login name is invalid, or the tilde expansion fails, the word is @@ -1242,80 +1251,80 @@ EEXXPPAANNSSIIOONN Each variable assignment is checked for unquoted tilde-prefixes immedi- ately following a :: or the first ==. In these cases, tilde expansion is - also performed. Consequently, one may use file names with tildes in - assignments to PPAATTHH, MMAAIILLPPAATTHH, and CCDDPPAATTHH, and the shell assigns the + also performed. Consequently, one may use file names with tildes in + assignments to PPAATTHH, MMAAIILLPPAATTHH, and CCDDPPAATTHH, and the shell assigns the expanded value. PPaarraammeetteerr EExxppaannssiioonn The `$$' character introduces parameter expansion, command substitution, - or arithmetic expansion. The parameter name or symbol to be expanded - may be enclosed in braces, which are optional but serve to protect the - variable to be expanded from characters immediately following it which + or arithmetic expansion. The parameter name or symbol to be expanded + may be enclosed in braces, which are optional but serve to protect the + variable to be expanded from characters immediately following it which could be interpreted as part of the name. - When braces are used, the matching ending brace is the first `}}' not - escaped by a backslash or within a quoted string, and not within an + When braces are used, the matching ending brace is the first `}}' not + escaped by a backslash or within a quoted string, and not within an embedded arithmetic expansion, command substitution, or parameter expansion. ${_p_a_r_a_m_e_t_e_r} - The value of _p_a_r_a_m_e_t_e_r is substituted. The braces are required - when _p_a_r_a_m_e_t_e_r is a positional parameter with more than one + The value of _p_a_r_a_m_e_t_e_r is substituted. The braces are required + when _p_a_r_a_m_e_t_e_r is a positional parameter with more than one digit, or when _p_a_r_a_m_e_t_e_r is followed by a character which is not to be interpreted as part of its name. If the first character of _p_a_r_a_m_e_t_e_r is an exclamation point, a level of - variable indirection is introduced. BBaasshh uses the value of the vari- - able formed from the rest of _p_a_r_a_m_e_t_e_r as the name of the variable; - this variable is then expanded and that value is used in the rest of - the substitution, rather than the value of _p_a_r_a_m_e_t_e_r itself. This is + variable indirection is introduced. BBaasshh uses the value of the vari- + able formed from the rest of _p_a_r_a_m_e_t_e_r as the name of the variable; + this variable is then expanded and that value is used in the rest of + the substitution, rather than the value of _p_a_r_a_m_e_t_e_r itself. This is known as _i_n_d_i_r_e_c_t _e_x_p_a_n_s_i_o_n. The exceptions to this are the expansions - of ${!_p_r_e_f_i_x*} and ${!!_n_a_m_e[_@]} described below. The exclamation point - must immediately follow the left brace in order to introduce indirec- + of ${!_p_r_e_f_i_x*} and ${!!_n_a_m_e[_@]} described below. The exclamation point + must immediately follow the left brace in order to introduce indirec- tion. In each of the cases below, _w_o_r_d is subject to tilde expansion, parame- - ter expansion, command substitution, and arithmetic expansion. When - not performing substring expansion, bbaasshh tests for a parameter that is - unset or null; omitting the colon results in a test only for a parame- + ter expansion, command substitution, and arithmetic expansion. When + not performing substring expansion, bbaasshh tests for a parameter that is + unset or null; omitting the colon results in a test only for a parame- ter that is unset. ${_p_a_r_a_m_e_t_e_r::--_w_o_r_d} - UUssee DDeeffaauulltt VVaalluueess. If _p_a_r_a_m_e_t_e_r is unset or null, the expan- - sion of _w_o_r_d is substituted. Otherwise, the value of _p_a_r_a_m_e_t_e_r + UUssee DDeeffaauulltt VVaalluueess. If _p_a_r_a_m_e_t_e_r is unset or null, the expan- + sion of _w_o_r_d is substituted. Otherwise, the value of _p_a_r_a_m_e_t_e_r is substituted. ${_p_a_r_a_m_e_t_e_r::==_w_o_r_d} - AAssssiiggnn DDeeffaauulltt VVaalluueess. If _p_a_r_a_m_e_t_e_r is unset or null, the + AAssssiiggnn DDeeffaauulltt VVaalluueess. If _p_a_r_a_m_e_t_e_r is unset or null, the expansion of _w_o_r_d is assigned to _p_a_r_a_m_e_t_e_r. The value of _p_a_r_a_m_- - _e_t_e_r is then substituted. Positional parameters and special + _e_t_e_r is then substituted. Positional parameters and special parameters may not be assigned to in this way. ${_p_a_r_a_m_e_t_e_r::??_w_o_r_d} - DDiissppllaayy EErrrroorr iiff NNuullll oorr UUnnsseett. If _p_a_r_a_m_e_t_e_r is null or unset, - the expansion of _w_o_r_d (or a message to that effect if _w_o_r_d is - not present) is written to the standard error and the shell, if + DDiissppllaayy EErrrroorr iiff NNuullll oorr UUnnsseett. If _p_a_r_a_m_e_t_e_r is null or unset, + the expansion of _w_o_r_d (or a message to that effect if _w_o_r_d is + not present) is written to the standard error and the shell, if it is not interactive, exits. Otherwise, the value of _p_a_r_a_m_e_t_e_r is substituted. ${_p_a_r_a_m_e_t_e_r::++_w_o_r_d} - UUssee AAlltteerrnnaattee VVaalluuee. If _p_a_r_a_m_e_t_e_r is null or unset, nothing is + UUssee AAlltteerrnnaattee VVaalluuee. If _p_a_r_a_m_e_t_e_r is null or unset, nothing is substituted, otherwise the expansion of _w_o_r_d is substituted. ${_p_a_r_a_m_e_t_e_r::_o_f_f_s_e_t} ${_p_a_r_a_m_e_t_e_r::_o_f_f_s_e_t::_l_e_n_g_t_h} - SSuubbssttrriinngg EExxppaannssiioonn.. Expands to up to _l_e_n_g_t_h characters of - _p_a_r_a_m_e_t_e_r starting at the character specified by _o_f_f_s_e_t. If - _l_e_n_g_t_h is omitted, expands to the substring of _p_a_r_a_m_e_t_e_r start- + SSuubbssttrriinngg EExxppaannssiioonn.. Expands to up to _l_e_n_g_t_h characters of + _p_a_r_a_m_e_t_e_r starting at the character specified by _o_f_f_s_e_t. If + _l_e_n_g_t_h is omitted, expands to the substring of _p_a_r_a_m_e_t_e_r start- ing at the character specified by _o_f_f_s_e_t. _l_e_n_g_t_h and _o_f_f_s_e_t are - arithmetic expressions (see AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN below). - _l_e_n_g_t_h must evaluate to a number greater than or equal to zero. - If _o_f_f_s_e_t evaluates to a number less than zero, the value is - used as an offset from the end of the value of _p_a_r_a_m_e_t_e_r. If - _p_a_r_a_m_e_t_e_r is @@, the result is _l_e_n_g_t_h positional parameters + arithmetic expressions (see AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN below). + _l_e_n_g_t_h must evaluate to a number greater than or equal to zero. + If _o_f_f_s_e_t evaluates to a number less than zero, the value is + used as an offset from the end of the value of _p_a_r_a_m_e_t_e_r. If + _p_a_r_a_m_e_t_e_r is @@, the result is _l_e_n_g_t_h positional parameters beginning at _o_f_f_s_e_t. If _p_a_r_a_m_e_t_e_r is an array name indexed by @ - or *, the result is the _l_e_n_g_t_h members of the array beginning - with ${_p_a_r_a_m_e_t_e_r[_o_f_f_s_e_t]}. A negative _o_f_f_s_e_t is taken relative - to one greater than the maximum index of the specified array. - Note that a negative offset must be separated from the colon by - at least one space to avoid being confused with the :- expan- - sion. Substring indexing is zero-based unless the positional + or *, the result is the _l_e_n_g_t_h members of the array beginning + with ${_p_a_r_a_m_e_t_e_r[_o_f_f_s_e_t]}. A negative _o_f_f_s_e_t is taken relative + to one greater than the maximum index of the specified array. + Note that a negative offset must be separated from the colon by + at least one space to avoid being confused with the :- expan- + sion. Substring indexing is zero-based unless the positional parameters are used, in which case the indexing starts at 1. ${!!_p_r_e_f_i_x**} @@ -1325,63 +1334,63 @@ EEXXPPAANNSSIIOONN ${!!_n_a_m_e[_@]} ${!!_n_a_m_e[_*]} - If _n_a_m_e is an array variable, expands to the list of array - indices (keys) assigned in _n_a_m_e. If _n_a_m_e is not an array, - expands to 0 if _n_a_m_e is set and null otherwise. When _@ is used + If _n_a_m_e is an array variable, expands to the list of array + indices (keys) assigned in _n_a_m_e. If _n_a_m_e is not an array, + expands to 0 if _n_a_m_e is set and null otherwise. When _@ is used and the expansion appears within double quotes, each key expands to a separate word. ${##_p_a_r_a_m_e_t_e_r} - The length in characters of the value of _p_a_r_a_m_e_t_e_r is substi- - tuted. If _p_a_r_a_m_e_t_e_r is ** or @@, the value substituted is the - number of positional parameters. If _p_a_r_a_m_e_t_e_r is an array name - subscripted by ** or @@, the value substituted is the number of + The length in characters of the value of _p_a_r_a_m_e_t_e_r is substi- + tuted. If _p_a_r_a_m_e_t_e_r is ** or @@, the value substituted is the + number of positional parameters. If _p_a_r_a_m_e_t_e_r is an array name + subscripted by ** or @@, the value substituted is the number of elements in the array. ${_p_a_r_a_m_e_t_e_r##_w_o_r_d} ${_p_a_r_a_m_e_t_e_r####_w_o_r_d} - The _w_o_r_d is expanded to produce a pattern just as in pathname + The _w_o_r_d is expanded to produce a pattern just as in pathname expansion. If the pattern matches the beginning of the value of - _p_a_r_a_m_e_t_e_r, then the result of the expansion is the expanded + _p_a_r_a_m_e_t_e_r, then the result of the expansion is the expanded value of _p_a_r_a_m_e_t_e_r with the shortest matching pattern (the ``##'' case) or the longest matching pattern (the ``####'' case) deleted. If _p_a_r_a_m_e_t_e_r is @@ or **, the pattern removal operation is applied - to each positional parameter in turn, and the expansion is the - resultant list. If _p_a_r_a_m_e_t_e_r is an array variable subscripted - with @@ or **, the pattern removal operation is applied to each - member of the array in turn, and the expansion is the resultant + to each positional parameter in turn, and the expansion is the + resultant list. If _p_a_r_a_m_e_t_e_r is an array variable subscripted + with @@ or **, the pattern removal operation is applied to each + member of the array in turn, and the expansion is the resultant list. ${_p_a_r_a_m_e_t_e_r%%_w_o_r_d} ${_p_a_r_a_m_e_t_e_r%%%%_w_o_r_d} - The _w_o_r_d is expanded to produce a pattern just as in pathname - expansion. If the pattern matches a trailing portion of the + The _w_o_r_d is expanded to produce a pattern just as in pathname + expansion. If the pattern matches a trailing portion of the expanded value of _p_a_r_a_m_e_t_e_r, then the result of the expansion is - the expanded value of _p_a_r_a_m_e_t_e_r with the shortest matching pat- - tern (the ``%%'' case) or the longest matching pattern (the - ``%%%%'' case) deleted. If _p_a_r_a_m_e_t_e_r is @@ or **, the pattern - removal operation is applied to each positional parameter in - turn, and the expansion is the resultant list. If _p_a_r_a_m_e_t_e_r is - an array variable subscripted with @@ or **, the pattern removal - operation is applied to each member of the array in turn, and + the expanded value of _p_a_r_a_m_e_t_e_r with the shortest matching pat- + tern (the ``%%'' case) or the longest matching pattern (the + ``%%%%'' case) deleted. If _p_a_r_a_m_e_t_e_r is @@ or **, the pattern + removal operation is applied to each positional parameter in + turn, and the expansion is the resultant list. If _p_a_r_a_m_e_t_e_r is + an array variable subscripted with @@ or **, the pattern removal + operation is applied to each member of the array in turn, and the expansion is the resultant list. ${_p_a_r_a_m_e_t_e_r//_p_a_t_t_e_r_n//_s_t_r_i_n_g} ${_p_a_r_a_m_e_t_e_r////_p_a_t_t_e_r_n//_s_t_r_i_n_g} The _p_a_t_t_e_r_n is expanded to produce a pattern just as in pathname - expansion. _P_a_r_a_m_e_t_e_r is expanded and the longest match of - _p_a_t_t_e_r_n against its value is replaced with _s_t_r_i_n_g. In the first - form, only the first match is replaced. The second form causes - all matches of _p_a_t_t_e_r_n to be replaced with _s_t_r_i_n_g. If _p_a_t_t_e_r_n - begins with ##, it must match at the beginning of the expanded - value of _p_a_r_a_m_e_t_e_r. If _p_a_t_t_e_r_n begins with %%, it must match at - the end of the expanded value of _p_a_r_a_m_e_t_e_r. If _s_t_r_i_n_g is null, - matches of _p_a_t_t_e_r_n are deleted and the // following _p_a_t_t_e_r_n may - be omitted. If _p_a_r_a_m_e_t_e_r is @@ or **, the substitution operation - is applied to each positional parameter in turn, and the expan- - sion is the resultant list. If _p_a_r_a_m_e_t_e_r is an array variable - subscripted with @@ or **, the substitution operation is applied - to each member of the array in turn, and the expansion is the + expansion. _P_a_r_a_m_e_t_e_r is expanded and the longest match of _p_a_t_- + _t_e_r_n against its value is replaced with _s_t_r_i_n_g. In the first + form, only the first match is replaced. The second form causes + all matches of _p_a_t_t_e_r_n to be replaced with _s_t_r_i_n_g. If _p_a_t_t_e_r_n + begins with ##, it must match at the beginning of the expanded + value of _p_a_r_a_m_e_t_e_r. If _p_a_t_t_e_r_n begins with %%, it must match at + the end of the expanded value of _p_a_r_a_m_e_t_e_r. If _s_t_r_i_n_g is null, + matches of _p_a_t_t_e_r_n are deleted and the // following _p_a_t_t_e_r_n may + be omitted. If _p_a_r_a_m_e_t_e_r is @@ or **, the substitution operation + is applied to each positional parameter in turn, and the expan- + sion is the resultant list. If _p_a_r_a_m_e_t_e_r is an array variable + subscripted with @@ or **, the substitution operation is applied + to each member of the array in turn, and the expansion is the resultant list. CCoommmmaanndd SSuubbssttiittuuttiioonn @@ -1394,152 +1403,152 @@ EEXXPPAANNSSIIOONN ``_c_o_m_m_a_n_d`` BBaasshh performs the expansion by executing _c_o_m_m_a_n_d and replacing the com- - mand substitution with the standard output of the command, with any + mand substitution with the standard output of the command, with any trailing newlines deleted. Embedded newlines are not deleted, but they - may be removed during word splitting. The command substitution $$((ccaatt + may be removed during word splitting. The command substitution $$((ccaatt _f_i_l_e)) can be replaced by the equivalent but faster $$((<< _f_i_l_e)). - When the old-style backquote form of substitution is used, backslash - retains its literal meaning except when followed by $$, ``, or \\. The + When the old-style backquote form of substitution is used, backslash + retains its literal meaning except when followed by $$, ``, or \\. The first backquote not preceded by a backslash terminates the command sub- - stitution. When using the $(_c_o_m_m_a_n_d) form, all characters between the + stitution. When using the $(_c_o_m_m_a_n_d) form, all characters between the parentheses make up the command; none are treated specially. Command substitutions may be nested. To nest when using the backquoted form, escape the inner backquotes with backslashes. - If the substitution appears within double quotes, word splitting and + If the substitution appears within double quotes, word splitting and pathname expansion are not performed on the results. AArriitthhmmeettiicc EExxppaannssiioonn - Arithmetic expansion allows the evaluation of an arithmetic expression - and the substitution of the result. The format for arithmetic expan- + Arithmetic expansion allows the evaluation of an arithmetic expression + and the substitution of the result. The format for arithmetic expan- sion is: $$((((_e_x_p_r_e_s_s_i_o_n)))) - The _e_x_p_r_e_s_s_i_o_n is treated as if it were within double quotes, but a - double quote inside the parentheses is not treated specially. All + The _e_x_p_r_e_s_s_i_o_n is treated as if it were within double quotes, but a + double quote inside the parentheses is not treated specially. All tokens in the expression undergo parameter expansion, string expansion, - command substitution, and quote removal. Arithmetic expansions may be + command substitution, and quote removal. Arithmetic expansions may be nested. - The evaluation is performed according to the rules listed below under + The evaluation is performed according to the rules listed below under AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN. If _e_x_p_r_e_s_s_i_o_n is invalid, bbaasshh prints a message indicating failure and no substitution occurs. PPrroocceessss SSuubbssttiittuuttiioonn - _P_r_o_c_e_s_s _s_u_b_s_t_i_t_u_t_i_o_n is supported on systems that support named pipes - (_F_I_F_O_s) or the //ddeevv//ffdd method of naming open files. It takes the form - of <<((_l_i_s_t)) or >>((_l_i_s_t)). The process _l_i_s_t is run with its input or out- + _P_r_o_c_e_s_s _s_u_b_s_t_i_t_u_t_i_o_n is supported on systems that support named pipes + (_F_I_F_O_s) or the //ddeevv//ffdd method of naming open files. It takes the form + of <<((_l_i_s_t)) or >>((_l_i_s_t)). The process _l_i_s_t is run with its input or out- put connected to a _F_I_F_O or some file in //ddeevv//ffdd. The name of this file - is passed as an argument to the current command as the result of the - expansion. If the >>((_l_i_s_t)) form is used, writing to the file will pro- - vide input for _l_i_s_t. If the <<((_l_i_s_t)) form is used, the file passed as + is passed as an argument to the current command as the result of the + expansion. If the >>((_l_i_s_t)) form is used, writing to the file will pro- + vide input for _l_i_s_t. If the <<((_l_i_s_t)) form is used, the file passed as an argument should be read to obtain the output of _l_i_s_t. - When available, process substitution is performed simultaneously with - parameter and variable expansion, command substitution, and arithmetic + When available, process substitution is performed simultaneously with + parameter and variable expansion, command substitution, and arithmetic expansion. WWoorrdd SSpplliittttiinngg - The shell scans the results of parameter expansion, command substitu- - tion, and arithmetic expansion that did not occur within double quotes + The shell scans the results of parameter expansion, command substitu- + tion, and arithmetic expansion that did not occur within double quotes for _w_o_r_d _s_p_l_i_t_t_i_n_g. - The shell treats each character of IIFFSS as a delimiter, and splits the + The shell treats each character of IIFFSS as a delimiter, and splits the results of the other expansions into words on these characters. If IIFFSS - is unset, or its value is exactly <><><>, the default, - then any sequence of IIFFSS characters serves to delimit words. If IIFFSS - has a value other than the default, then sequences of the whitespace - characters ssppaaccee and ttaabb are ignored at the beginning and end of the - word, as long as the whitespace character is in the value of IIFFSS (an - IIFFSS whitespace character). Any character in IIFFSS that is not IIFFSS + is unset, or its value is exactly <><><>, the default, + then any sequence of IIFFSS characters serves to delimit words. If IIFFSS + has a value other than the default, then sequences of the whitespace + characters ssppaaccee and ttaabb are ignored at the beginning and end of the + word, as long as the whitespace character is in the value of IIFFSS (an + IIFFSS whitespace character). Any character in IIFFSS that is not IIFFSS whitespace, along with any adjacent IIFFSS whitespace characters, delimits - a field. A sequence of IIFFSS whitespace characters is also treated as a + a field. A sequence of IIFFSS whitespace characters is also treated as a delimiter. If the value of IIFFSS is null, no word splitting occurs. - Explicit null arguments ("""" or '''') are retained. Unquoted implicit + Explicit null arguments ("""" or '''') are retained. Unquoted implicit null arguments, resulting from the expansion of parameters that have no - values, are removed. If a parameter with no value is expanded within + values, are removed. If a parameter with no value is expanded within double quotes, a null argument results and is retained. Note that if no expansion occurs, no splitting is performed. PPaatthhnnaammee EExxppaannssiioonn - After word splitting, unless the --ff option has been set, bbaasshh scans - each word for the characters **, ??, and [[. If one of these characters - appears, then the word is regarded as a _p_a_t_t_e_r_n, and replaced with an - alphabetically sorted list of file names matching the pattern. If no - matching file names are found, and the shell option nnuullllgglloobb is dis- - abled, the word is left unchanged. If the nnuullllgglloobb option is set, and - no matches are found, the word is removed. If the ffaaiillgglloobb shell - option is set, and no matches are found, an error message is printed - and the command is not executed. If the shell option nnooccaasseegglloobb is - enabled, the match is performed without regard to the case of alpha- - betic characters. When a pattern is used for pathname expansion, the - character ````..'''' at the start of a name or immediately following a - slash must be matched explicitly, unless the shell option ddoottgglloobb is - set. When matching a pathname, the slash character must always be - matched explicitly. In other cases, the ````..'''' character is not - treated specially. See the description of sshhoopptt below under SSHHEELLLL - BBUUIILLTTIINN CCOOMMMMAANNDDSS for a description of the nnooccaasseegglloobb, nnuullllgglloobb, ffaaiill-- + After word splitting, unless the --ff option has been set, bbaasshh scans + each word for the characters **, ??, and [[. If one of these characters + appears, then the word is regarded as a _p_a_t_t_e_r_n, and replaced with an + alphabetically sorted list of file names matching the pattern. If no + matching file names are found, and the shell option nnuullllgglloobb is dis- + abled, the word is left unchanged. If the nnuullllgglloobb option is set, and + no matches are found, the word is removed. If the ffaaiillgglloobb shell + option is set, and no matches are found, an error message is printed + and the command is not executed. If the shell option nnooccaasseegglloobb is + enabled, the match is performed without regard to the case of alpha- + betic characters. When a pattern is used for pathname expansion, the + character ````..'''' at the start of a name or immediately following a + slash must be matched explicitly, unless the shell option ddoottgglloobb is + set. When matching a pathname, the slash character must always be + matched explicitly. In other cases, the ````..'''' character is not + treated specially. See the description of sshhoopptt below under SSHHEELLLL + BBUUIILLTTIINN CCOOMMMMAANNDDSS for a description of the nnooccaasseegglloobb, nnuullllgglloobb, ffaaiill-- gglloobb, and ddoottgglloobb shell options. - The GGLLOOBBIIGGNNOORREE shell variable may be used to restrict the set of file - names matching a _p_a_t_t_e_r_n. If GGLLOOBBIIGGNNOORREE is set, each matching file - name that also matches one of the patterns in GGLLOOBBIIGGNNOORREE is removed + The GGLLOOBBIIGGNNOORREE shell variable may be used to restrict the set of file + names matching a _p_a_t_t_e_r_n. If GGLLOOBBIIGGNNOORREE is set, each matching file + name that also matches one of the patterns in GGLLOOBBIIGGNNOORREE is removed from the list of matches. The file names ````..'''' and ````....'''' are always - ignored when GGLLOOBBIIGGNNOORREE is set and not null. However, setting GGLLOOBBIIGG-- - NNOORREE to a non-null value has the effect of enabling the ddoottgglloobb shell + ignored when GGLLOOBBIIGGNNOORREE is set and not null. However, setting GGLLOOBBIIGG-- + NNOORREE to a non-null value has the effect of enabling the ddoottgglloobb shell option, so all other file names beginning with a ````..'''' will match. To - get the old behavior of ignoring file names beginning with a ````..'''', - make ````..**'''' one of the patterns in GGLLOOBBIIGGNNOORREE. The ddoottgglloobb option is + get the old behavior of ignoring file names beginning with a ````..'''', + make ````..**'''' one of the patterns in GGLLOOBBIIGGNNOORREE. The ddoottgglloobb option is disabled when GGLLOOBBIIGGNNOORREE is unset. PPaatttteerrnn MMaattcchhiinngg Any character that appears in a pattern, other than the special pattern - characters described below, matches itself. The NUL character may not - occur in a pattern. A backslash escapes the following character; the - escaping backslash is discarded when matching. The special pattern + characters described below, matches itself. The NUL character may not + occur in a pattern. A backslash escapes the following character; the + escaping backslash is discarded when matching. The special pattern characters must be quoted if they are to be matched literally. The special pattern characters have the following meanings: ** Matches any string, including the null string. ?? Matches any single character. - [[......]] Matches any one of the enclosed characters. A pair of charac- + [[......]] Matches any one of the enclosed characters. A pair of charac- ters separated by a hyphen denotes a _r_a_n_g_e _e_x_p_r_e_s_s_i_o_n; any char- - acter that sorts between those two characters, inclusive, using - the current locale's collating sequence and character set, is - matched. If the first character following the [[ is a !! or a ^^ - then any character not enclosed is matched. The sorting order - of characters in range expressions is determined by the current - locale and the value of the LLCC__CCOOLLLLAATTEE shell variable, if set. - A -- may be matched by including it as the first or last charac- + acter that sorts between those two characters, inclusive, using + the current locale's collating sequence and character set, is + matched. If the first character following the [[ is a !! or a ^^ + then any character not enclosed is matched. The sorting order + of characters in range expressions is determined by the current + locale and the value of the LLCC__CCOOLLLLAATTEE shell variable, if set. + A -- may be matched by including it as the first or last charac- ter in the set. A ]] may be matched by including it as the first character in the set. - Within [[ and ]], _c_h_a_r_a_c_t_e_r _c_l_a_s_s_e_s can be specified using the - syntax [[::_c_l_a_s_s::]], where _c_l_a_s_s is one of the following classes + Within [[ and ]], _c_h_a_r_a_c_t_e_r _c_l_a_s_s_e_s can be specified using the + syntax [[::_c_l_a_s_s::]], where _c_l_a_s_s is one of the following classes defined in the POSIX.2 standard: - aallnnuumm aallpphhaa aasscciiii bbllaannkk ccnnttrrll ddiiggiitt ggrraapphh lloowweerr pprriinntt ppuunncctt + aallnnuumm aallpphhaa aasscciiii bbllaannkk ccnnttrrll ddiiggiitt ggrraapphh lloowweerr pprriinntt ppuunncctt ssppaaccee uuppppeerr wwoorrdd xxddiiggiitt A character class matches any character belonging to that class. - The wwoorrdd character class matches letters, digits, and the char- + The wwoorrdd character class matches letters, digits, and the char- acter _. - Within [[ and ]], an _e_q_u_i_v_a_l_e_n_c_e _c_l_a_s_s can be specified using the - syntax [[==_c==]], which matches all characters with the same colla- - tion weight (as defined by the current locale) as the character + Within [[ and ]], an _e_q_u_i_v_a_l_e_n_c_e _c_l_a_s_s can be specified using the + syntax [[==_c==]], which matches all characters with the same colla- + tion weight (as defined by the current locale) as the character _c. Within [[ and ]], the syntax [[.._s_y_m_b_o_l..]] matches the collating sym- bol _s_y_m_b_o_l. If the eexxttgglloobb shell option is enabled using the sshhoopptt builtin, several - extended pattern matching operators are recognized. In the following + extended pattern matching operators are recognized. In the following description, a _p_a_t_t_e_r_n_-_l_i_s_t is a list of one or more patterns separated by a ||. Composite patterns may be formed using one or more of the fol- lowing sub-patterns: @@ -1557,48 +1566,48 @@ EEXXPPAANNSSIIOONN QQuuoottee RReemmoovvaall After the preceding expansions, all unquoted occurrences of the charac- - ters \\, '', and "" that did not result from one of the above expansions + ters \\, '', and "" that did not result from one of the above expansions are removed. RREEDDIIRREECCTTIIOONN - Before a command is executed, its input and output may be _r_e_d_i_r_e_c_t_e_d - using a special notation interpreted by the shell. Redirection may - also be used to open and close files for the current shell execution + Before a command is executed, its input and output may be _r_e_d_i_r_e_c_t_e_d + using a special notation interpreted by the shell. Redirection may + also be used to open and close files for the current shell execution environment. The following redirection operators may precede or appear anywhere within a _s_i_m_p_l_e _c_o_m_m_a_n_d or may follow a _c_o_m_m_a_n_d. Redirections are processed in the order they appear, from left to right. - In the following descriptions, if the file descriptor number is omit- - ted, and the first character of the redirection operator is <<, the - redirection refers to the standard input (file descriptor 0). If the - first character of the redirection operator is >>, the redirection + In the following descriptions, if the file descriptor number is omit- + ted, and the first character of the redirection operator is <<, the + redirection refers to the standard input (file descriptor 0). If the + first character of the redirection operator is >>, the redirection refers to the standard output (file descriptor 1). - The word following the redirection operator in the following descrip- - tions, unless otherwise noted, is subjected to brace expansion, tilde + The word following the redirection operator in the following descrip- + tions, unless otherwise noted, is subjected to brace expansion, tilde expansion, parameter expansion, command substitution, arithmetic expan- - sion, quote removal, pathname expansion, and word splitting. If it + sion, quote removal, pathname expansion, and word splitting. If it expands to more than one word, bbaasshh reports an error. - Note that the order of redirections is significant. For example, the + Note that the order of redirections is significant. For example, the command ls >> dirlist 2>>&&1 - directs both standard output and standard error to the file _d_i_r_l_i_s_t, + directs both standard output and standard error to the file _d_i_r_l_i_s_t, while the command ls 2>>&&1 >> dirlist - directs only the standard output to file _d_i_r_l_i_s_t, because the standard - error was duplicated as standard output before the standard output was + directs only the standard output to file _d_i_r_l_i_s_t, because the standard + error was duplicated as standard output before the standard output was redirected to _d_i_r_l_i_s_t. BBaasshh handles several filenames specially when they are used in redirec- tions, as described in the following table: //ddeevv//ffdd//_f_d - If _f_d is a valid integer, file descriptor _f_d is dupli- + If _f_d is a valid integer, file descriptor _f_d is dupli- cated. //ddeevv//ssttddiinn File descriptor 0 is duplicated. @@ -1608,22 +1617,22 @@ RREEDDIIRREECCTTIIOONN File descriptor 2 is duplicated. //ddeevv//ttccpp//_h_o_s_t//_p_o_r_t If _h_o_s_t is a valid hostname or Internet address, and _p_o_r_t - is an integer port number or service name, bbaasshh attempts + is an integer port number or service name, bbaasshh attempts to open a TCP connection to the corresponding socket. //ddeevv//uuddpp//_h_o_s_t//_p_o_r_t If _h_o_s_t is a valid hostname or Internet address, and _p_o_r_t - is an integer port number or service name, bbaasshh attempts + is an integer port number or service name, bbaasshh attempts to open a UDP connection to the corresponding socket. A failure to open or create a file causes the redirection to fail. - Redirections using file descriptors greater than 9 should be used with - care, as they may conflict with file descriptors the shell uses inter- + Redirections using file descriptors greater than 9 should be used with + care, as they may conflict with file descriptors the shell uses inter- nally. RReeddiirreeccttiinngg IInnppuutt Redirection of input causes the file whose name results from the expan- - sion of _w_o_r_d to be opened for reading on file descriptor _n, or the + sion of _w_o_r_d to be opened for reading on file descriptor _n, or the standard input (file descriptor 0) if _n is not specified. The general format for redirecting input is: @@ -1631,27 +1640,27 @@ RREEDDIIRREECCTTIIOONN [_n]<<_w_o_r_d RReeddiirreeccttiinngg OOuuttppuutt - Redirection of output causes the file whose name results from the + Redirection of output causes the file whose name results from the expansion of _w_o_r_d to be opened for writing on file descriptor _n, or the standard output (file descriptor 1) if _n is not specified. If the file - does not exist it is created; if it does exist it is truncated to zero + does not exist it is created; if it does exist it is truncated to zero size. The general format for redirecting output is: [_n]>>_w_o_r_d - If the redirection operator is >>, and the nnoocclloobbbbeerr option to the sseett - builtin has been enabled, the redirection will fail if the file whose - name results from the expansion of _w_o_r_d exists and is a regular file. + If the redirection operator is >>, and the nnoocclloobbbbeerr option to the sseett + builtin has been enabled, the redirection will fail if the file whose + name results from the expansion of _w_o_r_d exists and is a regular file. If the redirection operator is >>||, or the redirection operator is >> and - the nnoocclloobbbbeerr option to the sseett builtin command is not enabled, the + the nnoocclloobbbbeerr option to the sseett builtin command is not enabled, the redirection is attempted even if the file named by _w_o_r_d exists. AAppppeennddiinngg RReeddiirreecctteedd OOuuttppuutt - Redirection of output in this fashion causes the file whose name - results from the expansion of _w_o_r_d to be opened for appending on file - descriptor _n, or the standard output (file descriptor 1) if _n is not + Redirection of output in this fashion causes the file whose name + results from the expansion of _w_o_r_d to be opened for appending on file + descriptor _n, or the standard output (file descriptor 1) if _n is not specified. If the file does not exist it is created. The general format for appending output is: @@ -1660,11 +1669,11 @@ RREEDDIIRREECCTTIIOONN RReeddiirreeccttiinngg SSttaannddaarrdd OOuuttppuutt aanndd SSttaannddaarrdd EErrrroorr - BBaasshh allows both the standard output (file descriptor 1) and the stan- - dard error output (file descriptor 2) to be redirected to the file + BBaasshh allows both the standard output (file descriptor 1) and the stan- + dard error output (file descriptor 2) to be redirected to the file whose name is the expansion of _w_o_r_d with this construct. - There are two formats for redirecting standard output and standard + There are two formats for redirecting standard output and standard error: &&>>_w_o_r_d @@ -1677,9 +1686,9 @@ RREEDDIIRREECCTTIIOONN >>_w_o_r_d 2>>&&1 HHeerree DDooccuummeennttss - This type of redirection instructs the shell to read input from the - current source until a line containing only _w_o_r_d (with no trailing - blanks) is seen. All of the lines read up to that point are then used + This type of redirection instructs the shell to read input from the + current source until a line containing only _w_o_r_d (with no trailing + blanks) is seen. All of the lines read up to that point are then used as the standard input for a command. The format of here-documents is: @@ -1688,18 +1697,18 @@ RREEDDIIRREECCTTIIOONN _h_e_r_e_-_d_o_c_u_m_e_n_t _d_e_l_i_m_i_t_e_r - No parameter expansion, command substitution, arithmetic expansion, or + No parameter expansion, command substitution, arithmetic expansion, or pathname expansion is performed on _w_o_r_d. If any characters in _w_o_r_d are - quoted, the _d_e_l_i_m_i_t_e_r is the result of quote removal on _w_o_r_d, and the - lines in the here-document are not expanded. If _w_o_r_d is unquoted, all - lines of the here-document are subjected to parameter expansion, com- - mand substitution, and arithmetic expansion. In the latter case, the - character sequence \\<> is ignored, and \\ must be used to quote + quoted, the _d_e_l_i_m_i_t_e_r is the result of quote removal on _w_o_r_d, and the + lines in the here-document are not expanded. If _w_o_r_d is unquoted, all + lines of the here-document are subjected to parameter expansion, com- + mand substitution, and arithmetic expansion. In the latter case, the + character sequence \\<> is ignored, and \\ must be used to quote the characters \\, $$, and ``. If the redirection operator is <<<<--, then all leading tab characters are - stripped from input lines and the line containing _d_e_l_i_m_i_t_e_r. This - allows here-documents within shell scripts to be indented in a natural + stripped from input lines and the line containing _d_e_l_i_m_i_t_e_r. This + allows here-documents within shell scripts to be indented in a natural fashion. HHeerree SSttrriinnggss @@ -1715,19 +1724,19 @@ RREEDDIIRREECCTTIIOONN [_n]<<&&_w_o_r_d is used to duplicate input file descriptors. If _w_o_r_d expands to one or - more digits, the file descriptor denoted by _n is made to be a copy of - that file descriptor. If the digits in _w_o_r_d do not specify a file - descriptor open for input, a redirection error occurs. If _w_o_r_d evalu- - ates to --, file descriptor _n is closed. If _n is not specified, the + more digits, the file descriptor denoted by _n is made to be a copy of + that file descriptor. If the digits in _w_o_r_d do not specify a file + descriptor open for input, a redirection error occurs. If _w_o_r_d evalu- + ates to --, file descriptor _n is closed. If _n is not specified, the standard input (file descriptor 0) is used. The operator [_n]>>&&_w_o_r_d - is used similarly to duplicate output file descriptors. If _n is not - specified, the standard output (file descriptor 1) is used. If the - digits in _w_o_r_d do not specify a file descriptor open for output, a + is used similarly to duplicate output file descriptors. If _n is not + specified, the standard output (file descriptor 1) is used. If the + digits in _w_o_r_d do not specify a file descriptor open for output, a redirection error occurs. As a special case, if _n is omitted, and _w_o_r_d does not expand to one or more digits, the standard output and standard error are redirected as described previously. @@ -1737,7 +1746,7 @@ RREEDDIIRREECCTTIIOONN [_n]<<&&_d_i_g_i_t-- - moves the file descriptor _d_i_g_i_t to file descriptor _n, or the standard + moves the file descriptor _d_i_g_i_t to file descriptor _n, or the standard input (file descriptor 0) if _n is not specified. _d_i_g_i_t is closed after being duplicated to _n. @@ -1745,7 +1754,7 @@ RREEDDIIRREECCTTIIOONN [_n]>>&&_d_i_g_i_t-- - moves the file descriptor _d_i_g_i_t to file descriptor _n, or the standard + moves the file descriptor _d_i_g_i_t to file descriptor _n, or the standard output (file descriptor 1) if _n is not specified. OOppeenniinngg FFiillee DDeessccrriippttoorrss ffoorr RReeaaddiinngg aanndd WWrriittiinngg @@ -1753,107 +1762,107 @@ RREEDDIIRREECCTTIIOONN [_n]<<>>_w_o_r_d - causes the file whose name is the expansion of _w_o_r_d to be opened for - both reading and writing on file descriptor _n, or on file descriptor 0 + causes the file whose name is the expansion of _w_o_r_d to be opened for + both reading and writing on file descriptor _n, or on file descriptor 0 if _n is not specified. If the file does not exist, it is created. AALLIIAASSEESS - _A_l_i_a_s_e_s allow a string to be substituted for a word when it is used as - the first word of a simple command. The shell maintains a list of - aliases that may be set and unset with the aalliiaass and uunnaalliiaass builtin - commands (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). The first word of each - simple command, if unquoted, is checked to see if it has an alias. If - so, that word is replaced by the text of the alias. The characters //, - $$, ``, and == and any of the shell _m_e_t_a_c_h_a_r_a_c_t_e_r_s or quoting characters + _A_l_i_a_s_e_s allow a string to be substituted for a word when it is used as + the first word of a simple command. The shell maintains a list of + aliases that may be set and unset with the aalliiaass and uunnaalliiaass builtin + commands (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). The first word of each + simple command, if unquoted, is checked to see if it has an alias. If + so, that word is replaced by the text of the alias. The characters //, + $$, ``, and == and any of the shell _m_e_t_a_c_h_a_r_a_c_t_e_r_s or quoting characters listed above may not appear in an alias name. The replacement text may - contain any valid shell input, including shell metacharacters. The - first word of the replacement text is tested for aliases, but a word - that is identical to an alias being expanded is not expanded a second - time. This means that one may alias llss to llss --FF, for instance, and - bbaasshh does not try to recursively expand the replacement text. If the - last character of the alias value is a _b_l_a_n_k, then the next command + contain any valid shell input, including shell metacharacters. The + first word of the replacement text is tested for aliases, but a word + that is identical to an alias being expanded is not expanded a second + time. This means that one may alias llss to llss --FF, for instance, and + bbaasshh does not try to recursively expand the replacement text. If the + last character of the alias value is a _b_l_a_n_k, then the next command word following the alias is also checked for alias expansion. Aliases are created and listed with the aalliiaass command, and removed with the uunnaalliiaass command. - There is no mechanism for using arguments in the replacement text. If - arguments are needed, a shell function should be used (see FFUUNNCCTTIIOONNSS + There is no mechanism for using arguments in the replacement text. If + arguments are needed, a shell function should be used (see FFUUNNCCTTIIOONNSS below). - Aliases are not expanded when the shell is not interactive, unless the - eexxppaanndd__aalliiaasseess shell option is set using sshhoopptt (see the description of + Aliases are not expanded when the shell is not interactive, unless the + eexxppaanndd__aalliiaasseess shell option is set using sshhoopptt (see the description of sshhoopptt under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). - The rules concerning the definition and use of aliases are somewhat - confusing. BBaasshh always reads at least one complete line of input - before executing any of the commands on that line. Aliases are - expanded when a command is read, not when it is executed. Therefore, - an alias definition appearing on the same line as another command does - not take effect until the next line of input is read. The commands + The rules concerning the definition and use of aliases are somewhat + confusing. BBaasshh always reads at least one complete line of input + before executing any of the commands on that line. Aliases are + expanded when a command is read, not when it is executed. Therefore, + an alias definition appearing on the same line as another command does + not take effect until the next line of input is read. The commands following the alias definition on that line are not affected by the new - alias. This behavior is also an issue when functions are executed. - Aliases are expanded when a function definition is read, not when the - function is executed, because a function definition is itself a com- + alias. This behavior is also an issue when functions are executed. + Aliases are expanded when a function definition is read, not when the + function is executed, because a function definition is itself a com- pound command. As a consequence, aliases defined in a function are not - available until after that function is executed. To be safe, always - put alias definitions on a separate line, and do not use aalliiaass in com- + available until after that function is executed. To be safe, always + put alias definitions on a separate line, and do not use aalliiaass in com- pound commands. For almost every purpose, aliases are superseded by shell functions. FFUUNNCCTTIIOONNSS - A shell function, defined as described above under SSHHEELLLL GGRRAAMMMMAARR, - stores a series of commands for later execution. When the name of a - shell function is used as a simple command name, the list of commands + A shell function, defined as described above under SSHHEELLLL GGRRAAMMMMAARR, + stores a series of commands for later execution. When the name of a + shell function is used as a simple command name, the list of commands associated with that function name is executed. Functions are executed - in the context of the current shell; no new process is created to - interpret them (contrast this with the execution of a shell script). - When a function is executed, the arguments to the function become the + in the context of the current shell; no new process is created to + interpret them (contrast this with the execution of a shell script). + When a function is executed, the arguments to the function become the positional parameters during its execution. The special parameter ## is - updated to reflect the change. Special parameter 0 is unchanged. The - first element of the FFUUNNCCNNAAMMEE 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 + updated to reflect the change. Special parameter 0 is unchanged. The + first element of the FFUUNNCCNNAAMMEE 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 DDEEBBUUGG and RREETTUURRNN traps (see the description - of the ttrraapp builtin under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) are not inher- - ited unless the function has been given the ttrraaccee attribute (see the - description of the ddeeccllaarree builtin below) or the --oo ffuunnccttrraaccee shell - option has been enabled with the sseett builtin (in which case all func- + of the ttrraapp builtin under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) are not inher- + ited unless the function has been given the ttrraaccee attribute (see the + description of the ddeeccllaarree builtin below) or the --oo ffuunnccttrraaccee shell + option has been enabled with the sseett builtin (in which case all func- tions inherit the DDEEBBUUGG and RREETTUURRNN traps). - Variables local to the function may be declared with the llooccaall builtin + Variables local to the function may be declared with the llooccaall builtin command. Ordinarily, variables and their values are shared between the function and its caller. - If the builtin command rreettuurrnn is executed in a function, the function - completes and execution resumes with the next command after the func- - tion call. Any command associated with the RREETTUURRNN trap is executed + If the builtin command rreettuurrnn is executed in a function, the function + completes and execution resumes with the next command after the + function call. Any command associated with the RREETTUURRNN trap is executed before execution resumes. When a function completes, the values of the - positional parameters and the special parameter ## are restored to the + positional parameters and the special parameter ## are restored to the values they had prior to the function's execution. - Function names and definitions may be listed with the --ff option to the + Function names and definitions may be listed with the --ff option to the ddeeccllaarree or ttyyppeesseett builtin commands. The --FF option to ddeeccllaarree or ttyyppee-- - sseett will list the function names only (and optionally the source file - and line number, if the eexxttddeebbuugg shell option is enabled). Functions - may be exported so that subshells automatically have them defined with - the --ff option to the eexxppoorrtt builtin. Note that shell functions and - variables with the same name may result in multiple identically-named + sseett will list the function names only (and optionally the source file + and line number, if the eexxttddeebbuugg shell option is enabled). Functions + may be exported so that subshells automatically have them defined with + the --ff option to the eexxppoorrtt builtin. Note that shell functions and + variables with the same name may result in multiple identically-named entries in the environment passed to the shell's children. Care should be taken in cases where this may cause a problem. - Functions may be recursive. No limit is imposed on the number of + Functions may be recursive. No limit is imposed on the number of recursive calls. AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN - The shell allows arithmetic expressions to be evaluated, under certain - circumstances (see the lleett and ddeeccllaarree builtin commands and AArriitthhmmeettiicc - EExxppaannssiioonn). Evaluation is done in fixed-width integers with no check - for overflow, though division by 0 is trapped and flagged as an error. - The operators and their precedence, associativity, and values are the - same as in the C language. The following list of operators is grouped - into levels of equal-precedence operators. The levels are listed in + The shell allows arithmetic expressions to be evaluated, under certain + circumstances (see the lleett and ddeeccllaarree builtin commands and AArriitthhmmeettiicc + EExxppaannssiioonn). Evaluation is done in fixed-width integers with no check + for overflow, though division by 0 is trapped and flagged as an error. + The operators and their precedence, associativity, and values are the + same as in the C language. The following list of operators is grouped + into levels of equal-precedence operators. The levels are listed in order of decreasing precedence. _i_d++++ _i_d---- @@ -1881,39 +1890,39 @@ AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN _e_x_p_r_1 ,, _e_x_p_r_2 comma - Shell variables are allowed as operands; parameter expansion is per- + Shell variables are allowed as operands; parameter expansion is per- formed before the expression is evaluated. Within an expression, shell - variables may also be referenced by name without using the parameter - expansion syntax. A shell variable that is null or unset evaluates to + variables may also be referenced by name without using the parameter + expansion syntax. A shell variable that is null or unset evaluates to 0 when referenced by name without using the parameter expansion syntax. - The value of a variable is evaluated as an arithmetic expression when - it is referenced, or when a variable which has been given the _i_n_t_e_g_e_r + The value of a variable is evaluated as an arithmetic expression when + it is referenced, or when a variable which has been given the _i_n_t_e_g_e_r attribute using ddeeccllaarree --ii is assigned a value. A null value evaluates - to 0. A shell variable need not have its integer attribute turned on + to 0. A shell variable need not have its integer attribute turned on to be used in an expression. Constants with a leading 0 are interpreted as octal numbers. A leading - 0x or 0X denotes hexadecimal. Otherwise, numbers take the form - [_b_a_s_e_#]n, where _b_a_s_e is a decimal number between 2 and 64 representing + 0x or 0X denotes hexadecimal. Otherwise, numbers take the form + [_b_a_s_e_#]n, where _b_a_s_e is a decimal number between 2 and 64 representing the arithmetic base, and _n is a number in that base. If _b_a_s_e_# is omit- - ted, then base 10 is used. The digits greater than 9 are represented - by the lowercase letters, the uppercase letters, @, and _, in that - order. If _b_a_s_e is less than or equal to 36, lowercase and uppercase + ted, then base 10 is used. The digits greater than 9 are represented + by the lowercase letters, the uppercase letters, @, and _, in that + order. If _b_a_s_e is less than or equal to 36, lowercase and uppercase letters may be used interchangeably to represent numbers between 10 and 35. - Operators are evaluated in order of precedence. Sub-expressions in - parentheses are evaluated first and may override the precedence rules + Operators are evaluated in order of precedence. Sub-expressions in + parentheses are evaluated first and may override the precedence rules above. CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS - Conditional expressions are used by the [[[[ compound command and the - tteesstt and [[ builtin commands to test file attributes and perform string - and arithmetic comparisons. Expressions are formed from the following - unary or binary primaries. If any _f_i_l_e argument to one of the pri- + Conditional expressions are used by the [[[[ compound command and the + tteesstt and [[ builtin commands to test file attributes and perform string + and arithmetic comparisons. Expressions are formed from the following + unary or binary primaries. If any _f_i_l_e argument to one of the pri- maries is of the form _/_d_e_v_/_f_d_/_n, then file descriptor _n is checked. If - the _f_i_l_e argument to one of the primaries is one of _/_d_e_v_/_s_t_d_i_n, - _/_d_e_v_/_s_t_d_o_u_t, or _/_d_e_v_/_s_t_d_e_r_r, file descriptor 0, 1, or 2, respectively, + the _f_i_l_e argument to one of the primaries is one of _/_d_e_v_/_s_t_d_i_n, + _/_d_e_v_/_s_t_d_o_u_t, or _/_d_e_v_/_s_t_d_e_r_r, file descriptor 0, 1, or 2, respectively, is checked. Unless otherwise specified, primaries that operate on files follow sym- @@ -1960,20 +1969,20 @@ CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS --SS _f_i_l_e True if _f_i_l_e exists and is a socket. --NN _f_i_l_e - True if _f_i_l_e exists and has been modified since it was last + True if _f_i_l_e exists and has been modified since it was last read. _f_i_l_e_1 -nntt _f_i_l_e_2 - True if _f_i_l_e_1 is newer (according to modification date) than + True if _f_i_l_e_1 is newer (according to modification date) than _f_i_l_e_2, or if _f_i_l_e_1 exists and _f_i_l_e_2 does not. _f_i_l_e_1 -oott _f_i_l_e_2 - True if _f_i_l_e_1 is older than _f_i_l_e_2, or if _f_i_l_e_2 exists and _f_i_l_e_1 + True if _f_i_l_e_1 is older than _f_i_l_e_2, or if _f_i_l_e_2 exists and _f_i_l_e_1 does not. _f_i_l_e_1 --eeff _f_i_l_e_2 - True if _f_i_l_e_1 and _f_i_l_e_2 refer to the same device and inode num- + True if _f_i_l_e_1 and _f_i_l_e_2 refer to the same device and inode num- bers. --oo _o_p_t_n_a_m_e - True if shell option _o_p_t_n_a_m_e is enabled. See the list of - options under the description of the --oo option to the sseett + True if shell option _o_p_t_n_a_m_e is enabled. See the list of + options under the description of the --oo option to the sseett builtin below. --zz _s_t_r_i_n_g True if the length of _s_t_r_i_n_g is zero. @@ -1989,111 +1998,111 @@ CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS True if the strings are not equal. _s_t_r_i_n_g_1 << _s_t_r_i_n_g_2 - True if _s_t_r_i_n_g_1 sorts before _s_t_r_i_n_g_2 lexicographically in the + True if _s_t_r_i_n_g_1 sorts before _s_t_r_i_n_g_2 lexicographically in the current locale. _s_t_r_i_n_g_1 >> _s_t_r_i_n_g_2 - True if _s_t_r_i_n_g_1 sorts after _s_t_r_i_n_g_2 lexicographically in the + True if _s_t_r_i_n_g_1 sorts after _s_t_r_i_n_g_2 lexicographically in the current locale. _a_r_g_1 OOPP _a_r_g_2 - OOPP is one of --eeqq, --nnee, --lltt, --llee, --ggtt, or --ggee. These arithmetic - binary operators return true if _a_r_g_1 is equal to, not equal to, - less than, less than or equal to, greater than, or greater than - or equal to _a_r_g_2, respectively. _A_r_g_1 and _a_r_g_2 may be positive + OOPP is one of --eeqq, --nnee, --lltt, --llee, --ggtt, or --ggee. These arithmetic + binary operators return true if _a_r_g_1 is equal to, not equal to, + less than, less than or equal to, greater than, or greater than + or equal to _a_r_g_2, respectively. _A_r_g_1 and _a_r_g_2 may be positive or negative integers. SSIIMMPPLLEE CCOOMMMMAANNDD EEXXPPAANNSSIIOONN - When a simple command is executed, the shell performs the following + When a simple command is executed, the shell performs the following expansions, assignments, and redirections, from left to right. - 1. The words that the parser has marked as variable assignments - (those preceding the command name) and redirections are saved + 1. The words that the parser has marked as variable assignments + (those preceding the command name) and redirections are saved for later processing. - 2. The words that are not variable assignments or redirections are - expanded. If any words remain after expansion, the first word - is taken to be the name of the command and the remaining words + 2. The words that are not variable assignments or redirections are + expanded. If any words remain after expansion, the first word + is taken to be the name of the command and the remaining words are the arguments. 3. Redirections are performed as described above under RREEDDIIRREECCTTIIOONN. 4. The text after the == in each variable assignment undergoes tilde expansion, parameter expansion, command substitution, arithmetic - expansion, and quote removal before being assigned to the vari- + expansion, and quote removal before being assigned to the vari- able. If no command name results, the variable assignments affect the current - shell environment. Otherwise, the variables are added to the environ- - ment of the executed command and do not affect the current shell envi- - ronment. If any of the assignments attempts to assign a value to a - readonly variable, an error occurs, and the command exits with a non- + shell environment. Otherwise, the variables are added to the environ- + ment of the executed command and do not affect the current shell envi- + ronment. If any of the assignments attempts to assign a value to a + readonly variable, an error occurs, and the command exits with a non- zero status. - If no command name results, redirections are performed, but do not - affect the current shell environment. A redirection error causes the + If no command name results, redirections are performed, but do not + affect the current shell environment. A redirection error causes the command to exit with a non-zero status. - If there is a command name left after expansion, execution proceeds as - described below. Otherwise, the command exits. If one of the expan- - sions contained a command substitution, the exit status of the command - is the exit status of the last command substitution performed. If + If there is a command name left after expansion, execution proceeds as + described below. Otherwise, the command exits. If one of the expan- + sions contained a command substitution, the exit status of the command + is the exit status of the last command substitution performed. If there were no command substitutions, the command exits with a status of zero. CCOOMMMMAANNDD EEXXEECCUUTTIIOONN - After a command has been split into words, if it results in a simple - command and an optional list of arguments, the following actions are + After a command has been split into words, if it results in a simple + command and an optional list of arguments, the following actions are taken. - If the command name contains no slashes, the shell attempts to locate - it. If there exists a shell function by that name, that function is - invoked as described above in FFUUNNCCTTIIOONNSS. If the name does not match a - function, the shell searches for it in the list of shell builtins. If + If the command name contains no slashes, the shell attempts to locate + it. If there exists a shell function by that name, that function is + invoked as described above in FFUUNNCCTTIIOONNSS. If the name does not match a + function, the shell searches for it in the list of shell builtins. If a match is found, that builtin is invoked. - If the name is neither a shell function nor a builtin, and contains no - slashes, bbaasshh searches each element of the PPAATTHH for a directory con- - taining an executable file by that name. BBaasshh uses a hash table to - remember the full pathnames of executable files (see hhaasshh under SSHHEELLLL - BBUUIILLTTIINN CCOOMMMMAANNDDSS below). A full search of the directories in PPAATTHH is - performed only if the command is not found in the hash table. If the - search is unsuccessful, the shell prints an error message and returns + If the name is neither a shell function nor a builtin, and contains no + slashes, bbaasshh searches each element of the PPAATTHH for a directory con- + taining an executable file by that name. BBaasshh uses a hash table to + remember the full pathnames of executable files (see hhaasshh under SSHHEELLLL + BBUUIILLTTIINN CCOOMMMMAANNDDSS below). A full search of the directories in PPAATTHH is + performed only if the command is not found in the hash table. If the + search is unsuccessful, the shell prints an error message and returns an exit status of 127. - If the search is successful, or if the command name contains one or + If the search is successful, or if the command name contains one or more slashes, the shell executes the named program in a separate execu- tion environment. Argument 0 is set to the name given, and the remain- ing arguments to the command are set to the arguments given, if any. - If this execution fails because the file is not in executable format, - and the file is not a directory, it is assumed to be a _s_h_e_l_l _s_c_r_i_p_t, a - file containing shell commands. A subshell is spawned to execute it. - This subshell reinitializes itself, so that the effect is as if a new - shell had been invoked to handle the script, with the exception that - the locations of commands remembered by the parent (see hhaasshh below + If this execution fails because the file is not in executable format, + and the file is not a directory, it is assumed to be a _s_h_e_l_l _s_c_r_i_p_t, a + file containing shell commands. A subshell is spawned to execute it. + This subshell reinitializes itself, so that the effect is as if a new + shell had been invoked to handle the script, with the exception that + the locations of commands remembered by the parent (see hhaasshh below under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS) are retained by the child. - If the program is a file beginning with ##!!, the remainder of the first - line specifies an interpreter for the program. The shell executes the + If the program is a file beginning with ##!!, the remainder of the first + line specifies an interpreter for the program. The shell executes the specified interpreter on operating systems that do not handle this exe- cutable format themselves. The arguments to the interpreter consist of - a single optional argument following the interpreter name on the first - line of the program, followed by the name of the program, followed by + a single optional argument following the interpreter name on the first + line of the program, followed by the name of the program, followed by the command arguments, if any. CCOOMMMMAANNDD EEXXEECCUUTTIIOONN EENNVVIIRROONNMMEENNTT - The shell has an _e_x_e_c_u_t_i_o_n _e_n_v_i_r_o_n_m_e_n_t, which consists of the follow- + The shell has an _e_x_e_c_u_t_i_o_n _e_n_v_i_r_o_n_m_e_n_t, which consists of the follow- ing: - +o open files inherited by the shell at invocation, as modified by + +o open files inherited by the shell at invocation, as modified by redirections supplied to the eexxeecc builtin - +o the current working directory as set by ccdd, ppuusshhdd, or ppooppdd, or + +o the current working directory as set by ccdd, ppuusshhdd, or ppooppdd, or inherited by the shell at invocation - +o the file creation mode mask as set by uummaasskk or inherited from + +o the file creation mode mask as set by uummaasskk or inherited from the shell's parent +o current traps set by ttrraapp @@ -2101,225 +2110,225 @@ CCOOMMMMAANNDD EEXXEECCUUTTIIOONN EENNVVIIRROONNMMEENN +o shell parameters that are set by variable assignment or with sseett or inherited from the shell's parent in the environment - +o shell functions defined during execution or inherited from the + +o shell functions defined during execution or inherited from the shell's parent in the environment - +o options enabled at invocation (either by default or with com- + +o options enabled at invocation (either by default or with com- mand-line arguments) or by sseett +o options enabled by sshhoopptt +o shell aliases defined with aalliiaass - +o various process IDs, including those of background jobs, the + +o various process IDs, including those of background jobs, the value of $$$$, and the value of $$PPPPIIDD - When a simple command other than a builtin or shell function is to be - executed, it is invoked in a separate execution environment that con- - sists of the following. Unless otherwise noted, the values are inher- + When a simple command other than a builtin or shell function is to be + executed, it is invoked in a separate execution environment that con- + sists of the following. Unless otherwise noted, the values are inher- ited from the shell. - +o the shell's open files, plus any modifications and additions + +o the shell's open files, plus any modifications and additions specified by redirections to the command +o the current working directory +o the file creation mode mask - +o shell variables and functions marked for export, along with + +o shell variables and functions marked for export, along with variables exported for the command, passed in the environment +o traps caught by the shell are reset to the values inherited from the shell's parent, and traps ignored by the shell are ignored - A command invoked in this separate environment cannot affect the + A command invoked in this separate environment cannot affect the shell's execution environment. - Command substitution, commands grouped with parentheses, and asyn- - chronous commands are invoked in a subshell environment that is a - duplicate of the shell environment, except that traps caught by the - shell are reset to the values that the shell inherited from its parent + Command substitution, commands grouped with parentheses, and asyn- + chronous commands are invoked in a subshell environment that is a + duplicate of the shell environment, except that traps caught by the + shell are reset to the values that the shell inherited from its parent at invocation. Builtin commands that are invoked as part of a pipeline - are also executed in a subshell environment. Changes made to the sub- + are also executed in a subshell environment. Changes made to the sub- shell environment cannot affect the shell's execution environment. - If a command is followed by a && and job control is not active, the - default standard input for the command is the empty file _/_d_e_v_/_n_u_l_l. - Otherwise, the invoked command inherits the file descriptors of the + If a command is followed by a && and job control is not active, the + default standard input for the command is the empty file _/_d_e_v_/_n_u_l_l. + Otherwise, the invoked command inherits the file descriptors of the calling shell as modified by redirections. EENNVVIIRROONNMMEENNTT - When a program is invoked it is given an array of strings called the + When a program is invoked it is given an array of strings called the _e_n_v_i_r_o_n_m_e_n_t. This is a list of _n_a_m_e-_v_a_l_u_e pairs, of the form _n_a_m_e=_v_a_l_u_e. - The shell provides several ways to manipulate the environment. On + The shell provides several ways to manipulate the environment. On invocation, the shell scans its own environment and creates a parameter - for each name found, automatically marking it for _e_x_p_o_r_t to child pro- - cesses. Executed commands inherit the environment. The eexxppoorrtt and - ddeeccllaarree --xx commands allow parameters and functions to be added to and + for each name found, automatically marking it for _e_x_p_o_r_t to child pro- + cesses. Executed commands inherit the environment. The eexxppoorrtt and + ddeeccllaarree --xx commands allow parameters and functions to be added to and deleted from the environment. If the value of a parameter in the envi- - ronment is modified, the new value becomes part of the environment, - replacing the old. The environment inherited by any executed command - consists of the shell's initial environment, whose values may be modi- - fied in the shell, less any pairs removed by the uunnsseett command, plus + ronment is modified, the new value becomes part of the environment, + replacing the old. The environment inherited by any executed command + consists of the shell's initial environment, whose values may be modi- + fied in the shell, less any pairs removed by the uunnsseett command, plus any additions via the eexxppoorrtt and ddeeccllaarree --xx commands. - The environment for any _s_i_m_p_l_e _c_o_m_m_a_n_d or function may be augmented - temporarily by prefixing it with parameter assignments, as described + The environment for any _s_i_m_p_l_e _c_o_m_m_a_n_d or function may be augmented + temporarily by prefixing it with parameter assignments, as described above in PPAARRAAMMEETTEERRSS. These assignment statements affect only the envi- ronment seen by that command. - If the --kk option is set (see the sseett builtin command below), then _a_l_l - parameter assignments are placed in the environment for a command, not + If the --kk option is set (see the sseett builtin command below), then _a_l_l + parameter assignments are placed in the environment for a command, not just those that precede the command name. - When bbaasshh invokes an external command, the variable __ is set to the - full file name of the command and passed to that command in its envi- + When bbaasshh invokes an external command, the variable __ is set to the + full file name of the command and passed to that command in its envi- ronment. EEXXIITT SSTTAATTUUSS For the shell's purposes, a command which exits with a zero exit status - has succeeded. An exit status of zero indicates success. A non-zero - exit status indicates failure. When a command terminates on a fatal + has succeeded. An exit status of zero indicates success. A non-zero + exit status indicates failure. When a command terminates on a fatal signal _N, bbaasshh uses the value of 128+_N as the exit status. - If a command is not found, the child process created to execute it - returns a status of 127. If a command is found but is not executable, + If a command is not found, the child process created to execute it + returns a status of 127. If a command is found but is not executable, the return status is 126. If a command fails because of an error during expansion or redirection, the exit status is greater than zero. - Shell builtin commands return a status of 0 (_t_r_u_e) if successful, and - non-zero (_f_a_l_s_e) if an error occurs while they execute. All builtins + Shell builtin commands return a status of 0 (_t_r_u_e) if successful, and + non-zero (_f_a_l_s_e) if an error occurs while they execute. All builtins return an exit status of 2 to indicate incorrect usage. - BBaasshh itself returns the exit status of the last command executed, - unless a syntax error occurs, in which case it exits with a non-zero + BBaasshh itself returns the exit status of the last command executed, + unless a syntax error occurs, in which case it exits with a non-zero value. See also the eexxiitt builtin command below. SSIIGGNNAALLSS - When bbaasshh is interactive, in the absence of any traps, it ignores + When bbaasshh is interactive, in the absence of any traps, it ignores SSIIGGTTEERRMM (so that kkiillll 00 does not kill an interactive shell), and SSIIGGIINNTT - is caught and handled (so that the wwaaiitt builtin is interruptible). In - all cases, bbaasshh ignores SSIIGGQQUUIITT. If job control is in effect, bbaasshh + is caught and handled (so that the wwaaiitt builtin is interruptible). In + all cases, bbaasshh ignores SSIIGGQQUUIITT. If job control is in effect, bbaasshh ignores SSIIGGTTTTIINN, SSIIGGTTTTOOUU, and SSIIGGTTSSTTPP. Non-builtin commands run by bbaasshh have signal handlers set to the values - inherited by the shell from its parent. When job control is not in - effect, asynchronous commands ignore SSIIGGIINNTT and SSIIGGQQUUIITT in addition to - these inherited handlers. Commands run as a result of command substi- - tution ignore the keyboard-generated job control signals SSIIGGTTTTIINN, SSIIGGTT-- - TTOOUU, and SSIIGGTTSSTTPP. - - The shell exits by default upon receipt of a SSIIGGHHUUPP. Before exiting, - an interactive shell resends the SSIIGGHHUUPP to all jobs, running or + inherited by the shell from its parent. When job control is not in + effect, asynchronous commands ignore SSIIGGIINNTT and SSIIGGQQUUIITT in addition to + these inherited handlers. Commands run as a result of command substi- + tution ignore the keyboard-generated job control signals SSIIGGTTTTIINN, + SSIIGGTTTTOOUU, and SSIIGGTTSSTTPP. + + The shell exits by default upon receipt of a SSIIGGHHUUPP. Before exiting, + an interactive shell resends the SSIIGGHHUUPP to all jobs, running or stopped. Stopped jobs are sent SSIIGGCCOONNTT to ensure that they receive the - SSIIGGHHUUPP. To prevent the shell from sending the signal to a particular - job, it should be removed from the jobs table with the ddiissoowwnn builtin - (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) or marked to not receive SSIIGGHHUUPP + SSIIGGHHUUPP. To prevent the shell from sending the signal to a particular + job, it should be removed from the jobs table with the ddiissoowwnn builtin + (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) or marked to not receive SSIIGGHHUUPP using ddiissoowwnn --hh. - If the hhuuppoonneexxiitt shell option has been set with sshhoopptt, bbaasshh sends a + If the hhuuppoonneexxiitt shell option has been set with sshhoopptt, bbaasshh sends a SSIIGGHHUUPP to all jobs when an interactive login shell exits. - If bbaasshh is waiting for a command to complete and receives a signal for + If bbaasshh is waiting for a command to complete and receives a signal for which a trap has been set, the trap will not be executed until the com- - mand completes. When bbaasshh is waiting for an asynchronous command via - the wwaaiitt builtin, the reception of a signal for which a trap has been + mand completes. When bbaasshh is waiting for an asynchronous command via + the wwaaiitt builtin, the reception of a signal for which a trap has been set will cause the wwaaiitt builtin to return immediately with an exit sta- tus greater than 128, immediately after which the trap is executed. JJOOBB CCOONNTTRROOLL - _J_o_b _c_o_n_t_r_o_l refers to the ability to selectively stop (_s_u_s_p_e_n_d) the + _J_o_b _c_o_n_t_r_o_l refers to the ability to selectively stop (_s_u_s_p_e_n_d) the execution of processes and continue (_r_e_s_u_m_e) their execution at a later - point. A user typically employs this facility via an interactive + point. A user typically employs this facility via an interactive interface supplied jointly by the system's terminal driver and bbaasshh. - The shell associates a _j_o_b with each pipeline. It keeps a table of - currently executing jobs, which may be listed with the jjoobbss command. - When bbaasshh starts a job asynchronously (in the _b_a_c_k_g_r_o_u_n_d), it prints a + The shell associates a _j_o_b with each pipeline. It keeps a table of + currently executing jobs, which may be listed with the jjoobbss command. + When bbaasshh starts a job asynchronously (in the _b_a_c_k_g_r_o_u_n_d), it prints a line that looks like: [1] 25647 indicating that this job is job number 1 and that the process ID of the last process in the pipeline associated with this job is 25647. All of - the processes in a single pipeline are members of the same job. BBaasshh + the processes in a single pipeline are members of the same job. BBaasshh uses the _j_o_b abstraction as the basis for job control. - To facilitate the implementation of the user interface to job control, + To facilitate the implementation of the user interface to job control, the operating system maintains the notion of a _c_u_r_r_e_n_t _t_e_r_m_i_n_a_l _p_r_o_c_e_s_s _g_r_o_u_p _I_D. Members of this process group (processes whose process group ID is equal to the current terminal process group ID) receive keyboard- - generated signals such as SSIIGGIINNTT. These processes are said to be in - the _f_o_r_e_g_r_o_u_n_d. _B_a_c_k_g_r_o_u_n_d processes are those whose process group ID + generated signals such as SSIIGGIINNTT. These processes are said to be in + the _f_o_r_e_g_r_o_u_n_d. _B_a_c_k_g_r_o_u_n_d processes are those whose process group ID differs from the terminal's; such processes are immune to keyboard-gen- - erated signals. Only foreground processes are allowed to read from or + erated signals. Only foreground processes are allowed to read from or write to the terminal. Background processes which attempt to read from (write to) the terminal are sent a SSIIGGTTTTIINN ((SSIIGGTTTTOOUU)) signal by the ter- minal driver, which, unless caught, suspends the process. - If the operating system on which bbaasshh is running supports job control, + If the operating system on which bbaasshh is running supports job control, bbaasshh contains facilities to use it. Typing the _s_u_s_p_e_n_d character (typ- ically ^^ZZ, Control-Z) while a process is running causes that process to - be stopped and returns control to bbaasshh. Typing the _d_e_l_a_y_e_d _s_u_s_p_e_n_d - character (typically ^^YY, Control-Y) causes the process to be stopped - when it attempts to read input from the terminal, and control to be - returned to bbaasshh. The user may then manipulate the state of this job, - using the bbgg command to continue it in the background, the ffgg command + be stopped and returns control to bbaasshh. Typing the _d_e_l_a_y_e_d _s_u_s_p_e_n_d + character (typically ^^YY, Control-Y) causes the process to be stopped + when it attempts to read input from the terminal, and control to be + returned to bbaasshh. The user may then manipulate the state of this job, + using the bbgg command to continue it in the background, the ffgg command to continue it in the foreground, or the kkiillll command to kill it. A ^^ZZ takes effect immediately, and has the additional side effect of causing pending output and typeahead to be discarded. There are a number of ways to refer to a job in the shell. The charac- ter %% introduces a job name. Job number _n may be referred to as %%nn. A - job may also be referred to using a prefix of the name used to start - it, or using a substring that appears in its command line. For exam- + job may also be referred to using a prefix of the name used to start + it, or using a substring that appears in its command line. For exam- ple, %%ccee refers to a stopped ccee job. If a prefix matches more than one - job, bbaasshh reports an error. Using %%??ccee, on the other hand, refers to + job, bbaasshh reports an error. Using %%??ccee, on the other hand, refers to any job containing the string ccee in its command line. If the substring - matches more than one job, bbaasshh reports an error. The symbols %%%% and - %%++ refer to the shell's notion of the _c_u_r_r_e_n_t _j_o_b, which is the last - job stopped while it was in the foreground or started in the back- - ground. The _p_r_e_v_i_o_u_s _j_o_b may be referenced using %%--. In output per- + matches more than one job, bbaasshh reports an error. The symbols %%%% and + %%++ refer to the shell's notion of the _c_u_r_r_e_n_t _j_o_b, which is the last + job stopped while it was in the foreground or started in the back- + ground. The _p_r_e_v_i_o_u_s _j_o_b may be referenced using %%--. In output per- taining to jobs (e.g., the output of the jjoobbss command), the current job - is always flagged with a ++, and the previous job with a --. A single % - (with no accompanying job specification) also refers to the current + is always flagged with a ++, and the previous job with a --. A single % + (with no accompanying job specification) also refers to the current job. - Simply naming a job can be used to bring it into the foreground: %%11 is - a synonym for ````ffgg %%11'''', bringing job 1 from the background into the - foreground. Similarly, ````%%11 &&'''' resumes job 1 in the background, + Simply naming a job can be used to bring it into the foreground: %%11 is + a synonym for ````ffgg %%11'''', bringing job 1 from the background into the + foreground. Similarly, ````%%11 &&'''' resumes job 1 in the background, equivalent to ````bbgg %%11''''. - The shell learns immediately whenever a job changes state. Normally, + The shell learns immediately whenever a job changes state. Normally, bbaasshh waits until it is about to print a prompt before reporting changes - in a job's status so as to not interrupt any other output. If the --bb + in a job's status so as to not interrupt any other output. If the --bb option to the sseett builtin command is enabled, bbaasshh reports such changes - immediately. Any trap on SSIIGGCCHHLLDD is executed for each child that + immediately. Any trap on SSIIGGCCHHLLDD is executed for each child that exits. - If an attempt to exit bbaasshh is made while jobs are stopped, the shell + If an attempt to exit bbaasshh is made while jobs are stopped, the shell prints a warning message. The jjoobbss command may then be used to inspect their status. If a second attempt to exit is made without an interven- - ing command, the shell does not print another warning, and the stopped + ing command, the shell does not print another warning, and the stopped jobs are terminated. PPRROOMMPPTTIINNGG When executing interactively, bbaasshh displays the primary prompt PPSS11 when - it is ready to read a command, and the secondary prompt PPSS22 when it - needs more input to complete a command. BBaasshh allows these prompt - strings to be customized by inserting a number of backslash-escaped + it is ready to read a command, and the secondary prompt PPSS22 when it + needs more input to complete a command. BBaasshh allows these prompt + strings to be customized by inserting a number of backslash-escaped special characters that are decoded as follows: \\aa an ASCII bell character (07) - \\dd the date in "Weekday Month Date" format (e.g., "Tue May + \\dd the date in "Weekday Month Date" format (e.g., "Tue May 26") \\DD{{_f_o_r_m_a_t}} - the _f_o_r_m_a_t is passed to _s_t_r_f_t_i_m_e(3) and the result is - inserted into the prompt string; an empty _f_o_r_m_a_t results + the _f_o_r_m_a_t is passed to _s_t_r_f_t_i_m_e(3) and the result is + inserted into the prompt string; an empty _f_o_r_m_a_t results in a locale-specific time representation. The braces are required \\ee an ASCII escape character (033) @@ -2329,7 +2338,7 @@ PPRROOMMPPTTIINNGG \\ll the basename of the shell's terminal device name \\nn newline \\rr carriage return - \\ss the name of the shell, the basename of $$00 (the portion + \\ss the name of the shell, the basename of $$00 (the portion following the final slash) \\tt the current time in 24-hour HH:MM:SS format \\TT the current time in 12-hour HH:MM:SS format @@ -2338,7 +2347,7 @@ PPRROOMMPPTTIINNGG \\uu the username of the current user \\vv the version of bbaasshh (e.g., 2.00) \\VV the release of bbaasshh, version + patch level (e.g., 2.00.0) - \\ww the current working directory, with $$HHOOMMEE abbreviated + \\ww the current working directory, with $$HHOOMMEE abbreviated with a tilde \\WW the basename of the current working directory, with $$HHOOMMEE abbreviated with a tilde @@ -2347,63 +2356,63 @@ PPRROOMMPPTTIINNGG \\$$ if the effective UID is 0, a ##, otherwise a $$ \\_n_n_n the character corresponding to the octal number _n_n_n \\\\ a backslash - \\[[ begin a sequence of non-printing characters, which could - be used to embed a terminal control sequence into the + \\[[ begin a sequence of non-printing characters, which could + be used to embed a terminal control sequence into the prompt \\]] end a sequence of non-printing characters - The command number and the history number are usually different: the - history number of a command is its position in the history list, which - may include commands restored from the history file (see HHIISSTTOORRYY - below), while the command number is the position in the sequence of - commands executed during the current shell session. After the string - is decoded, it is expanded via parameter expansion, command substitu- - tion, arithmetic expansion, and quote removal, subject to the value of - the pprroommppttvvaarrss shell option (see the description of the sshhoopptt command + The command number and the history number are usually different: the + history number of a command is its position in the history list, which + may include commands restored from the history file (see HHIISSTTOORRYY + below), while the command number is the position in the sequence of + commands executed during the current shell session. After the string + is decoded, it is expanded via parameter expansion, command substitu- + tion, arithmetic expansion, and quote removal, subject to the value of + the pprroommppttvvaarrss shell option (see the description of the sshhoopptt command under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). RREEAADDLLIINNEE - This is the library that handles reading input when using an interac- + This is the library that handles reading input when using an interac- tive shell, unless the ----nnooeeddiittiinngg option is given at shell invocation. By default, the line editing commands are similar to those of emacs. A - vi-style line editing interface is also available. To turn off line - editing after the shell is running, use the ++oo eemmaaccss or ++oo vvii options + vi-style line editing interface is also available. To turn off line + editing after the shell is running, use the ++oo eemmaaccss or ++oo vvii options to the sseett builtin (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). RReeaaddlliinnee NNoottaattiioonn In this section, the emacs-style notation is used to denote keystrokes. - Control keys are denoted by C-_k_e_y, e.g., C-n means Control-N. Simi- - larly, _m_e_t_a keys are denoted by M-_k_e_y, so M-x means Meta-X. (On key- - boards without a _m_e_t_a key, M-_x means ESC _x, i.e., press the Escape key + Control keys are denoted by C-_k_e_y, e.g., C-n means Control-N. Simi- + larly, _m_e_t_a keys are denoted by M-_k_e_y, so M-x means Meta-X. (On key- + boards without a _m_e_t_a key, M-_x means ESC _x, i.e., press the Escape key then the _x key. This makes ESC the _m_e_t_a _p_r_e_f_i_x. The combination M-C-_x - means ESC-Control-_x, or press the Escape key then hold the Control key + means ESC-Control-_x, or press the Escape key then hold the Control key while pressing the _x key.) Readline commands may be given numeric _a_r_g_u_m_e_n_t_s, which normally act as - a repeat count. Sometimes, however, it is the sign of the argument - that is significant. Passing a negative argument to a command that - acts in the forward direction (e.g., kkiillll--lliinnee) causes that command to - act in a backward direction. Commands whose behavior with arguments + a repeat count. Sometimes, however, it is the sign of the argument + that is significant. Passing a negative argument to a command that + acts in the forward direction (e.g., kkiillll--lliinnee) causes that command to + act in a backward direction. Commands whose behavior with arguments deviates from this are noted below. - When a command is described as _k_i_l_l_i_n_g text, the text deleted is saved + When a command is described as _k_i_l_l_i_n_g text, the text deleted is saved for possible future retrieval (_y_a_n_k_i_n_g). The killed text is saved in a _k_i_l_l _r_i_n_g. Consecutive kills cause the text to be accumulated into one unit, which can be yanked all at once. Commands which do not kill text separate the chunks of text on the kill ring. RReeaaddlliinnee IInniittiiaalliizzaattiioonn - Readline is customized by putting commands in an initialization file - (the _i_n_p_u_t_r_c file). The name of this file is taken from the value of - the IINNPPUUTTRRCC variable. If that variable is unset, the default is - _~_/_._i_n_p_u_t_r_c. When a program which uses the readline library starts up, + Readline is customized by putting commands in an initialization file + (the _i_n_p_u_t_r_c file). The name of this file is taken from the value of + the IINNPPUUTTRRCC variable. If that variable is unset, the default is + _~_/_._i_n_p_u_t_r_c. When a program which uses the readline library starts up, the initialization file is read, and the key bindings and variables are - set. There are only a few basic constructs allowed in the readline - initialization file. Blank lines are ignored. Lines beginning with a - ## are comments. Lines beginning with a $$ indicate conditional con- + set. There are only a few basic constructs allowed in the readline + initialization file. Blank lines are ignored. Lines beginning with a + ## are comments. Lines beginning with a $$ indicate conditional con- structs. Other lines denote key bindings and variable settings. - The default key-bindings may be changed with an _i_n_p_u_t_r_c file. Other + The default key-bindings may be changed with an _i_n_p_u_t_r_c file. Other programs that use this library may add their own commands and bindings. For example, placing @@ -2411,19 +2420,19 @@ RREEAADDLLIINNEE M-Control-u: universal-argument or C-Meta-u: universal-argument - into the _i_n_p_u_t_r_c would make M-C-u execute the readline command _u_n_i_v_e_r_- + into the _i_n_p_u_t_r_c would make M-C-u execute the readline command _u_n_i_v_e_r_- _s_a_l_-_a_r_g_u_m_e_n_t. - The following symbolic character names are recognized: _R_U_B_O_U_T, _D_E_L, + The following symbolic character names are recognized: _R_U_B_O_U_T, _D_E_L, _E_S_C, _L_F_D, _N_E_W_L_I_N_E, _R_E_T, _R_E_T_U_R_N, _S_P_C, _S_P_A_C_E, and _T_A_B. - In addition to command names, readline allows keys to be bound to a + In addition to command names, readline allows keys to be bound to a string that is inserted when the key is pressed (a _m_a_c_r_o). RReeaaddlliinnee KKeeyy BBiinnddiinnggss - The syntax for controlling key bindings in the _i_n_p_u_t_r_c file is simple. - All that is required is the name of the command or the text of a macro - and a key sequence to which it should be bound. The name may be speci- + The syntax for controlling key bindings in the _i_n_p_u_t_r_c file is simple. + All that is required is the name of the command or the text of a macro + and a key sequence to which it should be bound. The name may be speci- fied in one of two ways: as a symbolic key name, possibly with _M_e_t_a_- or _C_o_n_t_r_o_l_- prefixes, or as a key sequence. @@ -2434,15 +2443,15 @@ RREEAADDLLIINNEE Meta-Rubout: backward-kill-word Control-o: "> output" - In the above example, _C_-_u is bound to the function uunniivveerrssaall--aarrgguummeenntt, - _M_-_D_E_L is bound to the function bbaacckkwwaarrdd--kkiillll--wwoorrdd, and _C_-_o is bound to - run the macro expressed on the right hand side (that is, to insert the + In the above example, _C_-_u is bound to the function uunniivveerrssaall--aarrgguummeenntt, + _M_-_D_E_L is bound to the function bbaacckkwwaarrdd--kkiillll--wwoorrdd, and _C_-_o is bound to + run the macro expressed on the right hand side (that is, to insert the text ``> output'' into the line). - In the second form, ""kkeeyysseeqq"":_f_u_n_c_t_i_o_n_-_n_a_m_e or _m_a_c_r_o, kkeeyysseeqq differs - from kkeeyynnaammee above in that strings denoting an entire key sequence may - be specified by placing the sequence within double quotes. Some GNU - Emacs style key escapes can be used, as in the following example, but + In the second form, ""kkeeyysseeqq"":_f_u_n_c_t_i_o_n_-_n_a_m_e or _m_a_c_r_o, kkeeyysseeqq differs + from kkeeyynnaammee above in that strings denoting an entire key sequence may + be specified by placing the sequence within double quotes. Some GNU + Emacs style key escapes can be used, as in the following example, but the symbolic character names are not recognized. "\C-u": universal-argument @@ -2450,7 +2459,7 @@ RREEAADDLLIINNEE "\e[11~": "Function Key 1" In this example, _C_-_u is again bound to the function uunniivveerrssaall--aarrgguummeenntt. - _C_-_x _C_-_r is bound to the function rree--rreeaadd--iinniitt--ffiillee, and _E_S_C _[ _1 _1 _~ is + _C_-_x _C_-_r is bound to the function rree--rreeaadd--iinniitt--ffiillee, and _E_S_C _[ _1 _1 _~ is bound to insert the text ``Function Key 1''. The full set of GNU Emacs style escape sequences is @@ -2461,7 +2470,7 @@ RREEAADDLLIINNEE \\"" literal " \\'' literal ' - In addition to the GNU Emacs style escape sequences, a second set of + In addition to the GNU Emacs style escape sequences, a second set of backslash escapes is available: \\aa alert (bell) \\bb backspace @@ -2471,20 +2480,20 @@ RREEAADDLLIINNEE \\rr carriage return \\tt horizontal tab \\vv vertical tab - \\_n_n_n the eight-bit character whose value is the octal value + \\_n_n_n the eight-bit character whose value is the octal value _n_n_n (one to three digits) - \\xx_H_H the eight-bit character whose value is the hexadecimal + \\xx_H_H the eight-bit character whose value is the hexadecimal value _H_H (one or two hex digits) When entering the text of a macro, single or double quotes must be used to indicate a macro definition. Unquoted text is assumed to be a func- - tion name. In the macro body, the backslash escapes described above - are expanded. Backslash will quote any other character in the macro + tion name. In the macro body, the backslash escapes described above + are expanded. Backslash will quote any other character in the macro text, including " and '. - BBaasshh allows the current readline key bindings to be displayed or modi- - fied with the bbiinndd builtin command. The editing mode may be switched - during interactive use by using the --oo option to the sseett builtin com- + BBaasshh allows the current readline key bindings to be displayed or modi- + fied with the bbiinndd builtin command. The editing mode may be switched + during interactive use by using the --oo option to the sseett builtin com- mand (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). RReeaaddlliinnee VVaarriiaabblleess @@ -2494,41 +2503,41 @@ RREEAADDLLIINNEE sseett _v_a_r_i_a_b_l_e_-_n_a_m_e _v_a_l_u_e - Except where noted, readline variables can take the values OOnn or OOffff. + Except where noted, readline variables can take the values OOnn or OOffff. The variables and their default values are: bbeellll--ssttyyllee ((aauuddiibbllee)) - Controls what happens when readline wants to ring the terminal + Controls what happens when readline wants to ring the terminal bell. If set to nnoonnee, readline never rings the bell. If set to - vviissiibbllee, readline uses a visible bell if one is available. If + vviissiibbllee, readline uses a visible bell if one is available. If set to aauuddiibbllee, readline attempts to ring the terminal's bell. bbiinndd--ttttyy--ssppeecciiaall--cchhaarrss ((OOnn)) - If set to OOnn, readline attempts to bind the control characters + If set to OOnn, readline attempts to bind the control characters treated specially by the kernel's terminal driver to their read- line equivalents. ccoommmmeenntt--bbeeggiinn ((````##'''')) - The string that is inserted when the readline iinnsseerrtt--ccoommmmeenntt + The string that is inserted when the readline iinnsseerrtt--ccoommmmeenntt command is executed. This command is bound to MM--## in emacs mode and to ## in vi command mode. ccoommpplleettiioonn--iiggnnoorree--ccaassee ((OOffff)) If set to OOnn, readline performs filename matching and completion in a case-insensitive fashion. ccoommpplleettiioonn--qquueerryy--iitteemmss ((110000)) - This determines when the user is queried about viewing the num- - ber of possible completions generated by the ppoossssiibbllee--ccoommppllee-- - ttiioonnss command. It may be set to any integer value greater than - or equal to zero. If the number of possible completions is + This determines when the user is queried about viewing the num- + ber of possible completions generated by the ppoossssiibbllee--ccoommppllee-- + ttiioonnss command. It may be set to any integer value greater than + or equal to zero. If the number of possible completions is greater than or equal to the value of this variable, the user is - asked whether or not he wishes to view them; otherwise they are + asked whether or not he wishes to view them; otherwise they are simply listed on the terminal. ccoonnvveerrtt--mmeettaa ((OOnn)) - If set to OOnn, readline will convert characters with the eighth + If set to OOnn, readline will convert characters with the eighth bit set to an ASCII key sequence by stripping the eighth bit and - prefixing an escape character (in effect, using escape as the + prefixing an escape character (in effect, using escape as the _m_e_t_a _p_r_e_f_i_x). ddiissaabbllee--ccoommpplleettiioonn ((OOffff)) If set to OOnn, readline will inhibit word completion. Completion - characters will be inserted into the line as if they had been + characters will be inserted into the line as if they had been mapped to sseellff--iinnsseerrtt. eeddiittiinngg--mmooddee ((eemmaaccss)) Controls whether readline begins with a set of key bindings sim- @@ -2536,111 +2545,111 @@ RREEAADDLLIINNEE vvii. eennaabbllee--kkeeyyppaadd ((OOffff)) When set to OOnn, readline will try to enable the application key- - pad when it is called. Some systems need this to enable the + pad when it is called. Some systems need this to enable the arrow keys. eexxppaanndd--ttiillddee ((OOffff)) - If set to oonn, tilde expansion is performed when readline + If set to oonn, tilde expansion is performed when readline attempts word completion. hhiissttoorryy--pprreesseerrvvee--ppooiinntt - If set to oonn, the history code attempts to place point at the - same location on each history line retrieved with pprreevviioouuss--hhiiss-- + If set to oonn, the history code attempts to place point at the + same location on each history line retrieved with pprreevviioouuss--hhiiss-- ttoorryy or nneexxtt--hhiissttoorryy. hhoorriizzoonnttaall--ssccrroollll--mmooddee ((OOffff)) - When set to OOnn, makes readline use a single line for display, + When set to OOnn, makes readline use a single line for display, scrolling the input horizontally on a single screen line when it - becomes longer than the screen width rather than wrapping to a + becomes longer than the screen width rather than wrapping to a new line. iinnppuutt--mmeettaa ((OOffff)) - If set to OOnn, readline will enable eight-bit input (that is, it - will not strip the high bit from the characters it reads), + If set to OOnn, readline will enable eight-bit input (that is, it + will not strip the high bit from the characters it reads), regardless of what the terminal claims it can support. The name mmeettaa--ffllaagg is a synonym for this variable. iisseeaarrcchh--tteerrmmiinnaattoorrss ((````CC--[[CC--JJ'''')) - The string of characters that should terminate an incremental - search without subsequently executing the character as a com- - mand. If this variable has not been given a value, the charac- + The string of characters that should terminate an incremental + search without subsequently executing the character as a com- + mand. If this variable has not been given a value, the charac- ters _E_S_C and _C_-_J will terminate an incremental search. kkeeyymmaapp ((eemmaaccss)) - Set the current readline keymap. The set of valid keymap names - is _e_m_a_c_s_, _e_m_a_c_s_-_s_t_a_n_d_a_r_d_, _e_m_a_c_s_-_m_e_t_a_, _e_m_a_c_s_-_c_t_l_x_, _v_i_, _v_i_-_c_o_m_- - _m_a_n_d, and _v_i_-_i_n_s_e_r_t. _v_i is equivalent to _v_i_-_c_o_m_m_a_n_d; _e_m_a_c_s is - equivalent to _e_m_a_c_s_-_s_t_a_n_d_a_r_d. The default value is _e_m_a_c_s; the + Set the current readline keymap. The set of valid keymap names + is _e_m_a_c_s_, _e_m_a_c_s_-_s_t_a_n_d_a_r_d_, _e_m_a_c_s_-_m_e_t_a_, _e_m_a_c_s_-_c_t_l_x_, _v_i_, _v_i_-_c_o_m_- + _m_a_n_d, and _v_i_-_i_n_s_e_r_t. _v_i is equivalent to _v_i_-_c_o_m_m_a_n_d; _e_m_a_c_s is + equivalent to _e_m_a_c_s_-_s_t_a_n_d_a_r_d. The default value is _e_m_a_c_s; the value of eeddiittiinngg--mmooddee also affects the default keymap. mmaarrkk--ddiirreeccttoorriieess ((OOnn)) If set to OOnn, completed directory names have a slash appended. mmaarrkk--mmooddiiffiieedd--lliinneess ((OOffff)) - If set to OOnn, history lines that have been modified are dis- + If set to OOnn, history lines that have been modified are dis- played with a preceding asterisk (**). mmaarrkk--ssyymmlliinnkkeedd--ddiirreeccttoorriieess ((OOffff)) If set to OOnn, completed names which are symbolic links to direc- - tories have a slash appended (subject to the value of + tories have a slash appended (subject to the value of mmaarrkk--ddiirreeccttoorriieess). mmaattcchh--hhiiddddeenn--ffiilleess ((OOnn)) - This variable, when set to OOnn, causes readline to match files - whose names begin with a `.' (hidden files) when performing - filename completion, unless the leading `.' is supplied by the + This variable, when set to OOnn, causes readline to match files + whose names begin with a `.' (hidden files) when performing + filename completion, unless the leading `.' is supplied by the user in the filename to be completed. oouuttppuutt--mmeettaa ((OOffff)) - If set to OOnn, readline will display characters with the eighth + If set to OOnn, readline will display characters with the eighth bit set directly rather than as a meta-prefixed escape sequence. ppaaggee--ccoommpplleettiioonnss ((OOnn)) - If set to OOnn, readline uses an internal _m_o_r_e-like pager to dis- + If set to OOnn, readline uses an internal _m_o_r_e-like pager to dis- play a screenful of possible completions at a time. pprriinntt--ccoommpplleettiioonnss--hhoorriizzoonnttaallllyy ((OOffff)) - If set to OOnn, readline will display completions with matches - sorted horizontally in alphabetical order, rather than down the + If set to OOnn, readline will display completions with matches + sorted horizontally in alphabetical order, rather than down the screen. sshhooww--aallll--iiff--aammbbiigguuoouuss ((OOffff)) - This alters the default behavior of the completion functions. + This alters the default behavior of the completion functions. If set to oonn, words which have more than one possible completion - cause the matches to be listed immediately instead of ringing + cause the matches to be listed immediately instead of ringing the bell. sshhooww--aallll--iiff--uunnmmooddiiffiieedd ((OOffff)) - This alters the default behavior of the completion functions in + This alters the default behavior of the completion functions in a fashion similar to sshhooww--aallll--iiff--aammbbiigguuoouuss. If set to oonn, words - which have more than one possible completion without any possi- - ble partial completion (the possible completions don't share a - common prefix) cause the matches to be listed immediately + which have more than one possible completion without any possi- + ble partial completion (the possible completions don't share a + common prefix) cause the matches to be listed immediately instead of ringing the bell. vviissiibbllee--ssttaattss ((OOffff)) - If set to OOnn, a character denoting a file's type as reported by - _s_t_a_t(2) is appended to the filename when listing possible com- + If set to OOnn, a character denoting a file's type as reported by + _s_t_a_t(2) is appended to the filename when listing possible com- pletions. RReeaaddlliinnee CCoonnddiittiioonnaall CCoonnssttrruuccttss - Readline implements a facility similar in spirit to the conditional - compilation features of the C preprocessor which allows key bindings - and variable settings to be performed as the result of tests. There + Readline implements a facility similar in spirit to the conditional + compilation features of the C preprocessor which allows key bindings + and variable settings to be performed as the result of tests. There are four parser directives used. - $$iiff The $$iiff construct allows bindings to be made based on the edit- - ing mode, the terminal being used, or the application using - readline. The text of the test extends to the end of the line; + $$iiff The $$iiff construct allows bindings to be made based on the edit- + ing mode, the terminal being used, or the application using + readline. The text of the test extends to the end of the line; no characters are required to isolate it. - mmooddee The mmooddee== form of the $$iiff directive is used to test - whether readline is in emacs or vi mode. This may be - used in conjunction with the sseett kkeeyymmaapp command, for - instance, to set bindings in the _e_m_a_c_s_-_s_t_a_n_d_a_r_d and - _e_m_a_c_s_-_c_t_l_x keymaps only if readline is starting out in + mmooddee The mmooddee== form of the $$iiff directive is used to test + whether readline is in emacs or vi mode. This may be + used in conjunction with the sseett kkeeyymmaapp command, for + instance, to set bindings in the _e_m_a_c_s_-_s_t_a_n_d_a_r_d and + _e_m_a_c_s_-_c_t_l_x keymaps only if readline is starting out in emacs mode. - tteerrmm The tteerrmm== form may be used to include terminal-specific + tteerrmm The tteerrmm== form may be used to include terminal-specific key bindings, perhaps to bind the key sequences output by the terminal's function keys. The word on the right side of the == is tested against the both full name of the ter- - minal and the portion of the terminal name before the - first --. This allows _s_u_n to match both _s_u_n and _s_u_n_-_c_m_d, + minal and the portion of the terminal name before the + first --. This allows _s_u_n to match both _s_u_n and _s_u_n_-_c_m_d, for instance. aapppplliiccaattiioonn The aapppplliiccaattiioonn construct is used to include application- specific settings. Each program using the readline - library sets the _a_p_p_l_i_c_a_t_i_o_n _n_a_m_e, and an initialization + library sets the _a_p_p_l_i_c_a_t_i_o_n _n_a_m_e, and an initialization file can test for a particular value. This could be used - to bind key sequences to functions useful for a specific - program. For instance, the following command adds a key - sequence that quotes the current or previous word in + to bind key sequences to functions useful for a specific + program. For instance, the following command adds a key + sequence that quotes the current or previous word in Bash: $$iiff Bash @@ -2655,51 +2664,51 @@ RREEAADDLLIINNEE test fails. $$iinncclluuddee - This directive takes a single filename as an argument and reads - commands and bindings from that file. For example, the follow- + This directive takes a single filename as an argument and reads + commands and bindings from that file. For example, the follow- ing directive would read _/_e_t_c_/_i_n_p_u_t_r_c: $$iinncclluuddee _/_e_t_c_/_i_n_p_u_t_r_c SSeeaarrcchhiinngg - Readline provides commands for searching through the command history + Readline provides commands for searching through the command history (see HHIISSTTOORRYY below) for lines containing a specified string. There are two search modes: _i_n_c_r_e_m_e_n_t_a_l and _n_o_n_-_i_n_c_r_e_m_e_n_t_a_l. - Incremental searches begin before the user has finished typing the - search string. As each character of the search string is typed, read- + Incremental searches begin before the user has finished typing the + search string. As each character of the search string is typed, read- line displays the next entry from the history matching the string typed - so far. An incremental search requires only as many characters as - needed to find the desired history entry. The characters present in - the value of the iisseeaarrcchh--tteerrmmiinnaattoorrss variable are used to terminate an + so far. An incremental search requires only as many characters as + needed to find the desired history entry. The characters present in + the value of the iisseeaarrcchh--tteerrmmiinnaattoorrss variable are used to terminate an incremental search. If that variable has not been assigned a value the - Escape and Control-J characters will terminate an incremental search. - Control-G will abort an incremental search and restore the original - line. When the search is terminated, the history entry containing the + Escape and Control-J characters will terminate an incremental search. + Control-G will abort an incremental search and restore the original + line. When the search is terminated, the history entry containing the search string becomes the current line. - To find other matching entries in the history list, type Control-S or - Control-R as appropriate. This will search backward or forward in the - history for the next entry matching the search string typed so far. - Any other key sequence bound to a readline command will terminate the - search and execute that command. For instance, a _n_e_w_l_i_n_e will termi- + To find other matching entries in the history list, type Control-S or + Control-R as appropriate. This will search backward or forward in the + history for the next entry matching the search string typed so far. + Any other key sequence bound to a readline command will terminate the + search and execute that command. For instance, a _n_e_w_l_i_n_e will termi- nate the search and accept the line, thereby executing the command from the history list. Readline remembers the last incremental search string. If two Control- - Rs are typed without any intervening characters defining a new search + Rs are typed without any intervening characters defining a new search string, any remembered search string is used. - Non-incremental searches read the entire search string before starting - to search for matching history lines. The search string may be typed + Non-incremental searches read the entire search string before starting + to search for matching history lines. The search string may be typed by the user or be part of the contents of the current line. RReeaaddlliinnee CCoommmmaanndd NNaammeess - The following is a list of the names of the commands and the default + The following is a list of the names of the commands and the default key sequences to which they are bound. Command names without an accom- panying key sequence are unbound by default. In the following descrip- - tions, _p_o_i_n_t refers to the current cursor position, and _m_a_r_k refers to - a cursor position saved by the sseett--mmaarrkk command. The text between the + tions, _p_o_i_n_t refers to the current cursor position, and _m_a_r_k refers to + a cursor position saved by the sseett--mmaarrkk command. The text between the point and mark is referred to as the _r_e_g_i_o_n. CCoommmmaannddss ffoorr MMoovviinngg @@ -2715,11 +2724,11 @@ RREEAADDLLIINNEE Move forward to the end of the next word. Words are composed of alphanumeric characters (letters and digits). bbaacckkwwaarrdd--wwoorrdd ((MM--bb)) - Move back to the start of the current or previous word. Words + Move back to the start of the current or previous word. Words are composed of alphanumeric characters (letters and digits). cclleeaarr--ssccrreeeenn ((CC--ll)) - Clear the screen leaving the current line at the top of the - screen. With an argument, refresh the current line without + Clear the screen leaving the current line at the top of the + screen. With an argument, refresh the current line without clearing the screen. rreeddrraaww--ccuurrrreenntt--lliinnee Refresh the current line. @@ -2727,132 +2736,132 @@ RREEAADDLLIINNEE CCoommmmaannddss ffoorr MMaanniippuullaattiinngg tthhee HHiissttoorryy aacccceepptt--lliinnee ((NNeewwlliinnee,, RReettuurrnn)) Accept the line regardless of where the cursor is. If this line - is non-empty, add it to the history list according to the state - of the HHIISSTTCCOONNTTRROOLL variable. If the line is a modified history + is non-empty, add it to the history list according to the state + of the HHIISSTTCCOONNTTRROOLL variable. If the line is a modified history line, then restore the history line to its original state. pprreevviioouuss--hhiissttoorryy ((CC--pp)) Fetch the previous command from the history list, moving back in the list. nneexxtt--hhiissttoorryy ((CC--nn)) - Fetch the next command from the history list, moving forward in + Fetch the next command from the history list, moving forward in the list. bbeeggiinnnniinngg--ooff--hhiissttoorryy ((MM--<<)) Move to the first line in the history. eenndd--ooff--hhiissttoorryy ((MM-->>)) - Move to the end of the input history, i.e., the line currently + Move to the end of the input history, i.e., the line currently being entered. rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((CC--rr)) - Search backward starting at the current line and moving `up' - through the history as necessary. This is an incremental + Search backward starting at the current line and moving `up' + through the history as necessary. This is an incremental search. ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((CC--ss)) - Search forward starting at the current line and moving `down' - through the history as necessary. This is an incremental + Search forward starting at the current line and moving `down' + through the history as necessary. This is an incremental search. nnoonn--iinnccrreemmeennttaall--rreevveerrssee--sseeaarrcchh--hhiissttoorryy ((MM--pp)) Search backward through the history starting at the current line - using a non-incremental search for a string supplied by the + using a non-incremental search for a string supplied by the user. nnoonn--iinnccrreemmeennttaall--ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((MM--nn)) - Search forward through the history using a non-incremental + Search forward through the history using a non-incremental search for a string supplied by the user. hhiissttoorryy--sseeaarrcchh--ffoorrwwaarrdd - Search forward through the history for the string of characters - between the start of the current line and the point. This is a + Search forward through the history for the string of characters + between the start of the current line and the point. This is a non-incremental search. hhiissttoorryy--sseeaarrcchh--bbaacckkwwaarrdd Search backward through the history for the string of characters - between the start of the current line and the point. This is a + between the start of the current line and the point. This is a non-incremental search. yyaannkk--nntthh--aarrgg ((MM--CC--yy)) - Insert the first argument to the previous command (usually the + Insert the first argument to the previous command (usually the second word on the previous line) at point. With an argument _n, - insert the _nth word from the previous command (the words in the - previous command begin with word 0). A negative argument + insert the _nth word from the previous command (the words in the + previous command begin with word 0). A negative argument inserts the _nth word from the end of the previous command. Once - the argument _n is computed, the argument is extracted as if the + the argument _n is computed, the argument is extracted as if the "!_n" history expansion had been specified. yyaannkk--llaasstt--aarrgg ((MM--..,, MM--__)) - Insert the last argument to the previous command (the last word - of the previous history entry). With an argument, behave - exactly like yyaannkk--nntthh--aarrgg. Successive calls to yyaannkk--llaasstt--aarrgg - move back through the history list, inserting the last argument + Insert the last argument to the previous command (the last word + of the previous history entry). With an argument, behave + exactly like yyaannkk--nntthh--aarrgg. Successive calls to yyaannkk--llaasstt--aarrgg + move back through the history list, inserting the last argument of each line in turn. The history expansion facilities are used - to extract the last argument, as if the "!$" history expansion + to extract the last argument, as if the "!$" history expansion had been specified. sshheellll--eexxppaanndd--lliinnee ((MM--CC--ee)) Expand the line as the shell does. This performs alias and his- tory expansion as well as all of the shell word expansions. See - HHIISSTTOORRYY EEXXPPAANNSSIIOONN below for a description of history expansion. + HHIISSTTOORRYY EEXXPPAANNSSIIOONN below for a description of history expansion. hhiissttoorryy--eexxppaanndd--lliinnee ((MM--^^)) - Perform history expansion on the current line. See HHIISSTTOORRYY + Perform history expansion on the current line. See HHIISSTTOORRYY EEXXPPAANNSSIIOONN below for a description of history expansion. mmaaggiicc--ssppaaccee - Perform history expansion on the current line and insert a + Perform history expansion on the current line and insert a space. See HHIISSTTOORRYY EEXXPPAANNSSIIOONN below for a description of history expansion. aalliiaass--eexxppaanndd--lliinnee - Perform alias expansion on the current line. See AALLIIAASSEESS above + Perform alias expansion on the current line. See AALLIIAASSEESS above for a description of alias expansion. hhiissttoorryy--aanndd--aalliiaass--eexxppaanndd--lliinnee Perform history and alias expansion on the current line. iinnsseerrtt--llaasstt--aarrgguummeenntt ((MM--..,, MM--__)) A synonym for yyaannkk--llaasstt--aarrgg. ooppeerraattee--aanndd--ggeett--nneexxtt ((CC--oo)) - Accept the current line for execution and fetch the next line - relative to the current line from the history for editing. Any + Accept the current line for execution and fetch the next line + relative to the current line from the history for editing. Any argument is ignored. eeddiitt--aanndd--eexxeeccuuttee--ccoommmmaanndd ((CC--xxCC--ee)) - Invoke an editor on the current command line, and execute the - result as shell commands. BBaasshh attempts to invoke $$FFCCEEDDIITT, + Invoke an editor on the current command line, and execute the + result as shell commands. BBaasshh attempts to invoke $$FFCCEEDDIITT, $$EEDDIITTOORR, and _e_m_a_c_s as the editor, in that order. CCoommmmaannddss ffoorr CChhaannggiinngg TTeexxtt ddeelleettee--cchhaarr ((CC--dd)) - Delete the character at point. If point is at the beginning of - the line, there are no characters in the line, and the last + Delete the character at point. If point is at the beginning of + the line, there are no characters in the line, and the last character typed was not bound to ddeelleettee--cchhaarr, then return EEOOFF. bbaacckkwwaarrdd--ddeelleettee--cchhaarr ((RRuubboouutt)) - Delete the character behind the cursor. When given a numeric + Delete the character behind the cursor. When given a numeric argument, save the deleted text on the kill ring. ffoorrwwaarrdd--bbaacckkwwaarrdd--ddeelleettee--cchhaarr - Delete the character under the cursor, unless the cursor is at + Delete the character under the cursor, unless the cursor is at the end of the line, in which case the character behind the cur- sor is deleted. qquuootteedd--iinnsseerrtt ((CC--qq,, CC--vv)) - Add the next character typed to the line verbatim. This is how + Add the next character typed to the line verbatim. This is how to insert characters like CC--qq, for example. ttaabb--iinnsseerrtt ((CC--vv TTAABB)) Insert a tab character. sseellff--iinnsseerrtt ((aa,, bb,, AA,, 11,, !!,, ......)) Insert the character typed. ttrraannssppoossee--cchhaarrss ((CC--tt)) - Drag the character before point forward over the character at - point, moving point forward as well. If point is at the end of - the line, then this transposes the two characters before point. + Drag the character before point forward over the character at + point, moving point forward as well. If point is at the end of + the line, then this transposes the two characters before point. Negative arguments have no effect. ttrraannssppoossee--wwoorrddss ((MM--tt)) - Drag the word before point past the word after point, moving - point over that word as well. If point is at the end of the + Drag the word before point past the word after point, moving + point over that word as well. If point is at the end of the line, this transposes the last two words on the line. uuppccaassee--wwoorrdd ((MM--uu)) - Uppercase the current (or following) word. With a negative + Uppercase the current (or following) word. With a negative argument, uppercase the previous word, but do not move point. ddoowwnnccaassee--wwoorrdd ((MM--ll)) - Lowercase the current (or following) word. With a negative + Lowercase the current (or following) word. With a negative argument, lowercase the previous word, but do not move point. ccaappiittaalliizzee--wwoorrdd ((MM--cc)) - Capitalize the current (or following) word. With a negative + Capitalize the current (or following) word. With a negative argument, capitalize the previous word, but do not move point. oovveerrwwrriittee--mmooddee - Toggle overwrite mode. With an explicit positive numeric argu- + Toggle overwrite mode. With an explicit positive numeric argu- ment, switches to overwrite mode. With an explicit non-positive numeric argument, switches to insert mode. This command affects - only eemmaaccss mode; vvii mode does overwrite differently. Each call + only eemmaaccss mode; vvii mode does overwrite differently. Each call to _r_e_a_d_l_i_n_e_(_) starts in insert mode. In overwrite mode, charac- - ters bound to sseellff--iinnsseerrtt replace the text at point rather than - pushing the text to the right. Characters bound to bbaacckk-- - wwaarrdd--ddeelleettee--cchhaarr replace the character before point with a + ters bound to sseellff--iinnsseerrtt replace the text at point rather than + pushing the text to the right. Characters bound to bbaacckk-- + wwaarrdd--ddeelleettee--cchhaarr replace the character before point with a space. By default, this command is unbound. KKiilllliinngg aanndd YYaannkkiinngg @@ -2861,24 +2870,24 @@ RREEAADDLLIINNEE bbaacckkwwaarrdd--kkiillll--lliinnee ((CC--xx RRuubboouutt)) Kill backward to the beginning of the line. uunniixx--lliinnee--ddiissccaarrdd ((CC--uu)) - Kill backward from point to the beginning of the line. The + Kill backward from point to the beginning of the line. The killed text is saved on the kill-ring. kkiillll--wwhhoollee--lliinnee - Kill all characters on the current line, no matter where point + Kill all characters on the current line, no matter where point is. kkiillll--wwoorrdd ((MM--dd)) - Kill from point to the end of the current word, or if between - words, to the end of the next word. Word boundaries are the + Kill from point to the end of the current word, or if between + words, to the end of the next word. Word boundaries are the same as those used by ffoorrwwaarrdd--wwoorrdd. bbaacckkwwaarrdd--kkiillll--wwoorrdd ((MM--RRuubboouutt)) - Kill the word behind point. Word boundaries are the same as + Kill the word behind point. Word boundaries are the same as those used by bbaacckkwwaarrdd--wwoorrdd. uunniixx--wwoorrdd--rruubboouutt ((CC--ww)) - Kill the word behind point, using white space as a word bound- + Kill the word behind point, using white space as a word bound- ary. The killed text is saved on the kill-ring. uunniixx--ffiilleennaammee--rruubboouutt - Kill the word behind point, using white space and the slash - character as the word boundaries. The killed text is saved on + Kill the word behind point, using white space and the slash + character as the word boundaries. The killed text is saved on the kill-ring. ddeelleettee--hhoorriizzoonnttaall--ssppaaccee ((MM--\\)) Delete all spaces and tabs around point. @@ -2887,61 +2896,61 @@ RREEAADDLLIINNEE ccooppyy--rreeggiioonn--aass--kkiillll Copy the text in the region to the kill buffer. ccooppyy--bbaacckkwwaarrdd--wwoorrdd - Copy the word before point to the kill buffer. The word bound- + Copy the word before point to the kill buffer. The word bound- aries are the same as bbaacckkwwaarrdd--wwoorrdd. ccooppyy--ffoorrwwaarrdd--wwoorrdd - Copy the word following point to the kill buffer. The word + Copy the word following point to the kill buffer. The word boundaries are the same as ffoorrwwaarrdd--wwoorrdd. yyaannkk ((CC--yy)) Yank the top of the kill ring into the buffer at point. yyaannkk--ppoopp ((MM--yy)) - Rotate the kill ring, and yank the new top. Only works follow- + Rotate the kill ring, and yank the new top. Only works follow- ing yyaannkk or yyaannkk--ppoopp. NNuummeerriicc AArrgguummeennttss ddiiggiitt--aarrgguummeenntt ((MM--00,, MM--11,, ......,, MM----)) - Add this digit to the argument already accumulating, or start a + Add this digit to the argument already accumulating, or start a new argument. M-- starts a negative argument. uunniivveerrssaall--aarrgguummeenntt - This is another way to specify an argument. If this command is - followed by one or more digits, optionally with a leading minus - sign, those digits define the argument. If the command is fol- - lowed by digits, executing uunniivveerrssaall--aarrgguummeenntt again ends the - numeric argument, but is otherwise ignored. As a special case, - if this command is immediately followed by a character that is - neither a digit or minus sign, the argument count for the next - command is multiplied by four. The argument count is initially - one, so executing this function the first time makes the argu- + This is another way to specify an argument. If this command is + followed by one or more digits, optionally with a leading minus + sign, those digits define the argument. If the command is fol- + lowed by digits, executing uunniivveerrssaall--aarrgguummeenntt again ends the + numeric argument, but is otherwise ignored. As a special case, + if this command is immediately followed by a character that is + neither a digit or minus sign, the argument count for the next + command is multiplied by four. The argument count is initially + one, so executing this function the first time makes the argu- ment count four, a second time makes the argument count sixteen, and so on. CCoommpplleettiinngg ccoommpplleettee ((TTAABB)) - Attempt to perform completion on the text before point. BBaasshh + Attempt to perform completion on the text before point. BBaasshh attempts completion treating the text as a variable (if the text - begins with $$), username (if the text begins with ~~), hostname - (if the text begins with @@), or command (including aliases and + begins with $$), username (if the text begins with ~~), hostname + (if the text begins with @@), or command (including aliases and functions) in turn. If none of these produces a match, filename completion is attempted. ppoossssiibbllee--ccoommpplleettiioonnss ((MM--??)) List the possible completions of the text before point. iinnsseerrtt--ccoommpplleettiioonnss ((MM--**)) - Insert all completions of the text before point that would have + Insert all completions of the text before point that would have been generated by ppoossssiibbllee--ccoommpplleettiioonnss. mmeennuu--ccoommpplleettee - Similar to ccoommpplleettee, but replaces the word to be completed with - a single match from the list of possible completions. Repeated - execution of mmeennuu--ccoommpplleettee steps through the list of possible - completions, inserting each match in turn. At the end of the + Similar to ccoommpplleettee, but replaces the word to be completed with + a single match from the list of possible completions. Repeated + execution of mmeennuu--ccoommpplleettee steps through the list of possible + completions, inserting each match in turn. At the end of the list of completions, the bell is rung (subject to the setting of bbeellll--ssttyyllee) and the original text is restored. An argument of _n - moves _n positions forward in the list of matches; a negative - argument may be used to move backward through the list. This - command is intended to be bound to TTAABB, but is unbound by + moves _n positions forward in the list of matches; a negative + argument may be used to move backward through the list. This + command is intended to be bound to TTAABB, but is unbound by default. ddeelleettee--cchhaarr--oorr--lliisstt - Deletes the character under the cursor if not at the beginning - or end of the line (like ddeelleettee--cchhaarr). If at the end of the + Deletes the character under the cursor if not at the beginning + or end of the line (like ddeelleettee--cchhaarr). If at the end of the line, behaves identically to ppoossssiibbllee--ccoommpplleettiioonnss. This command is unbound by default. ccoommpplleettee--ffiilleennaammee ((MM--//)) @@ -2950,197 +2959,197 @@ RREEAADDLLIINNEE List the possible completions of the text before point, treating it as a filename. ccoommpplleettee--uusseerrnnaammee ((MM--~~)) - Attempt completion on the text before point, treating it as a + Attempt completion on the text before point, treating it as a username. ppoossssiibbllee--uusseerrnnaammee--ccoommpplleettiioonnss ((CC--xx ~~)) List the possible completions of the text before point, treating it as a username. ccoommpplleettee--vvaarriiaabbllee ((MM--$$)) - Attempt completion on the text before point, treating it as a + Attempt completion on the text before point, treating it as a shell variable. ppoossssiibbllee--vvaarriiaabbllee--ccoommpplleettiioonnss ((CC--xx $$)) List the possible completions of the text before point, treating it as a shell variable. ccoommpplleettee--hhoossttnnaammee ((MM--@@)) - Attempt completion on the text before point, treating it as a + Attempt completion on the text before point, treating it as a hostname. ppoossssiibbllee--hhoossttnnaammee--ccoommpplleettiioonnss ((CC--xx @@)) List the possible completions of the text before point, treating it as a hostname. ccoommpplleettee--ccoommmmaanndd ((MM--!!)) - Attempt completion on the text before point, treating it as a - command name. Command completion attempts to match the text - against aliases, reserved words, shell functions, shell + Attempt completion on the text before point, treating it as a + command name. Command completion attempts to match the text + against aliases, reserved words, shell functions, shell builtins, and finally executable filenames, in that order. ppoossssiibbllee--ccoommmmaanndd--ccoommpplleettiioonnss ((CC--xx !!)) List the possible completions of the text before point, treating it as a command name. ddyynnaammiicc--ccoommpplleettee--hhiissttoorryy ((MM--TTAABB)) - Attempt completion on the text before point, comparing the text - against lines from the history list for possible completion + Attempt completion on the text before point, comparing the text + against lines from the history list for possible completion matches. ccoommpplleettee--iinnttoo--bbrraacceess ((MM--{{)) Perform filename completion and insert the list of possible com- - pletions enclosed within braces so the list is available to the + pletions enclosed within braces so the list is available to the shell (see BBrraaccee EExxppaannssiioonn above). KKeeyybbooaarrdd MMaaccrrooss ssttaarrtt--kkbbdd--mmaaccrroo ((CC--xx (()) - Begin saving the characters typed into the current keyboard + Begin saving the characters typed into the current keyboard macro. eenndd--kkbbdd--mmaaccrroo ((CC--xx )))) Stop saving the characters typed into the current keyboard macro and store the definition. ccaallll--llaasstt--kkbbdd--mmaaccrroo ((CC--xx ee)) - Re-execute the last keyboard macro defined, by making the char- + Re-execute the last keyboard macro defined, by making the char- acters in the macro appear as if typed at the keyboard. MMiisscceellllaanneeoouuss rree--rreeaadd--iinniitt--ffiillee ((CC--xx CC--rr)) - Read in the contents of the _i_n_p_u_t_r_c file, and incorporate any + Read in the contents of the _i_n_p_u_t_r_c file, and incorporate any bindings or variable assignments found there. aabboorrtt ((CC--gg)) - Abort the current editing command and ring the terminal's bell + Abort the current editing command and ring the terminal's bell (subject to the setting of bbeellll--ssttyyllee). ddoo--uuppppeerrccaassee--vveerrssiioonn ((MM--aa,, MM--bb,, MM--_x,, ......)) - If the metafied character _x is lowercase, run the command that + If the metafied character _x is lowercase, run the command that is bound to the corresponding uppercase character. pprreeffiixx--mmeettaa ((EESSCC)) Metafy the next character typed. EESSCC ff is equivalent to MMeettaa--ff. uunnddoo ((CC--__,, CC--xx CC--uu)) Incremental undo, separately remembered for each line. rreevveerrtt--lliinnee ((MM--rr)) - Undo all changes made to this line. This is like executing the - uunnddoo command enough times to return the line to its initial + Undo all changes made to this line. This is like executing the + uunnddoo command enough times to return the line to its initial state. ttiillddee--eexxppaanndd ((MM--&&)) Perform tilde expansion on the current word. sseett--mmaarrkk ((CC--@@,, MM--<>)) - Set the mark to the point. If a numeric argument is supplied, + Set the mark to the point. If a numeric argument is supplied, the mark is set to that position. eexxcchhaannggee--ppooiinntt--aanndd--mmaarrkk ((CC--xx CC--xx)) - Swap the point with the mark. The current cursor position is - set to the saved position, and the old cursor position is saved + Swap the point with the mark. The current cursor position is + set to the saved position, and the old cursor position is saved as the mark. cchhaarraacctteerr--sseeaarrcchh ((CC--]])) A character is read and point is moved to the next occurrence of - that character. A negative count searches for previous occur- + that character. A negative count searches for previous occur- rences. cchhaarraacctteerr--sseeaarrcchh--bbaacckkwwaarrdd ((MM--CC--]])) - A character is read and point is moved to the previous occur- - rence of that character. A negative count searches for subse- + A character is read and point is moved to the previous occur- + rence of that character. A negative count searches for subse- quent occurrences. iinnsseerrtt--ccoommmmeenntt ((MM--##)) - Without a numeric argument, the value of the readline ccoomm-- - mmeenntt--bbeeggiinn variable is inserted at the beginning of the current + Without a numeric argument, the value of the readline ccoomm-- + mmeenntt--bbeeggiinn variable is inserted at the beginning of the current line. If a numeric argument is supplied, this command acts as a - toggle: if the characters at the beginning of the line do not - match the value of ccoommmmeenntt--bbeeggiinn, the value is inserted, other- + toggle: if the characters at the beginning of the line do not + match the value of ccoommmmeenntt--bbeeggiinn, the value is inserted, other- wise the characters in ccoommmmeenntt--bbeeggiinn are deleted from the begin- - ning of the line. In either case, the line is accepted as if a - newline had been typed. The default value of ccoommmmeenntt--bbeeggiinn - causes this command to make the current line a shell comment. - If a numeric argument causes the comment character to be + ning of the line. In either case, the line is accepted as if a + newline had been typed. The default value of ccoommmmeenntt--bbeeggiinn + causes this command to make the current line a shell comment. + If a numeric argument causes the comment character to be removed, the line will be executed by the shell. gglloobb--ccoommpplleettee--wwoorrdd ((MM--gg)) - The word before point is treated as a pattern for pathname - expansion, with an asterisk implicitly appended. This pattern - is used to generate a list of matching file names for possible + The word before point is treated as a pattern for pathname + expansion, with an asterisk implicitly appended. This pattern + is used to generate a list of matching file names for possible completions. gglloobb--eexxppaanndd--wwoorrdd ((CC--xx **)) - The word before point is treated as a pattern for pathname - expansion, and the list of matching file names is inserted, - replacing the word. If a numeric argument is supplied, an + The word before point is treated as a pattern for pathname + expansion, and the list of matching file names is inserted, + replacing the word. If a numeric argument is supplied, an asterisk is appended before pathname expansion. gglloobb--lliisstt--eexxppaannssiioonnss ((CC--xx gg)) - The list of expansions that would have been generated by - gglloobb--eexxppaanndd--wwoorrdd is displayed, and the line is redrawn. If a - numeric argument is supplied, an asterisk is appended before + The list of expansions that would have been generated by + gglloobb--eexxppaanndd--wwoorrdd is displayed, and the line is redrawn. If a + numeric argument is supplied, an asterisk is appended before pathname expansion. dduummpp--ffuunnccttiioonnss - Print all of the functions and their key bindings to the read- + Print all of the functions and their key bindings to the read- line output stream. If a numeric argument is supplied, the out- - put is formatted in such a way that it can be made part of an + put is formatted in such a way that it can be made part of an _i_n_p_u_t_r_c file. dduummpp--vvaarriiaabblleess Print all of the settable readline variables and their values to - the readline output stream. If a numeric argument is supplied, - the output is formatted in such a way that it can be made part + the readline output stream. If a numeric argument is supplied, + the output is formatted in such a way that it can be made part of an _i_n_p_u_t_r_c file. dduummpp--mmaaccrrooss - Print all of the readline key sequences bound to macros and the - strings they output. If a numeric argument is supplied, the + Print all of the readline key sequences bound to macros and the + strings they output. If a numeric argument is supplied, the output is formatted in such a way that it can be made part of an _i_n_p_u_t_r_c file. ddiissppllaayy--sshheellll--vveerrssiioonn ((CC--xx CC--vv)) - Display version information about the current instance of bbaasshh. + Display version information about the current instance of bbaasshh. PPrrooggrraammmmaabbllee CCoommpplleettiioonn - When word completion is attempted for an argument to a command for - which a completion specification (a _c_o_m_p_s_p_e_c) has been defined using - the ccoommpplleettee builtin (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below), the pro- + When word completion is attempted for an argument to a command for + which a completion specification (a _c_o_m_p_s_p_e_c) has been defined using + the ccoommpplleettee builtin (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below), the pro- grammable completion facilities are invoked. - First, the command name is identified. If a compspec has been defined + First, the command name is identified. If a compspec has been defined for that command, the compspec is used to generate the list of possible - completions for the word. If the command word is a full pathname, a - compspec for the full pathname is searched for first. If no compspec - is found for the full pathname, an attempt is made to find a compspec + completions for the word. If the command word is a full pathname, a + compspec for the full pathname is searched for first. If no compspec + is found for the full pathname, an attempt is made to find a compspec for the portion following the final slash. - Once a compspec has been found, it is used to generate the list of - matching words. If a compspec is not found, the default bbaasshh comple- + Once a compspec has been found, it is used to generate the list of + matching words. If a compspec is not found, the default bbaasshh comple- tion as described above under CCoommpplleettiinngg is performed. - First, the actions specified by the compspec are used. Only matches - which are prefixed by the word being completed are returned. When the - --ff or --dd option is used for filename or directory name completion, the + First, the actions specified by the compspec are used. Only matches + which are prefixed by the word being completed are returned. When the + --ff or --dd option is used for filename or directory name completion, the shell variable FFIIGGNNOORREE is used to filter the matches. - Any completions specified by a filename expansion pattern to the --GG + Any completions specified by a filename expansion pattern to the --GG option are generated next. The words generated by the pattern need not - match the word being completed. The GGLLOOBBIIGGNNOORREE shell variable is not + match the word being completed. The GGLLOOBBIIGGNNOORREE shell variable is not used to filter the matches, but the FFIIGGNNOORREE variable is used. - Next, the string specified as the argument to the --WW option is consid- - ered. The string is first split using the characters in the IIFFSS spe- - cial variable as delimiters. Shell quoting is honored. Each word is - then expanded using brace expansion, tilde expansion, parameter and - variable expansion, command substitution, and arithmetic expansion, as + Next, the string specified as the argument to the --WW option is consid- + ered. The string is first split using the characters in the IIFFSS spe- + cial variable as delimiters. Shell quoting is honored. Each word is + then expanded using brace expansion, tilde expansion, parameter and + variable expansion, command substitution, and arithmetic expansion, as described above under EEXXPPAANNSSIIOONN. The results are split using the rules described above under WWoorrdd SSpplliittttiinngg. The results of the expansion are prefix-matched against the word being completed, and the matching words become the possible completions. - After these matches have been generated, any shell function or command - specified with the --FF and --CC options is invoked. When the command or + After these matches have been generated, any shell function or command + specified with the --FF and --CC options is invoked. When the command or function is invoked, the CCOOMMPP__LLIINNEE and CCOOMMPP__PPOOIINNTT variables are - assigned values as described above under SShheellll VVaarriiaabblleess. If a shell - function is being invoked, the CCOOMMPP__WWOORRDDSS and CCOOMMPP__CCWWOORRDD variables are - also set. When the function or command is invoked, the first argument - is the name of the command whose arguments are being completed, the - second argument is the word being completed, and the third argument is - the word preceding the word being completed on the current command + assigned values as described above under SShheellll VVaarriiaabblleess. If a shell + function is being invoked, the CCOOMMPP__WWOORRDDSS and CCOOMMPP__CCWWOORRDD variables are + also set. When the function or command is invoked, the first argument + is the name of the command whose arguments are being completed, the + second argument is the word being completed, and the third argument is + the word preceding the word being completed on the current command line. No filtering of the generated completions against the word being completed is performed; the function or command has complete freedom in generating the matches. - Any function specified with --FF is invoked first. The function may use - any of the shell facilities, including the ccoommppggeenn builtin described - below, to generate the matches. It must put the possible completions + Any function specified with --FF is invoked first. The function may use + any of the shell facilities, including the ccoommppggeenn builtin described + below, to generate the matches. It must put the possible completions in the CCOOMMPPRREEPPLLYY array variable. - Next, any command specified with the --CC option is invoked in an envi- - ronment equivalent to command substitution. It should print a list of - completions, one per line, to the standard output. Backslash may be + Next, any command specified with the --CC option is invoked in an envi- + ronment equivalent to command substitution. It should print a list of + completions, one per line, to the standard output. Backslash may be used to escape a newline, if necessary. - After all of the possible completions are generated, any filter speci- - fied with the --XX option is applied to the list. The filter is a pat- - tern as used for pathname expansion; a && in the pattern is replaced - with the text of the word being completed. A literal && may be escaped - with a backslash; the backslash is removed before attempting a match. - Any completion that matches the pattern will be removed from the list. + After all of the possible completions are generated, any filter speci- + fied with the --XX option is applied to the list. The filter is a pat- + tern as used for pathname expansion; a && in the pattern is replaced + with the text of the word being completed. A literal && may be escaped + with a backslash; the backslash is removed before attempting a match. + Any completion that matches the pattern will be removed from the list. A leading !! negates the pattern; in this case any completion not match- ing the pattern will be removed. @@ -3148,127 +3157,127 @@ RREEAADDLLIINNEE added to each member of the completion list, and the result is returned to the readline completion code as the list of possible completions. - If the previously-applied actions do not generate any matches, and the - --oo ddiirrnnaammeess option was supplied to ccoommpplleettee when the compspec was + If the previously-applied actions do not generate any matches, and the + --oo ddiirrnnaammeess option was supplied to ccoommpplleettee when the compspec was defined, directory name completion is attempted. - If the --oo pplluussddiirrss option was supplied to ccoommpplleettee when the compspec + If the --oo pplluussddiirrss option was supplied to ccoommpplleettee when the compspec was defined, directory name completion is attempted and any matches are added to the results of the other actions. - By default, if a compspec is found, whatever it generates is returned - to the completion code as the full set of possible completions. The + By default, if a compspec is found, whatever it generates is returned + to the completion code as the full set of possible completions. The default bbaasshh completions are not attempted, and the readline default of filename completion is disabled. If the --oo bbaasshhddeeffaauulltt option was sup- - plied to ccoommpplleettee when the compspec was defined, the bbaasshh default com- + plied to ccoommpplleettee when the compspec was defined, the bbaasshh default com- pletions are attempted if the compspec generates no matches. If the --oo - ddeeffaauulltt option was supplied to ccoommpplleettee when the compspec was defined, - readline's default completion will be performed if the compspec (and, + ddeeffaauulltt option was supplied to ccoommpplleettee when the compspec was defined, + readline's default completion will be performed if the compspec (and, if attempted, the default bbaasshh completions) generate no matches. - When a compspec indicates that directory name completion is desired, - the programmable completion functions force readline to append a slash - to completed names which are symbolic links to directories, subject to - the value of the mmaarrkk--ddiirreeccttoorriieess readline variable, regardless of the + When a compspec indicates that directory name completion is desired, + the programmable completion functions force readline to append a slash + to completed names which are symbolic links to directories, subject to + the value of the mmaarrkk--ddiirreeccttoorriieess readline variable, regardless of the setting of the mmaarrkk--ssyymmlliinnkkeedd--ddiirreeccttoorriieess readline variable. HHIISSTTOORRYY - When the --oo hhiissttoorryy option to the sseett builtin is enabled, the shell + When the --oo hhiissttoorryy option to the sseett builtin is enabled, the shell provides access to the _c_o_m_m_a_n_d _h_i_s_t_o_r_y, the list of commands previously - typed. The value of the HHIISSTTSSIIZZEE variable is used as the number of + typed. The value of the HHIISSTTSSIIZZEE variable is used as the number of commands to save in a history list. The text of the last HHIISSTTSSIIZZEE com- - mands (default 500) is saved. The shell stores each command in the - history list prior to parameter and variable expansion (see EEXXPPAANNSSIIOONN - above) but after history expansion is performed, subject to the values + mands (default 500) is saved. The shell stores each command in the + history list prior to parameter and variable expansion (see EEXXPPAANNSSIIOONN + above) but after history expansion is performed, subject to the values of the shell variables HHIISSTTIIGGNNOORREE and HHIISSTTCCOONNTTRROOLL. On startup, the history is initialized from the file named by the vari- - able HHIISSTTFFIILLEE (default _~_/_._b_a_s_h___h_i_s_t_o_r_y). The file named by the value - of HHIISSTTFFIILLEE is truncated, if necessary, to contain no more than the + able HHIISSTTFFIILLEE (default _~_/_._b_a_s_h___h_i_s_t_o_r_y). The file named by the value + of HHIISSTTFFIILLEE is truncated, if necessary, to contain no more than the number of lines specified by the value of HHIISSTTFFIILLEESSIIZZEE. When an inter- - active shell exits, the last $$HHIISSTTSSIIZZEE lines are copied from the his- + active shell exits, the last $$HHIISSTTSSIIZZEE lines are copied from the his- tory list to $$HHIISSTTFFIILLEE. If the hhiissttaappppeenndd shell option is enabled (see the description of sshhoopptt under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below), the lines - are appended to the history file, otherwise the history file is over- - written. If HHIISSTTFFIILLEE is unset, or if the history file is unwritable, - the history is not saved. After saving the history, the history file - is truncated to contain no more than HHIISSTTFFIILLEESSIIZZEE lines. If HHIISSTTFFIILLEE-- + are appended to the history file, otherwise the history file is over- + written. If HHIISSTTFFIILLEE is unset, or if the history file is unwritable, + the history is not saved. After saving the history, the history file + is truncated to contain no more than HHIISSTTFFIILLEESSIIZZEE lines. If HHIISSTTFFIILLEE-- SSIIZZEE is not set, no truncation is performed. - The builtin command ffcc (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) may be used + The builtin command ffcc (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) may be used to list or edit and re-execute a portion of the history list. The hhiiss-- - ttoorryy builtin may be used to display or modify the history list and - manipulate the history file. When using command-line editing, search - commands are available in each editing mode that provide access to the + ttoorryy builtin may be used to display or modify the history list and + manipulate the history file. When using command-line editing, search + commands are available in each editing mode that provide access to the history list. - The shell allows control over which commands are saved on the history + The shell allows control over which commands are saved on the history list. The HHIISSTTCCOONNTTRROOLL and HHIISSTTIIGGNNOORREE variables may be set to cause the shell to save only a subset of the commands entered. The ccmmddhhiisstt shell - option, if enabled, causes the shell to attempt to save each line of a - multi-line command in the same history entry, adding semicolons where - necessary to preserve syntactic correctness. The lliitthhiisstt shell option - causes the shell to save the command with embedded newlines instead of + option, if enabled, causes the shell to attempt to save each line of a + multi-line command in the same history entry, adding semicolons where + necessary to preserve syntactic correctness. The lliitthhiisstt shell option + causes the shell to save the command with embedded newlines instead of semicolons. See the description of the sshhoopptt builtin below under SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS for information on setting and unsetting shell options. HHIISSTTOORRYY EEXXPPAANNSSIIOONN - The shell supports a history expansion feature that is similar to the - history expansion in ccsshh.. This section describes what syntax features - are available. This feature is enabled by default for interactive + The shell supports a history expansion feature that is similar to the + history expansion in ccsshh.. This section describes what syntax features + are available. This feature is enabled by default for interactive shells, and can be disabled using the ++HH option to the sseett builtin com- mand (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). Non-interactive shells do not perform history expansion by default. History expansions introduce words from the history list into the input - stream, making it easy to repeat commands, insert the arguments to a + stream, making it easy to repeat commands, insert the arguments to a previous command into the current input line, or fix errors in previous commands quickly. - History expansion is performed immediately after a complete line is - read, before the shell breaks it into words. It takes place in two - parts. The first is to determine which line from the history list to + History expansion is performed immediately after a complete line is + read, before the shell breaks it into words. It takes place in two + parts. The first is to determine which line from the history list to use during substitution. The second is to select portions of that line for inclusion into the current one. The line selected from the history - is the _e_v_e_n_t, and the portions of that line that are acted upon are - _w_o_r_d_s. Various _m_o_d_i_f_i_e_r_s are available to manipulate the selected + is the _e_v_e_n_t, and the portions of that line that are acted upon are + _w_o_r_d_s. Various _m_o_d_i_f_i_e_r_s are available to manipulate the selected words. The line is broken into words in the same fashion as when read- - ing input, so that several _m_e_t_a_c_h_a_r_a_c_t_e_r-separated words surrounded by - quotes are considered one word. History expansions are introduced by - the appearance of the history expansion character, which is !! by - default. Only backslash (\\) and single quotes can quote the history + ing input, so that several _m_e_t_a_c_h_a_r_a_c_t_e_r-separated words surrounded by + quotes are considered one word. History expansions are introduced by + the appearance of the history expansion character, which is !! by + default. Only backslash (\\) and single quotes can quote the history expansion character. - Several characters inhibit history expansion if found immediately fol- - lowing the history expansion character, even if it is unquoted: space, - tab, newline, carriage return, and ==. If the eexxttgglloobb shell option is + Several characters inhibit history expansion if found immediately fol- + lowing the history expansion character, even if it is unquoted: space, + tab, newline, carriage return, and ==. If the eexxttgglloobb shell option is enabled, (( will also inhibit expansion. - Several shell options settable with the sshhoopptt builtin may be used to - tailor the behavior of history expansion. If the hhiissttvveerriiffyy shell - option is enabled (see the description of the sshhoopptt builtin), and rreeaadd-- - lliinnee is being used, history substitutions are not immediately passed to - the shell parser. Instead, the expanded line is reloaded into the - rreeaaddlliinnee editing buffer for further modification. If rreeaaddlliinnee is being - used, and the hhiissttrreeeeddiitt shell option is enabled, a failed history sub- - stitution will be reloaded into the rreeaaddlliinnee editing buffer for correc- - tion. The --pp option to the hhiissttoorryy builtin command may be used to see - what a history expansion will do before using it. The --ss option to the - hhiissttoorryy builtin may be used to add commands to the end of the history - list without actually executing them, so that they are available for - subsequent recall. - - The shell allows control of the various characters used by the history + Several shell options settable with the sshhoopptt builtin may be used to + tailor the behavior of history expansion. If the hhiissttvveerriiffyy shell + option is enabled (see the description of the sshhoopptt builtin), and + rreeaaddlliinnee is being used, history substitutions are not immediately + passed to the shell parser. Instead, the expanded line is reloaded + into the rreeaaddlliinnee editing buffer for further modification. If rreeaaddlliinnee + is being used, and the hhiissttrreeeeddiitt shell option is enabled, a failed + history substitution will be reloaded into the rreeaaddlliinnee editing buffer + for correction. The --pp option to the hhiissttoorryy builtin command may be + used to see what a history expansion will do before using it. The --ss + option to the hhiissttoorryy builtin may be used to add commands to the end of + the history list without actually executing them, so that they are + available for subsequent recall. + + The shell allows control of the various characters used by the history expansion mechanism (see the description of hhiissttcchhaarrss above under SShheellll VVaarriiaabblleess). EEvveenntt DDeessiiggnnaattoorrss - An event designator is a reference to a command line entry in the his- + An event designator is a reference to a command line entry in the his- tory list. - !! Start a history substitution, except when followed by a bbllaannkk, - newline, carriage return, = or ( (when the eexxttgglloobb shell option + !! Start a history substitution, except when followed by a bbllaannkk, + newline, carriage return, = or ( (when the eexxttgglloobb shell option is enabled using the sshhoopptt builtin). !!_n Refer to command line _n. !!--_n Refer to the current command line minus _n. @@ -3276,21 +3285,21 @@ HHIISSTTOORRYY EEXXPPAANNSSIIOONN !!_s_t_r_i_n_g Refer to the most recent command starting with _s_t_r_i_n_g. !!??_s_t_r_i_n_g[[??]] - Refer to the most recent command containing _s_t_r_i_n_g. The trail- + Refer to the most recent command containing _s_t_r_i_n_g. The trail- ing ?? may be omitted if _s_t_r_i_n_g is followed immediately by a new- line. ^^_s_t_r_i_n_g_1^^_s_t_r_i_n_g_2^^ - Quick substitution. Repeat the last command, replacing _s_t_r_i_n_g_1 + Quick substitution. Repeat the last command, replacing _s_t_r_i_n_g_1 with _s_t_r_i_n_g_2. Equivalent to ``!!:s/_s_t_r_i_n_g_1/_s_t_r_i_n_g_2/'' (see MMoodd-- iiffiieerrss below). !!## The entire command line typed so far. WWoorrdd DDeessiiggnnaattoorrss - Word designators are used to select desired words from the event. A :: - separates the event specification from the word designator. It may be - omitted if the word designator begins with a ^^, $$, **, --, or %%. Words - are numbered from the beginning of the line, with the first word being - denoted by 0 (zero). Words are inserted into the current line sepa- + Word designators are used to select desired words from the event. A :: + separates the event specification from the word designator. It may be + omitted if the word designator begins with a ^^, $$, **, --, or %%. Words + are numbered from the beginning of the line, with the first word being + denoted by 0 (zero). Words are inserted into the current line sepa- rated by single spaces. 00 ((zzeerroo)) @@ -3300,17 +3309,17 @@ HHIISSTTOORRYY EEXXPPAANNSSIIOONN $$ The last argument. %% The word matched by the most recent `?_s_t_r_i_n_g?' search. _x--_y A range of words; `-_y' abbreviates `0-_y'. - ** All of the words but the zeroth. This is a synonym for `_1_-_$'. - It is not an error to use ** if there is just one word in the + ** All of the words but the zeroth. This is a synonym for `_1_-_$'. + It is not an error to use ** if there is just one word in the event; the empty string is returned in that case. xx** Abbreviates _x_-_$. xx-- Abbreviates _x_-_$ like xx**, but omits the last word. - If a word designator is supplied without an event specification, the + If a word designator is supplied without an event specification, the previous command is used as the event. MMooddiiffiieerrss - After the optional word designator, there may appear a sequence of one + After the optional word designator, there may appear a sequence of one or more of the following modifiers, each preceded by a `:'. hh Remove a trailing file name component, leaving only the head. @@ -3319,24 +3328,24 @@ HHIISSTTOORRYY EEXXPPAANNSSIIOONN ee Remove all but the trailing suffix. pp Print the new command but do not execute it. qq Quote the substituted words, escaping further substitutions. - xx Quote the substituted words as with qq, but break into words at + xx Quote the substituted words as with qq, but break into words at bbllaannkkss and newlines. ss//_o_l_d//_n_e_w// - Substitute _n_e_w for the first occurrence of _o_l_d in the event - line. Any delimiter can be used in place of /. The final - delimiter is optional if it is the last character of the event - line. The delimiter may be quoted in _o_l_d and _n_e_w with a single - backslash. If & appears in _n_e_w, it is replaced by _o_l_d. A sin- - gle backslash will quote the &. If _o_l_d is null, it is set to - the last _o_l_d substituted, or, if no previous history substitu- + Substitute _n_e_w for the first occurrence of _o_l_d in the event + line. Any delimiter can be used in place of /. The final + delimiter is optional if it is the last character of the event + line. The delimiter may be quoted in _o_l_d and _n_e_w with a single + backslash. If & appears in _n_e_w, it is replaced by _o_l_d. A sin- + gle backslash will quote the &. If _o_l_d is null, it is set to + the last _o_l_d substituted, or, if no previous history substitu- tions took place, the last _s_t_r_i_n_g in a !!??_s_t_r_i_n_g[[??]] search. && Repeat the previous substitution. gg Cause changes to be applied over the entire event line. This is - used in conjunction with `::ss' (e.g., `::ggss//_o_l_d//_n_e_w//') or `::&&'. - If used with `::ss', any delimiter can be used in place of /, and - the final delimiter is optional if it is the last character of + used in conjunction with `::ss' (e.g., `::ggss//_o_l_d//_n_e_w//') or `::&&'. + If used with `::ss', any delimiter can be used in place of /, and + the final delimiter is optional if it is the last character of the event line. An aa may be used as a synonym for gg. - GG Apply the following `ss' modifier once to each word in the event + GG Apply the following `ss' modifier once to each word in the event line. SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS @@ -3344,44 +3353,44 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS as accepting options preceded by -- accepts ---- to signify the end of the options. :: [_a_r_g_u_m_e_n_t_s] - No effect; the command does nothing beyond expanding _a_r_g_u_m_e_n_t_s - and performing any specified redirections. A zero exit code is + No effect; the command does nothing beyond expanding _a_r_g_u_m_e_n_t_s + and performing any specified redirections. A zero exit code is returned. .. _f_i_l_e_n_a_m_e [_a_r_g_u_m_e_n_t_s] ssoouurrccee _f_i_l_e_n_a_m_e [_a_r_g_u_m_e_n_t_s] - Read and execute commands from _f_i_l_e_n_a_m_e in the current shell - environment and return the exit status of the last command exe- + Read and execute commands from _f_i_l_e_n_a_m_e in the current shell + environment and return the exit status of the last command exe- cuted from _f_i_l_e_n_a_m_e. If _f_i_l_e_n_a_m_e does not contain a slash, file - names in PPAATTHH are used to find the directory containing _f_i_l_e_- - _n_a_m_e. The file searched for in PPAATTHH need not be executable. - When bbaasshh is not in _p_o_s_i_x _m_o_d_e, the current directory is - searched if no file is found in PPAATTHH. If the ssoouurrcceeppaatthh option - to the sshhoopptt builtin command is turned off, the PPAATTHH is not - searched. If any _a_r_g_u_m_e_n_t_s are supplied, they become the posi- - tional parameters when _f_i_l_e_n_a_m_e is executed. Otherwise the - positional parameters are unchanged. The return status is the - status of the last command exited within the script (0 if no - commands are executed), and false if _f_i_l_e_n_a_m_e is not found or + names in PPAATTHH are used to find the directory containing _f_i_l_e_- + _n_a_m_e. The file searched for in PPAATTHH need not be executable. + When bbaasshh is not in _p_o_s_i_x _m_o_d_e, the current directory is + searched if no file is found in PPAATTHH. If the ssoouurrcceeppaatthh option + to the sshhoopptt builtin command is turned off, the PPAATTHH is not + searched. If any _a_r_g_u_m_e_n_t_s are supplied, they become the posi- + tional parameters when _f_i_l_e_n_a_m_e is executed. Otherwise the + positional parameters are unchanged. The return status is the + status of the last command exited within the script (0 if no + commands are executed), and false if _f_i_l_e_n_a_m_e is not found or cannot be read. aalliiaass [--pp] [_n_a_m_e[=_v_a_l_u_e] ...] AAlliiaass with no arguments or with the --pp option prints the list of - aliases in the form aalliiaass _n_a_m_e=_v_a_l_u_e on standard output. When - arguments are supplied, an alias is defined for each _n_a_m_e whose + aliases in the form aalliiaass _n_a_m_e=_v_a_l_u_e on standard output. When + arguments are supplied, an alias is defined for each _n_a_m_e whose _v_a_l_u_e is given. A trailing space in _v_a_l_u_e causes the next word to be checked for alias substitution when the alias is expanded. - For each _n_a_m_e in the argument list for which no _v_a_l_u_e is sup- - plied, the name and value of the alias is printed. AAlliiaass - returns true unless a _n_a_m_e is given for which no alias has been + For each _n_a_m_e in the argument list for which no _v_a_l_u_e is sup- + plied, the name and value of the alias is printed. AAlliiaass + returns true unless a _n_a_m_e is given for which no alias has been defined. bbgg [_j_o_b_s_p_e_c ...] - Resume each suspended job _j_o_b_s_p_e_c in the background, as if it + Resume each suspended job _j_o_b_s_p_e_c in the background, as if it had been started with &&. If _j_o_b_s_p_e_c is not present, the shell's - notion of the _c_u_r_r_e_n_t _j_o_b is used. bbgg _j_o_b_s_p_e_c returns 0 unless - run when job control is disabled or, when run with job control - enabled, if the last _j_o_b_s_p_e_c was not found or was started with- + notion of the _c_u_r_r_e_n_t _j_o_b is used. bbgg _j_o_b_s_p_e_c returns 0 unless + run when job control is disabled or, when run with job control + enabled, if the last _j_o_b_s_p_e_c was not found or was started with- out job control. bbiinndd [--mm _k_e_y_m_a_p] [--llppssvvPPSSVV] @@ -3390,29 +3399,29 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS bbiinndd [--mm _k_e_y_m_a_p] --xx _k_e_y_s_e_q:_s_h_e_l_l_-_c_o_m_m_a_n_d bbiinndd [--mm _k_e_y_m_a_p] _k_e_y_s_e_q:_f_u_n_c_t_i_o_n_-_n_a_m_e bbiinndd _r_e_a_d_l_i_n_e_-_c_o_m_m_a_n_d - Display current rreeaaddlliinnee key and function bindings, bind a key - sequence to a rreeaaddlliinnee function or macro, or set a rreeaaddlliinnee - variable. Each non-option argument is a command as it would - appear in _._i_n_p_u_t_r_c, but each binding or command must be passed - as a separate argument; e.g., '"\C-x\C-r": re-read-init-file'. + Display current rreeaaddlliinnee key and function bindings, bind a key + sequence to a rreeaaddlliinnee function or macro, or set a rreeaaddlliinnee + variable. Each non-option argument is a command as it would + appear in _._i_n_p_u_t_r_c, but each binding or command must be passed + as a separate argument; e.g., '"\C-x\C-r": re-read-init-file'. Options, if supplied, have the following meanings: --mm _k_e_y_m_a_p Use _k_e_y_m_a_p as the keymap to be affected by the subsequent bindings. Acceptable _k_e_y_m_a_p names are _e_m_a_c_s_, _e_m_a_c_s_-_s_t_a_n_- - _d_a_r_d_, _e_m_a_c_s_-_m_e_t_a_, _e_m_a_c_s_-_c_t_l_x_, _v_i_, _v_i_-_m_o_v_e_, _v_i_-_c_o_m_m_a_n_d, - and _v_i_-_i_n_s_e_r_t. _v_i is equivalent to _v_i_-_c_o_m_m_a_n_d; _e_m_a_c_s is + _d_a_r_d_, _e_m_a_c_s_-_m_e_t_a_, _e_m_a_c_s_-_c_t_l_x_, _v_i_, _v_i_-_m_o_v_e_, _v_i_-_c_o_m_m_a_n_d, + and _v_i_-_i_n_s_e_r_t. _v_i is equivalent to _v_i_-_c_o_m_m_a_n_d; _e_m_a_c_s is equivalent to _e_m_a_c_s_-_s_t_a_n_d_a_r_d. --ll List the names of all rreeaaddlliinnee functions. - --pp Display rreeaaddlliinnee function names and bindings in such a + --pp Display rreeaaddlliinnee function names and bindings in such a way that they can be re-read. --PP List current rreeaaddlliinnee function names and bindings. - --vv Display rreeaaddlliinnee variable names and values in such a way + --vv Display rreeaaddlliinnee variable names and values in such a way that they can be re-read. --VV List current rreeaaddlliinnee variable names and values. - --ss Display rreeaaddlliinnee key sequences bound to macros and the - strings they output in such a way that they can be re- + --ss Display rreeaaddlliinnee key sequences bound to macros and the + strings they output in such a way that they can be re- read. - --SS Display rreeaaddlliinnee key sequences bound to macros and the + --SS Display rreeaaddlliinnee key sequences bound to macros and the strings they output. --ff _f_i_l_e_n_a_m_e Read key bindings from _f_i_l_e_n_a_m_e. @@ -3423,141 +3432,141 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS --rr _k_e_y_s_e_q Remove any current binding for _k_e_y_s_e_q. --xx _k_e_y_s_e_q::_s_h_e_l_l_-_c_o_m_m_a_n_d - Cause _s_h_e_l_l_-_c_o_m_m_a_n_d to be executed whenever _k_e_y_s_e_q is + Cause _s_h_e_l_l_-_c_o_m_m_a_n_d to be executed whenever _k_e_y_s_e_q is entered. - The return value is 0 unless an unrecognized option is given or + The return value is 0 unless an unrecognized option is given or an error occurred. bbrreeaakk [_n] - Exit from within a ffoorr, wwhhiillee, uunnttiill, or sseelleecctt loop. If _n is - specified, break _n levels. _n must be >= 1. If _n is greater - than the number of enclosing loops, all enclosing loops are + Exit from within a ffoorr, wwhhiillee, uunnttiill, or sseelleecctt loop. If _n is + specified, break _n levels. _n must be >= 1. If _n is greater + than the number of enclosing loops, all enclosing loops are exited. The return value is 0 unless the shell is not executing a loop when bbrreeaakk is executed. bbuuiillttiinn _s_h_e_l_l_-_b_u_i_l_t_i_n [_a_r_g_u_m_e_n_t_s] - Execute the specified shell builtin, passing it _a_r_g_u_m_e_n_t_s, and + Execute the specified shell builtin, passing it _a_r_g_u_m_e_n_t_s, and return its exit status. This is useful when defining a function - whose name is the same as a shell builtin, retaining the func- + whose name is the same as a shell builtin, retaining the func- tionality of the builtin within the function. The ccdd builtin is - commonly redefined this way. The return status is false if + commonly redefined this way. The return status is false if _s_h_e_l_l_-_b_u_i_l_t_i_n is not a shell builtin command. ccdd [--LL||--PP] [_d_i_r] - Change the current directory to _d_i_r. The variable HHOOMMEE is the - default _d_i_r. The variable CCDDPPAATTHH defines the search path for - the directory containing _d_i_r. Alternative directory names in - CCDDPPAATTHH are separated by a colon (:). A null directory name in - CCDDPPAATTHH is the same as the current directory, i.e., ``..''. If - _d_i_r begins with a slash (/), then CCDDPPAATTHH is not used. The --PP - option says to use the physical directory structure instead of - following symbolic links (see also the --PP option to the sseett - builtin command); the --LL option forces symbolic links to be - followed. An argument of -- is equivalent to $$OOLLDDPPWWDD. If a non- - empty directory name from CCDDPPAATTHH is used, or if -- is the first - argument, and the directory change is successful, the absolute + Change the current directory to _d_i_r. The variable HHOOMMEE is the + default _d_i_r. The variable CCDDPPAATTHH defines the search path for + the directory containing _d_i_r. Alternative directory names in + CCDDPPAATTHH are separated by a colon (:). A null directory name in + CCDDPPAATTHH is the same as the current directory, i.e., ``..''. If + _d_i_r begins with a slash (/), then CCDDPPAATTHH is not used. The --PP + option says to use the physical directory structure instead of + following symbolic links (see also the --PP option to the sseett + builtin command); the --LL option forces symbolic links to be fol- + lowed. An argument of -- is equivalent to $$OOLLDDPPWWDD. If a non- + empty directory name from CCDDPPAATTHH is used, or if -- is the first + argument, and the directory change is successful, the absolute pathname of the new working directory is written to the standard - output. The return value is true if the directory was success- + output. The return value is true if the directory was success- fully changed; false otherwise. ccaalllleerr [_e_x_p_r] Returns the context of any active subroutine call (a shell func- - tion or a script executed with the .. or ssoouurrccee builtins. With- + tion or a script executed with the .. or ssoouurrccee builtins. With- out _e_x_p_r, ccaalllleerr displays the line number and source filename of - the current subroutine call. If a non-negative integer is sup- + the current subroutine call. If a non-negative integer is sup- plied as _e_x_p_r, ccaalllleerr displays the line number, subroutine name, - and source file corresponding to that position in the current - execution call stack. This extra information may be used, for - example, to print a stack trace. The current frame is frame 0. - The return value is 0 unless the shell is not executing a sub- - routine call or _e_x_p_r does not correspond to a valid position in + and source file corresponding to that position in the current + execution call stack. This extra information may be used, for + example, to print a stack trace. The current frame is frame 0. + The return value is 0 unless the shell is not executing a sub- + routine call or _e_x_p_r does not correspond to a valid position in the call stack. ccoommmmaanndd [--ppVVvv] _c_o_m_m_a_n_d [_a_r_g ...] - Run _c_o_m_m_a_n_d with _a_r_g_s suppressing the normal shell function - lookup. Only builtin commands or commands found in the PPAATTHH are - executed. If the --pp option is given, the search for _c_o_m_m_a_n_d is - performed using a default value for PPAATTHH that is guaranteed to - find all of the standard utilities. If either the --VV or --vv + Run _c_o_m_m_a_n_d with _a_r_g_s suppressing the normal shell function + lookup. Only builtin commands or commands found in the PPAATTHH are + executed. If the --pp option is given, the search for _c_o_m_m_a_n_d is + performed using a default value for PPAATTHH that is guaranteed to + find all of the standard utilities. If either the --VV or --vv option is supplied, a description of _c_o_m_m_a_n_d is printed. The --vv - option causes a single word indicating the command or file name + option causes a single word indicating the command or file name used to invoke _c_o_m_m_a_n_d to be displayed; the --VV option produces a - more verbose description. If the --VV or --vv option is supplied, - the exit status is 0 if _c_o_m_m_a_n_d was found, and 1 if not. If + more verbose description. If the --VV or --vv option is supplied, + the exit status is 0 if _c_o_m_m_a_n_d was found, and 1 if not. If neither option is supplied and an error occurred or _c_o_m_m_a_n_d can- - not be found, the exit status is 127. Otherwise, the exit sta- + not be found, the exit status is 127. Otherwise, the exit sta- tus of the ccoommmmaanndd builtin is the exit status of _c_o_m_m_a_n_d. ccoommppggeenn [_o_p_t_i_o_n] [_w_o_r_d] - Generate possible completion matches for _w_o_r_d according to the - _o_p_t_i_o_ns, which may be any option accepted by the ccoommpplleettee - builtin with the exception of --pp and --rr, and write the matches - to the standard output. When using the --FF or --CC options, the - various shell variables set by the programmable completion + Generate possible completion matches for _w_o_r_d according to the + _o_p_t_i_o_ns, which may be any option accepted by the ccoommpplleettee + builtin with the exception of --pp and --rr, and write the matches + to the standard output. When using the --FF or --CC options, the + various shell variables set by the programmable completion facilities, while available, will not have useful values. - The matches will be generated in the same way as if the pro- - grammable completion code had generated them directly from a + The matches will be generated in the same way as if the pro- + grammable completion code had generated them directly from a completion specification with the same flags. If _w_o_r_d is speci- fied, only those completions matching _w_o_r_d will be displayed. - The return value is true unless an invalid option is supplied, + The return value is true unless an invalid option is supplied, or no matches were generated. - ccoommpplleettee [--aabbccddeeffggjjkkssuuvv] [--oo _c_o_m_p_-_o_p_t_i_o_n] [--AA _a_c_t_i_o_n] [--GG _g_l_o_b_p_a_t] [--WW + ccoommpplleettee [--aabbccddeeffggjjkkssuuvv] [--oo _c_o_m_p_-_o_p_t_i_o_n] [--AA _a_c_t_i_o_n] [--GG _g_l_o_b_p_a_t] [--WW _w_o_r_d_l_i_s_t] [--PP _p_r_e_f_i_x] [--SS _s_u_f_f_i_x] [--XX _f_i_l_t_e_r_p_a_t] [--FF _f_u_n_c_t_i_o_n] [--CC _c_o_m_m_a_n_d] _n_a_m_e [_n_a_m_e _._._.] ccoommpplleettee --pprr [_n_a_m_e ...] - Specify how arguments to each _n_a_m_e should be completed. If the - --pp option is supplied, or if no options are supplied, existing - completion specifications are printed in a way that allows them + Specify how arguments to each _n_a_m_e should be completed. If the + --pp option is supplied, or if no options are supplied, existing + completion specifications are printed in a way that allows them to be reused as input. The --rr option removes a completion spec- - ification for each _n_a_m_e, or, if no _n_a_m_es are supplied, all com- + ification for each _n_a_m_e, or, if no _n_a_m_es are supplied, all com- pletion specifications. - The process of applying these completion specifications when - word completion is attempted is described above under PPrroo-- + The process of applying these completion specifications when + word completion is attempted is described above under PPrroo-- ggrraammmmaabbllee CCoommpplleettiioonn. - Other options, if specified, have the following meanings. The - arguments to the --GG, --WW, and --XX options (and, if necessary, the - --PP and --SS options) should be quoted to protect them from expan- + Other options, if specified, have the following meanings. The + arguments to the --GG, --WW, and --XX options (and, if necessary, the + --PP and --SS options) should be quoted to protect them from expan- sion before the ccoommpplleettee builtin is invoked. --oo _c_o_m_p_-_o_p_t_i_o_n - The _c_o_m_p_-_o_p_t_i_o_n controls several aspects of the comp- - spec's behavior beyond the simple generation of comple- + The _c_o_m_p_-_o_p_t_i_o_n controls several aspects of the comp- + spec's behavior beyond the simple generation of comple- tions. _c_o_m_p_-_o_p_t_i_o_n may be one of: bbaasshhddeeffaauulltt Perform the rest of the default bbaasshh completions if the compspec generates no matches. - ddeeffaauulltt Use readline's default filename completion if + ddeeffaauulltt Use readline's default filename completion if the compspec generates no matches. ddiirrnnaammeess - Perform directory name completion if the comp- + Perform directory name completion if the comp- spec generates no matches. ffiilleennaammeess - Tell readline that the compspec generates file- - names, so it can perform any filename-specific - processing (like adding a slash to directory + Tell readline that the compspec generates file- + names, so it can perform any filename-specific + processing (like adding a slash to directory names or suppressing trailing spaces). Intended to be used with shell functions. - nnoossppaaccee Tell readline not to append a space (the - default) to words completed at the end of the + nnoossppaaccee Tell readline not to append a space (the + default) to words completed at the end of the line. pplluussddiirrss - After any matches defined by the compspec are - generated, directory name completion is - attempted and any matches are added to the + After any matches defined by the compspec are + generated, directory name completion is + attempted and any matches are added to the results of the other actions. --AA _a_c_t_i_o_n - The _a_c_t_i_o_n may be one of the following to generate a + The _a_c_t_i_o_n may be one of the following to generate a list of possible completions: aalliiaass Alias names. May also be specified as --aa. aarrrraayyvvaarr Array variable names. bbiinnddiinngg RReeaaddlliinnee key binding names. - bbuuiillttiinn Names of shell builtin commands. May also be + bbuuiillttiinn Names of shell builtin commands. May also be specified as --bb. ccoommmmaanndd Command names. May also be specified as --cc. ddiirreeccttoorryy @@ -3565,7 +3574,7 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS ddiissaabblleedd Names of disabled shell builtins. eennaabblleedd Names of enabled shell builtins. - eexxppoorrtt Names of exported shell variables. May also be + eexxppoorrtt Names of exported shell variables. May also be specified as --ee. ffiillee File names. May also be specified as --ff. ffuunnccttiioonn @@ -3574,17 +3583,17 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS hheellppttooppiicc Help topics as accepted by the hheellpp builtin. hhoossttnnaammee - Hostnames, as taken from the file specified by + Hostnames, as taken from the file specified by the HHOOSSTTFFIILLEE shell variable. - jjoobb Job names, if job control is active. May also + jjoobb Job names, if job control is active. May also be specified as --jj. - kkeeyywwoorrdd Shell reserved words. May also be specified as + kkeeyywwoorrdd Shell reserved words. May also be specified as --kk. rruunnnniinngg Names of running jobs, if job control is active. sseerrvviiccee Service names. May also be specified as --ss. - sseettoopptt Valid arguments for the --oo option to the sseett + sseettoopptt Valid arguments for the --oo option to the sseett builtin. - sshhoopptt Shell option names as accepted by the sshhoopptt + sshhoopptt Shell option names as accepted by the sshhoopptt builtin. ssiiggnnaall Signal names. ssttooppppeedd Names of stopped jobs, if job control is active. @@ -3593,136 +3602,136 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS Names of all shell variables. May also be spec- ified as --vv. --GG _g_l_o_b_p_a_t - The filename expansion pattern _g_l_o_b_p_a_t is expanded to + The filename expansion pattern _g_l_o_b_p_a_t is expanded to generate the possible completions. --WW _w_o_r_d_l_i_s_t - The _w_o_r_d_l_i_s_t is split using the characters in the IIFFSS - special variable as delimiters, and each resultant word - is expanded. The possible completions are the members - of the resultant list which match the word being com- + The _w_o_r_d_l_i_s_t is split using the characters in the IIFFSS + special variable as delimiters, and each resultant word + is expanded. The possible completions are the members + of the resultant list which match the word being com- pleted. --CC _c_o_m_m_a_n_d - _c_o_m_m_a_n_d is executed in a subshell environment, and its + _c_o_m_m_a_n_d is executed in a subshell environment, and its output is used as the possible completions. --FF _f_u_n_c_t_i_o_n - The shell function _f_u_n_c_t_i_o_n is executed in the current - shell environment. When it finishes, the possible com- - pletions are retrieved from the value of the CCOOMMPPRREEPPLLYY + The shell function _f_u_n_c_t_i_o_n is executed in the current + shell environment. When it finishes, the possible com- + pletions are retrieved from the value of the CCOOMMPPRREEPPLLYY array variable. --XX _f_i_l_t_e_r_p_a_t - _f_i_l_t_e_r_p_a_t is a pattern as used for filename expansion. + _f_i_l_t_e_r_p_a_t is a pattern as used for filename expansion. It is applied to the list of possible completions gener- - ated by the preceding options and arguments, and each - completion matching _f_i_l_t_e_r_p_a_t is removed from the list. - A leading !! in _f_i_l_t_e_r_p_a_t negates the pattern; in this - case, any completion not matching _f_i_l_t_e_r_p_a_t is removed. + ated by the preceding options and arguments, and each + completion matching _f_i_l_t_e_r_p_a_t is removed from the list. + A leading !! in _f_i_l_t_e_r_p_a_t negates the pattern; in this + case, any completion not matching _f_i_l_t_e_r_p_a_t is removed. --PP _p_r_e_f_i_x - _p_r_e_f_i_x is added at the beginning of each possible com- + _p_r_e_f_i_x is added at the beginning of each possible com- pletion after all other options have been applied. --SS _s_u_f_f_i_x _s_u_f_f_i_x is appended to each possible completion after all other options have been applied. - The return value is true unless an invalid option is supplied, - an option other than --pp or --rr is supplied without a _n_a_m_e argu- - ment, an attempt is made to remove a completion specification + The return value is true unless an invalid option is supplied, + an option other than --pp or --rr is supplied without a _n_a_m_e argu- + ment, an attempt is made to remove a completion specification for a _n_a_m_e for which no specification exists, or an error occurs adding a completion specification. ccoonnttiinnuuee [_n] Resume the next iteration of the enclosing ffoorr, wwhhiillee, uunnttiill, or - sseelleecctt loop. If _n is specified, resume at the _nth enclosing - loop. _n must be >= 1. If _n is greater than the number of - enclosing loops, the last enclosing loop (the ``top-level'' + sseelleecctt loop. If _n is specified, resume at the _nth enclosing + loop. _n must be >= 1. If _n is greater than the number of + enclosing loops, the last enclosing loop (the ``top-level'' loop) is resumed. The return value is 0 unless the shell is not executing a loop when ccoonnttiinnuuee is executed. ddeeccllaarree [--aaffFFiirrttxx] [--pp] [_n_a_m_e[=_v_a_l_u_e] ...] ttyyppeesseett [--aaffFFiirrttxx] [--pp] [_n_a_m_e[=_v_a_l_u_e] ...] - Declare variables and/or give them attributes. If no _n_a_m_es are - given then display the values of variables. The --pp option will - display the attributes and values of each _n_a_m_e. When --pp is - used, additional options are ignored. The --FF option inhibits - the display of function definitions; only the function name and + Declare variables and/or give them attributes. If no _n_a_m_es are + given then display the values of variables. The --pp option will + display the attributes and values of each _n_a_m_e. When --pp is + used, additional options are ignored. The --FF option inhibits + the display of function definitions; only the function name and attributes are printed. If the eexxttddeebbuugg shell option is enabled - using sshhoopptt, the source file name and line number where the - function is defined are displayed as well. The --FF option - implies --ff. The following options can be used to restrict out- - put to variables with the specified attribute or to give vari- + using sshhoopptt, the source file name and line number where the + function is defined are displayed as well. The --FF option + implies --ff. The following options can be used to restrict out- + put to variables with the specified attribute or to give vari- ables attributes: --aa Each _n_a_m_e is an array variable (see AArrrraayyss above). --ff Use function names only. --ii The variable is treated as an integer; arithmetic evalua- - tion (see AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN )) is performed when the + tion (see AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN )) is performed when the variable is assigned a value. --rr Make _n_a_m_es readonly. These names cannot then be assigned values by subsequent assignment statements or unset. - --tt Give each _n_a_m_e the _t_r_a_c_e attribute. Traced functions - inherit the DDEEBBUUGG and RREETTUURRNN traps from the calling - shell. The trace attribute has no special meaning for + --tt Give each _n_a_m_e the _t_r_a_c_e attribute. Traced functions + inherit the DDEEBBUUGG and RREETTUURRNN traps from the calling + shell. The trace attribute has no special meaning for variables. - --xx Mark _n_a_m_es for export to subsequent commands via the + --xx Mark _n_a_m_es for export to subsequent commands via the environment. - Using `+' instead of `-' turns off the attribute instead, with - the exception that ++aa may not be used to destroy an array vari- - able. When used in a function, makes each _n_a_m_e local, as with - the llooccaall command. If a variable name is followed by =_v_a_l_u_e, - the value of the variable is set to _v_a_l_u_e. The return value is + Using `+' instead of `-' turns off the attribute instead, with + the exception that ++aa may not be used to destroy an array vari- + able. When used in a function, makes each _n_a_m_e local, as with + the llooccaall command. If a variable name is followed by =_v_a_l_u_e, + the value of the variable is set to _v_a_l_u_e. The return value is 0 unless an invalid option is encountered, an attempt is made to - define a function using ``-f foo=bar'', an attempt is made to - assign a value to a readonly variable, an attempt is made to - assign a value to an array variable without using the compound - assignment syntax (see AArrrraayyss above), one of the _n_a_m_e_s is not a - valid shell variable name, an attempt is made to turn off 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 AArrrraayyss above), one of the _n_a_m_e_s 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 --ff. ddiirrss [[--ccllppvv]] [[++_n]] [[--_n]] - 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 ppuusshhdd command; the ppooppdd 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 ppuusshhdd command; the ppooppdd command removes entries from the list. ++_n Displays the _nth entry counting from the left of the list shown by ddiirrss when invoked without options, starting with zero. - --_n Displays the _nth entry counting from the right of the + --_n Displays the _nth entry counting from the right of the list shown by ddiirrss when invoked without options, starting with zero. --cc Clears the directory stack by deleting all of the entries. - --ll Produces a longer listing; the default listing format + --ll Produces a longer listing; the default listing format uses a tilde to denote the home directory. --pp Print the directory stack with one entry per line. - --vv Print the directory stack with one entry per line, pre- + --vv 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 _n + The return value is 0 unless an invalid option is supplied or _n indexes beyond the end of the directory stack. ddiissoowwnn [--aarr] [--hh] [_j_o_b_s_p_e_c ...] - Without options, each _j_o_b_s_p_e_c is removed from the table of - active jobs. If the --hh option is given, each _j_o_b_s_p_e_c is not + Without options, each _j_o_b_s_p_e_c is removed from the table of + active jobs. If the --hh option is given, each _j_o_b_s_p_e_c is not removed from the table, but is marked so that SSIIGGHHUUPP is not sent - to the job if the shell receives a SSIIGGHHUUPP. If no _j_o_b_s_p_e_c is - present, and neither the --aa nor the --rr option is supplied, the - _c_u_r_r_e_n_t _j_o_b is used. If no _j_o_b_s_p_e_c is supplied, the --aa option - means to remove or mark all jobs; the --rr option without a _j_o_b_- - _s_p_e_c argument restricts operation to running jobs. The return + to the job if the shell receives a SSIIGGHHUUPP. If no _j_o_b_s_p_e_c is + present, and neither the --aa nor the --rr option is supplied, the + _c_u_r_r_e_n_t _j_o_b is used. If no _j_o_b_s_p_e_c is supplied, the --aa option + means to remove or mark all jobs; the --rr option without a _j_o_b_- + _s_p_e_c argument restricts operation to running jobs. The return value is 0 unless a _j_o_b_s_p_e_c does not specify a valid job. eecchhoo [--nneeEE] [_a_r_g ...] - Output the _a_r_gs, separated by spaces, followed by a newline. + Output the _a_r_gs, separated by spaces, followed by a newline. The return status is always 0. If --nn is specified, the trailing - newline is suppressed. If the --ee option is given, interpreta- - tion of the following backslash-escaped characters is enabled. - The --EE option disables the interpretation of these escape char- - acters, even on systems where they are interpreted by default. - The xxppgg__eecchhoo shell option may be used to dynamically determine - whether or not eecchhoo expands these escape characters by default. - eecchhoo does not interpret ---- to mean the end of options. eecchhoo + newline is suppressed. If the --ee option is given, interpreta- + tion of the following backslash-escaped characters is enabled. + The --EE option disables the interpretation of these escape char- + acters, even on systems where they are interpreted by default. + The xxppgg__eecchhoo shell option may be used to dynamically determine + whether or not eecchhoo expands these escape characters by default. + eecchhoo does not interpret ---- to mean the end of options. eecchhoo interprets the following escape sequences: \\aa alert (bell) \\bb backspace @@ -3734,188 +3743,188 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS \\tt horizontal tab \\vv vertical tab \\\\ backslash - \\00_n_n_n the eight-bit character whose value is the octal value + \\00_n_n_n the eight-bit character whose value is the octal value _n_n_n (zero to three octal digits) - \\_n_n_n the eight-bit character whose value is the octal value + \\_n_n_n the eight-bit character whose value is the octal value _n_n_n (one to three octal digits) - \\xx_H_H the eight-bit character whose value is the hexadecimal + \\xx_H_H the eight-bit character whose value is the hexadecimal value _H_H (one or two hex digits) eennaabbllee [--aaddnnppss] [--ff _f_i_l_e_n_a_m_e] [_n_a_m_e ...] - 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 --nn is used, each _n_a_m_e is disabled; otherwise, _n_a_m_e_s are + to be executed without specifying a full pathname, even though + the shell normally searches for builtins before disk commands. + If --nn is used, each _n_a_m_e is disabled; otherwise, _n_a_m_e_s are enabled. For example, to use the tteesstt binary found via the PPAATTHH - instead of the shell builtin version, run ``enable -n test''. - The --ff option means to load the new builtin command _n_a_m_e from + instead of the shell builtin version, run ``enable -n test''. + The --ff option means to load the new builtin command _n_a_m_e from shared object _f_i_l_e_n_a_m_e, on systems that support dynamic loading. - The --dd option will delete a builtin previously loaded with --ff. + The --dd option will delete a builtin previously loaded with --ff. If no _n_a_m_e arguments are given, or if the --pp 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 --nn - is supplied, only disabled builtins are printed. If --aa is sup- - plied, the list printed includes all builtins, with an indica- - tion of whether or not each is enabled. If --ss is supplied, the - output is restricted to the POSIX _s_p_e_c_i_a_l builtins. The return - value is 0 unless a _n_a_m_e is not a shell builtin or there is an + ments, the list consists of all enabled shell builtins. If --nn + is supplied, only disabled builtins are printed. If --aa is sup- + plied, the list printed includes all builtins, with an indica- + tion of whether or not each is enabled. If --ss is supplied, the + output is restricted to the POSIX _s_p_e_c_i_a_l builtins. The return + value is 0 unless a _n_a_m_e is not a shell builtin or there is an error loading a new builtin from a shared object. eevvaall [_a_r_g ...] - The _a_r_gs 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 eevvaall. If there are + The _a_r_gs 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 eevvaall. If there are no _a_r_g_s, or only null arguments, eevvaall returns 0. eexxeecc [--ccll] [--aa _n_a_m_e] [_c_o_m_m_a_n_d [_a_r_g_u_m_e_n_t_s]] - If _c_o_m_m_a_n_d is specified, it replaces the shell. No new process - is created. The _a_r_g_u_m_e_n_t_s become the arguments to _c_o_m_m_a_n_d. If + If _c_o_m_m_a_n_d is specified, it replaces the shell. No new process + is created. The _a_r_g_u_m_e_n_t_s become the arguments to _c_o_m_m_a_n_d. If the --ll option is supplied, the shell places a dash at the begin- ning of the zeroth arg passed to _c_o_m_m_a_n_d. This is what _l_o_g_i_n(1) does. The --cc option causes _c_o_m_m_a_n_d to be executed with an empty - environment. If --aa is supplied, the shell passes _n_a_m_e as the - zeroth argument to the executed command. If _c_o_m_m_a_n_d cannot be - executed for some reason, a non-interactive shell exits, unless - the shell option eexxeeccffaaiill is enabled, in which case it returns - failure. An interactive shell returns failure if the file can- - not be executed. If _c_o_m_m_a_n_d is not specified, any redirections - take effect in the current shell, and the return status is 0. + environment. If --aa is supplied, the shell passes _n_a_m_e as the + zeroth argument to the executed command. If _c_o_m_m_a_n_d cannot be + executed for some reason, a non-interactive shell exits, unless + the shell option eexxeeccffaaiill is enabled, in which case it returns + failure. An interactive shell returns failure if the file can- + not be executed. If _c_o_m_m_a_n_d 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. eexxiitt [_n] - Cause the shell to exit with a status of _n. If _n is omitted, + Cause the shell to exit with a status of _n. If _n is omitted, the exit status is that of the last command executed. A trap on EEXXIITT is executed before the shell terminates. eexxppoorrtt [--ffnn] [_n_a_m_e[=_w_o_r_d]] ... eexxppoorrtt --pp - The supplied _n_a_m_e_s are marked for automatic export to the envi- - ronment of subsequently executed commands. If the --ff option is - given, the _n_a_m_e_s refer to functions. If no _n_a_m_e_s are given, or - if the --pp option is supplied, a list of all names that are - exported in this shell is printed. The --nn option causes the - export property to be removed from each _n_a_m_e. If a variable - name is followed by =_w_o_r_d, the value of the variable is set to - _w_o_r_d. eexxppoorrtt returns an exit status of 0 unless an invalid - option is encountered, one of the _n_a_m_e_s is not a valid shell + The supplied _n_a_m_e_s are marked for automatic export to the envi- + ronment of subsequently executed commands. If the --ff option is + given, the _n_a_m_e_s refer to functions. If no _n_a_m_e_s are given, or + if the --pp option is supplied, a list of all names that are + exported in this shell is printed. The --nn option causes the + export property to be removed from each _n_a_m_e. If a variable + name is followed by =_w_o_r_d, the value of the variable is set to + _w_o_r_d. eexxppoorrtt returns an exit status of 0 unless an invalid + option is encountered, one of the _n_a_m_e_s is not a valid shell variable name, or --ff is supplied with a _n_a_m_e that is not a func- tion. ffcc [--ee _e_n_a_m_e] [--nnllrr] [_f_i_r_s_t] [_l_a_s_t] ffcc --ss [_p_a_t=_r_e_p] [_c_m_d] - Fix Command. In the first form, a range of commands from _f_i_r_s_t - to _l_a_s_t is selected from the history list. _F_i_r_s_t and _l_a_s_t 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 _f_i_r_s_t + to _l_a_s_t is selected from the history list. _F_i_r_s_t and _l_a_s_t 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 _l_a_s_t 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 _f_i_r_s_t otherwise. If _f_i_r_s_t 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 --nn option suppresses the command numbers when listing. The - --rr option reverses the order of the commands. If the --ll option - is given, the commands are listed on standard output. Other- - wise, the editor given by _e_n_a_m_e is invoked on a file containing - those commands. If _e_n_a_m_e is not given, the value of the FFCCEEDDIITT - variable is used, and the value of EEDDIITTOORR if FFCCEEDDIITT is not set. - If neither variable is set, _v_i is used. When editing is com- + The --nn option suppresses the command numbers when listing. The + --rr option reverses the order of the commands. If the --ll option + is given, the commands are listed on standard output. Other- + wise, the editor given by _e_n_a_m_e is invoked on a file containing + those commands. If _e_n_a_m_e is not given, the value of the FFCCEEDDIITT + variable is used, and the value of EEDDIITTOORR if FFCCEEDDIITT is not set. + If neither variable is set, _v_i is used. When editing is com- plete, the edited commands are echoed and executed. - In the second form, _c_o_m_m_a_n_d is re-executed after each instance - of _p_a_t is replaced by _r_e_p. A useful alias to use with this is - ``r="fc -s"'', so that typing ``r cc'' runs the last command + In the second form, _c_o_m_m_a_n_d is re-executed after each instance + of _p_a_t is replaced by _r_e_p. 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 _f_i_r_s_t or _l_a_s_t specify history - lines out of range. If the --ee option is supplied, the return + If the first form is used, the return value is 0 unless an + invalid option is encountered or _f_i_r_s_t or _l_a_s_t specify history + lines out of range. If the --ee 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 _c_m_d does not specify a valid history line, in + form is used, the return status is that of the command re-exe- + cuted, unless _c_m_d does not specify a valid history line, in which case ffcc returns failure. ffgg [_j_o_b_s_p_e_c] - Resume _j_o_b_s_p_e_c in the foreground, and make it the current job. + Resume _j_o_b_s_p_e_c in the foreground, and make it the current job. If _j_o_b_s_p_e_c is not present, the shell's notion of the _c_u_r_r_e_n_t _j_o_b - 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 _j_o_b_s_p_e_c does not spec- - ify a valid job or _j_o_b_s_p_e_c specifies a job that was started + ify a valid job or _j_o_b_s_p_e_c specifies a job that was started without job control. ggeettooppttss _o_p_t_s_t_r_i_n_g _n_a_m_e [_a_r_g_s] - ggeettooppttss is used by shell procedures to parse positional parame- - ters. _o_p_t_s_t_r_i_n_g 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, ggeettooppttss - places the next option in the shell variable _n_a_m_e, initializing + ggeettooppttss is used by shell procedures to parse positional parame- + ters. _o_p_t_s_t_r_i_n_g 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, ggeettooppttss + places the next option in the shell variable _n_a_m_e, initializing _n_a_m_e if it does not exist, and the index of the next argument to be processed into the variable OOPPTTIINNDD. OOPPTTIINNDD is initialized to - 1 each time the shell or a shell script is invoked. When an - option requires an argument, ggeettooppttss places that argument into - the variable OOPPTTAARRGG. The shell does not reset OOPPTTIINNDD 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, ggeettooppttss places that argument into + the variable OOPPTTAARRGG. The shell does not reset OOPPTTIINNDD automati- + cally; it must be manually reset between multiple calls to ggeettooppttss within the same shell invocation if a new set of parame- ters is to be used. - When the end of options is encountered, ggeettooppttss exits with a - return value greater than zero. OOPPTTIINNDD is set to the index of + When the end of options is encountered, ggeettooppttss exits with a + return value greater than zero. OOPPTTIINNDD is set to the index of the first non-option argument, and nnaammee is set to ?. - ggeettooppttss normally parses the positional parameters, but if more + ggeettooppttss normally parses the positional parameters, but if more arguments are given in _a_r_g_s, ggeettooppttss parses those instead. - ggeettooppttss can report errors in two ways. If the first character - of _o_p_t_s_t_r_i_n_g is a colon, _s_i_l_e_n_t error reporting is used. In - normal operation diagnostic messages are printed when invalid - options or missing option arguments are encountered. If the - variable OOPPTTEERRRR is set to 0, no error messages will be dis- + ggeettooppttss can report errors in two ways. If the first character + of _o_p_t_s_t_r_i_n_g is a colon, _s_i_l_e_n_t error reporting is used. In + normal operation diagnostic messages are printed when invalid + options or missing option arguments are encountered. If the + variable OOPPTTEERRRR is set to 0, no error messages will be dis- played, even if the first character of _o_p_t_s_t_r_i_n_g is not a colon. If an invalid option is seen, ggeettooppttss places ? into _n_a_m_e and, if - not silent, prints an error message and unsets OOPPTTAARRGG. If - ggeettooppttss is silent, the option character found is placed in + not silent, prints an error message and unsets OOPPTTAARRGG. If + ggeettooppttss is silent, the option character found is placed in OOPPTTAARRGG and no diagnostic message is printed. - If a required argument is not found, and ggeettooppttss is not silent, - a question mark (??) is placed in _n_a_m_e, OOPPTTAARRGG is unset, and a - diagnostic message is printed. If ggeettooppttss is silent, then a - colon (::) is placed in _n_a_m_e and OOPPTTAARRGG is set to the option + If a required argument is not found, and ggeettooppttss is not silent, + a question mark (??) is placed in _n_a_m_e, OOPPTTAARRGG is unset, and a + diagnostic message is printed. If ggeettooppttss is silent, then a + colon (::) is placed in _n_a_m_e and OOPPTTAARRGG is set to the option character found. - ggeettooppttss returns true if an option, specified or unspecified, is + ggeettooppttss returns true if an option, specified or unspecified, is found. It returns false if the end of options is encountered or an error occurs. hhaasshh [--llrr] [--pp _f_i_l_e_n_a_m_e] [--ddtt] [_n_a_m_e] - For each _n_a_m_e, the full file name of the command is determined + For each _n_a_m_e, the full file name of the command is determined by searching the directories in $$PPAATTHH and remembered. If the --pp option is supplied, no path search is performed, and _f_i_l_e_n_a_m_e is used as the full file name of the command. The --rr option causes - the shell to forget all remembered locations. The --dd option + the shell to forget all remembered locations. The --dd option causes the shell to forget the remembered location of each _n_a_m_e. - If the --tt option is supplied, the full pathname to which each - _n_a_m_e corresponds is printed. If multiple _n_a_m_e arguments are - supplied with --tt, the _n_a_m_e is printed before the hashed full + If the --tt option is supplied, the full pathname to which each + _n_a_m_e corresponds is printed. If multiple _n_a_m_e arguments are + supplied with --tt, the _n_a_m_e is printed before the hashed full pathname. The --ll 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 --ll is supplied, information about remembered commands is - printed. The return status is true unless a _n_a_m_e is not found + printed. The return status is true unless a _n_a_m_e is not found or an invalid option is supplied. hheellpp [--ss] [_p_a_t_t_e_r_n] - Display helpful information about builtin commands. If _p_a_t_t_e_r_n - is specified, hheellpp gives detailed help on all commands matching - _p_a_t_t_e_r_n; otherwise help for all the builtins and shell control - structures is printed. The --ss option restricts the information - displayed to a short usage synopsis. The return status is 0 + Display helpful information about builtin commands. If _p_a_t_t_e_r_n + is specified, hheellpp gives detailed help on all commands matching + _p_a_t_t_e_r_n; otherwise help for all the builtins and shell control + structures is printed. The --ss option restricts the information + displayed to a short usage synopsis. The return status is 0 unless no command matches _p_a_t_t_e_r_n. hhiissttoorryy [[_n]] @@ -3926,41 +3935,41 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS hhiissttoorryy --ss _a_r_g [_a_r_g _._._.] With no options, display the command history list with line num- bers. Lines listed with a ** have been modified. An argument of - _n lists only the last _n lines. If the shell variable HHIISSTTTTIIMMEE-- - FFOORRMMAATT is set and not null, it is used as a format string for - _s_t_r_f_t_i_m_e(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 _f_i_l_e_n_a_m_e is - supplied, it is used as the name of the history file; if not, - the value of HHIISSTTFFIILLEE is used. Options, if supplied, have the + _n lists only the last _n lines. If the shell variable HHIISSTTTTIIMMEE-- + FFOORRMMAATT is set and not null, it is used as a format string for + _s_t_r_f_t_i_m_e(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 _f_i_l_e_n_a_m_e is + supplied, it is used as the name of the history file; if not, + the value of HHIISSTTFFIILLEE is used. Options, if supplied, have the following meanings: --cc Clear the history list by deleting all the entries. --dd _o_f_f_s_e_t Delete the history entry at position _o_f_f_s_e_t. - --aa Append the ``new'' history lines (history lines entered - since the beginning of the current bbaasshh session) to the + --aa Append the ``new'' history lines (history lines entered + since the beginning of the current bbaasshh session) to the history file. - --nn 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 + --nn 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 bbaasshh session. --rr Read the contents of the history file and use them as the current history. - --ww Write the current history to the history file, overwrit- + --ww Write the current history to the history file, overwrit- ing the history file's contents. - --pp Perform history substitution on the following _a_r_g_s and - display the result on the standard output. Does not - store the results in the history list. Each _a_r_g must be + --pp Perform history substitution on the following _a_r_g_s and + display the result on the standard output. Does not + store the results in the history list. Each _a_r_g must be quoted to disable normal history expansion. - --ss Store the _a_r_g_s in the history list as a single entry. - The last command in the history list is removed before + --ss Store the _a_r_g_s in the history list as a single entry. + The last command in the history list is removed before the _a_r_g_s are added. If the HHIISSTTTTIIMMEEFFOORRMMAATT 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 _o_f_f_s_e_t is supplied as an argument to --dd, 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 _o_f_f_s_e_t is supplied as an argument to --dd, or the history expansion supplied as an argument to --pp fails. jjoobbss [--llnnpprrss] [ _j_o_b_s_p_e_c ... ] @@ -3968,144 +3977,144 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS The first form lists the active jobs. The options have the fol- lowing meanings: --ll List process IDs in addition to the normal information. - --pp List only the process ID of the job's process group + --pp List only the process ID of the job's process group leader. - --nn Display information only about jobs that have changed - status since the user was last notified of their status. + --nn Display information only about jobs that have changed + status since the user was last notified of their status. --rr Restrict output to running jobs. --ss Restrict output to stopped jobs. - If _j_o_b_s_p_e_c is given, output is restricted to information about - that job. The return status is 0 unless an invalid option is + If _j_o_b_s_p_e_c is given, output is restricted to information about + that job. The return status is 0 unless an invalid option is encountered or an invalid _j_o_b_s_p_e_c is supplied. If the --xx option is supplied, jjoobbss replaces any _j_o_b_s_p_e_c found in - _c_o_m_m_a_n_d or _a_r_g_s with the corresponding process group ID, and + _c_o_m_m_a_n_d or _a_r_g_s with the corresponding process group ID, and executes _c_o_m_m_a_n_d passing it _a_r_g_s, returning its exit status. kkiillll [--ss _s_i_g_s_p_e_c | --nn _s_i_g_n_u_m | --_s_i_g_s_p_e_c] [_p_i_d | _j_o_b_s_p_e_c] ... kkiillll --ll [_s_i_g_s_p_e_c | _e_x_i_t___s_t_a_t_u_s] - Send the signal named by _s_i_g_s_p_e_c or _s_i_g_n_u_m to the processes - named by _p_i_d or _j_o_b_s_p_e_c. _s_i_g_s_p_e_c is either a case-insensitive - signal name such as SSIIGGKKIILLLL (with or without the SSIIGG prefix) or - a signal number; _s_i_g_n_u_m is a signal number. If _s_i_g_s_p_e_c is not - present, then SSIIGGTTEERRMM is assumed. An argument of --ll lists the - signal names. If any arguments are supplied when --ll is given, - the names of the signals corresponding to the arguments are + Send the signal named by _s_i_g_s_p_e_c or _s_i_g_n_u_m to the processes + named by _p_i_d or _j_o_b_s_p_e_c. _s_i_g_s_p_e_c is either a case-insensitive + signal name such as SSIIGGKKIILLLL (with or without the SSIIGG prefix) or + a signal number; _s_i_g_n_u_m is a signal number. If _s_i_g_s_p_e_c is not + present, then SSIIGGTTEERRMM is assumed. An argument of --ll lists the + signal names. If any arguments are supplied when --ll is given, + the names of the signals corresponding to the arguments are listed, and the return status is 0. The _e_x_i_t___s_t_a_t_u_s argument to - --ll is a number specifying either a signal number or the exit - status of a process terminated by a signal. kkiillll returns true - if at least one signal was successfully sent, or false if an + --ll is a number specifying either a signal number or the exit + status of a process terminated by a signal. kkiillll returns true + if at least one signal was successfully sent, or false if an error occurs or an invalid option is encountered. lleett _a_r_g [_a_r_g ...] Each _a_r_g is an arithmetic expression to be evaluated (see AARRIITTHH-- - MMEETTIICC EEVVAALLUUAATTIIOONN). If the last _a_r_g evaluates to 0, lleett returns + MMEETTIICC EEVVAALLUUAATTIIOONN). If the last _a_r_g evaluates to 0, lleett returns 1; 0 is returned otherwise. llooccaall [_o_p_t_i_o_n] [_n_a_m_e[=_v_a_l_u_e] ...] - For each argument, a local variable named _n_a_m_e is created, and - assigned _v_a_l_u_e. The _o_p_t_i_o_n can be any of the options accepted + For each argument, a local variable named _n_a_m_e is created, and + assigned _v_a_l_u_e. The _o_p_t_i_o_n can be any of the options accepted by ddeeccllaarree. When llooccaall is used within a function, it causes the - variable _n_a_m_e to have a visible scope restricted to that func- + variable _n_a_m_e to have a visible scope restricted to that func- tion and its children. With no operands, llooccaall 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 llooccaall when not within a function. The return status is 0 unless - llooccaall is used outside a function, an invalid _n_a_m_e is supplied, + llooccaall is used outside a function, an invalid _n_a_m_e is supplied, or _n_a_m_e is a readonly variable. llooggoouutt Exit a login shell. ppooppdd [-nn] [+_n] [-_n] - Removes entries from the directory stack. With no arguments, - removes the top directory from the stack, and performs a ccdd to + Removes entries from the directory stack. With no arguments, + removes the top directory from the stack, and performs a ccdd to the new top directory. Arguments, if supplied, have the follow- ing meanings: - ++_n Removes the _nth entry counting from the left of the list - shown by ddiirrss, starting with zero. For example: ``popd + ++_n Removes the _nth entry counting from the left of the list + shown by ddiirrss, starting with zero. For example: ``popd +0'' removes the first directory, ``popd +1'' the second. --_n Removes the _nth entry counting from the right of the list - shown by ddiirrss, starting with zero. For example: ``popd - -0'' removes the last directory, ``popd -1'' the next to + shown by ddiirrss, starting with zero. For example: ``popd + -0'' removes the last directory, ``popd -1'' the next to last. - --nn Suppresses the normal change of directory when removing - directories from the stack, so that only the stack is + --nn Suppresses the normal change of directory when removing + directories from the stack, so that only the stack is manipulated. - If the ppooppdd command is successful, a ddiirrss is performed as well, - and the return status is 0. ppooppdd returns false if an invalid + If the ppooppdd command is successful, a ddiirrss is performed as well, + and the return status is 0. ppooppdd 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. pprriinnttff _f_o_r_m_a_t [_a_r_g_u_m_e_n_t_s] - Write the formatted _a_r_g_u_m_e_n_t_s to the standard output under the - control of the _f_o_r_m_a_t. The _f_o_r_m_a_t 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 _a_r_g_u_m_e_n_t_s to the standard output under the + control of the _f_o_r_m_a_t. The _f_o_r_m_a_t 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 _a_r_g_u_m_e_n_t. In addition to the standard _p_r_i_n_t_f(1) for- - mats, %%bb causes pprriinnttff to expand backslash escape sequences in - the corresponding _a_r_g_u_m_e_n_t (except that \\cc terminates output, + mats, %%bb causes pprriinnttff to expand backslash escape sequences in + the corresponding _a_r_g_u_m_e_n_t (except that \\cc terminates output, backslashes in \\'', \\"", and \\?? are not removed, and octal escapes - beginning with \\00 may contain up to four digits), and %%qq causes + beginning with \\00 may contain up to four digits), and %%qq causes pprriinnttff to output the corresponding _a_r_g_u_m_e_n_t in a format that can be reused as shell input. - The _f_o_r_m_a_t is reused as necessary to consume all of the _a_r_g_u_- + The _f_o_r_m_a_t is reused as necessary to consume all of the _a_r_g_u_- _m_e_n_t_s. If the _f_o_r_m_a_t requires more _a_r_g_u_m_e_n_t_s 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. ppuusshhdd [--nn] [_d_i_r] ppuusshhdd [--nn] [+_n] [-_n] - 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: - ++_n Rotates the stack so that the _nth directory (counting - from the left of the list shown by ddiirrss, starting with + ++_n Rotates the stack so that the _nth directory (counting + from the left of the list shown by ddiirrss, starting with zero) is at the top. - --_n Rotates the stack so that the _nth directory (counting - from the right of the list shown by ddiirrss, starting with + --_n Rotates the stack so that the _nth directory (counting + from the right of the list shown by ddiirrss, starting with zero) is at the top. - --nn Suppresses the normal change of directory when adding - directories to the stack, so that only the stack is + --nn Suppresses the normal change of directory when adding + directories to the stack, so that only the stack is manipulated. _d_i_r Adds _d_i_r to the directory stack at the top, making it the new current working directory. If the ppuusshhdd command is successful, a ddiirrss is performed as well. - If the first form is used, ppuusshhdd returns 0 unless the cd to _d_i_r - fails. With the second form, ppuusshhdd 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, ppuusshhdd returns 0 unless the cd to _d_i_r + fails. With the second form, ppuusshhdd 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. ppwwdd [--LLPP] - 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 --PP option is supplied or the --oo pphhyyssiiccaall option to the sseett builtin command - is enabled. If the --LL 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 --LL 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. rreeaadd [--eerrss] [--uu _f_d] [--tt _t_i_m_e_o_u_t] [--aa _a_n_a_m_e] [--pp _p_r_o_m_p_t] [--nn _n_c_h_a_r_s] [--dd _d_e_l_i_m] [_n_a_m_e ...] - One line is read from the standard input, or from the file - descriptor _f_d supplied as an argument to the --uu option, and the + One line is read from the standard input, or from the file + descriptor _f_d supplied as an argument to the --uu option, and the first word is assigned to the first _n_a_m_e, the second word to the - second _n_a_m_e, and so on, with leftover words and their interven- - ing separators assigned to the last _n_a_m_e. If there are fewer + second _n_a_m_e, and so on, with leftover words and their interven- + ing separators assigned to the last _n_a_m_e. If there are fewer words read from the input stream than names, the remaining names - are assigned empty values. The characters in IIFFSS are used to - split the line into words. The backslash character (\\) 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 IIFFSS are used to + split the line into words. The backslash character (\\) 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: --aa _a_n_a_m_e The words are assigned to sequential indices of the array @@ -4113,100 +4122,100 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS new values are assigned. Other _n_a_m_e arguments are ignored. --dd _d_e_l_i_m - The first character of _d_e_l_i_m is used to terminate the + The first character of _d_e_l_i_m is used to terminate the input line, rather than newline. --ee If the standard input is coming from a terminal, rreeaaddlliinnee (see RREEAADDLLIINNEE above) is used to obtain the line. --nn _n_c_h_a_r_s - rreeaadd returns after reading _n_c_h_a_r_s characters rather than + rreeaadd returns after reading _n_c_h_a_r_s characters rather than waiting for a complete line of input. --pp _p_r_o_m_p_t Display _p_r_o_m_p_t 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. --rr 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. --ss Silent mode. If input is coming from a terminal, charac- ters are not echoed. --tt _t_i_m_e_o_u_t - Cause rreeaadd to time out and return failure if a complete - line of input is not read within _t_i_m_e_o_u_t seconds. This - option has no effect if rreeaadd is not reading input from + Cause rreeaadd to time out and return failure if a complete + line of input is not read within _t_i_m_e_o_u_t seconds. This + option has no effect if rreeaadd is not reading input from the terminal or a pipe. --uu _f_d Read input from file descriptor _f_d. If no _n_a_m_e_s are supplied, the line read is assigned to the vari- - able RREEPPLLYY. The return code is zero, unless end-of-file is - encountered, rreeaadd times out, or an invalid file descriptor is + able RREEPPLLYY. The return code is zero, unless end-of-file is + encountered, rreeaadd times out, or an invalid file descriptor is supplied as the argument to --uu. rreeaaddoonnllyy [--aappff] [_n_a_m_e[=_w_o_r_d] ...] - The given _n_a_m_e_s are marked readonly; the values of these _n_a_m_e_s - may not be changed by subsequent assignment. If the --ff option - is supplied, the functions corresponding to the _n_a_m_e_s are so + The given _n_a_m_e_s are marked readonly; the values of these _n_a_m_e_s + may not be changed by subsequent assignment. If the --ff option + is supplied, the functions corresponding to the _n_a_m_e_s are so marked. The --aa option restricts the variables to arrays. If no - _n_a_m_e arguments are given, or if the --pp option is supplied, a - list of all readonly names is printed. The --pp option causes - output to be displayed in a format that may be reused as input. - If a variable name is followed by =_w_o_r_d, the value of the vari- - able is set to _w_o_r_d. The return status is 0 unless an invalid - option is encountered, one of the _n_a_m_e_s is not a valid shell + _n_a_m_e arguments are given, or if the --pp option is supplied, a + list of all readonly names is printed. The --pp option causes + output to be displayed in a format that may be reused as input. + If a variable name is followed by =_w_o_r_d, the value of the vari- + able is set to _w_o_r_d. The return status is 0 unless an invalid + option is encountered, one of the _n_a_m_e_s is not a valid shell variable name, or --ff is supplied with a _n_a_m_e that is not a func- tion. rreettuurrnn [_n] - Causes a function to exit with the return value specified by _n. - If _n 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 .. (ssoouurrccee) command, it + Causes a function to exit with the return value specified by _n. + If _n 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 .. (ssoouurrccee) command, it causes the shell to stop executing that script and return either - _n 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 .., the return + _n 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 .., the return status is false. Any command associated with the RREETTUURRNN trap is - executed before execution resumes after the function or script. + executed before execution resumes after the function or script. sseett [----aabbeeffhhkkmmnnppttuuvvxxBBCCHHPP] [--oo _o_p_t_i_o_n] [_a_r_g ...] - 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 _p_o_s_i_x _m_o_d_e, 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 _p_o_s_i_x _m_o_d_e, 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 $$11, $$22, ...... $$_n. Options, if specified, have the fol- lowing meanings: - --aa Automatically mark variables and functions which are - modified or created for export to the environment of + --aa Automatically mark variables and functions which are + modified or created for export to the environment of subsequent commands. - --bb Report the status of terminated background jobs immedi- + --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. - --ee Exit immediately if a _s_i_m_p_l_e _c_o_m_m_a_n_d (see SSHHEELLLL GGRRAAMMMMAARR + --ee Exit immediately if a _s_i_m_p_l_e _c_o_m_m_a_n_d (see SSHHEELLLL GGRRAAMMMMAARR 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 wwhhiillee or uunnttiill keyword, - part of the test in an _i_f statement, part of a &&&& or |||| + exit if the command that fails is part of the command + list immediately following a wwhhiillee or uunnttiill keyword, + part of the test in an _i_f statement, part of a &&&& or |||| list, or if the command's return value is being inverted - via !!. A trap on EERRRR, if set, is executed before the + via !!. A trap on EERRRR, if set, is executed before the shell exits. --ff Disable pathname expansion. - --hh Remember the location of commands as they are looked up + --hh Remember the location of commands as they are looked up for execution. This is enabled by default. - --kk All arguments in the form of assignment statements are - placed in the environment for a command, not just those + --kk All arguments in the form of assignment statements are + placed in the environment for a command, not just those that precede the command name. - --mm Monitor mode. Job control is enabled. This option is - on by default for interactive shells on systems that - support it (see JJOOBB CCOONNTTRROOLL above). Background pro- - cesses run in a separate process group and a line con- - taining their exit status is printed upon their comple- + --mm Monitor mode. Job control is enabled. This option is + on by default for interactive shells on systems that + support it (see JJOOBB CCOONNTTRROOLL above). Background pro- + cesses run in a separate process group and a line con- + taining their exit status is printed upon their comple- tion. --nn 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. --oo _o_p_t_i_o_n_-_n_a_m_e The _o_p_t_i_o_n_-_n_a_m_e can be one of the following: @@ -4214,7 +4223,7 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS Same as --aa. bbrraacceeeexxppaanndd Same as --BB. - eemmaaccss Use an emacs-style command line editing inter- + eemmaaccss 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 ----nnooeeddiittiinngg option. @@ -4230,8 +4239,8 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS HHIISSTTOORRYY. This option is on by default in inter- active shells. iiggnnoorreeeeooff - The effect is as if the shell command - ``IGNOREEOF=10'' had been executed (see SShheellll + The effect is as if the shell command + ``IGNOREEOF=10'' had been executed (see SShheellll VVaarriiaabblleess above). kkeeyywwoorrdd Same as --kk. mmoonniittoorr Same as --mm. @@ -4245,12 +4254,12 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS pphhyyssiiccaall Same as --PP. ppiippeeffaaiill - 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. - ppoossiixx Change the behavior of bbaasshh where the default + ppoossiixx Change the behavior of bbaasshh where the default operation differs from the POSIX 1003.2 standard to match the standard (_p_o_s_i_x _m_o_d_e). pprriivviilleeggeedd @@ -4259,156 +4268,164 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS vvii Use a vi-style command line editing interface. xxttrraaccee Same as --xx. If --oo is supplied with no _o_p_t_i_o_n_-_n_a_m_e, the values of the - current options are printed. If ++oo is supplied with no - _o_p_t_i_o_n_-_n_a_m_e, a series of sseett commands to recreate the - current option settings is displayed on the standard + current options are printed. If ++oo is supplied with no + _o_p_t_i_o_n_-_n_a_m_e, a series of sseett commands to recreate the + current option settings is displayed on the standard output. - --pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and - $$BBAASSHH__EENNVV files are not processed, shell functions are - not inherited from the environment, and the SSHHEELLLLOOPPTTSS - 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 --pp - option is not supplied, these actions are taken and the + --pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and + $$BBAASSHH__EENNVV files are not processed, shell functions are + not inherited from the environment, and the SSHHEELLLLOOPPTTSS + 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 --pp + option is not supplied, these actions are taken and the effective user id is set to the real user id. If the --pp - 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. --tt Exit after reading and executing one command. --uu 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. --vv Print shell input lines as they are read. - --xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee + --xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee command, sseelleecctt command, or arithmetic ffoorr command, dis- - play the expanded value of PPSS44, followed by the command + play the expanded value of PPSS44, followed by the command and its expanded arguments or associated word list. - --BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn + --BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn above). This is on by default. - --CC If set, bbaasshh does not overwrite an existing file with - the >>, >>&&, and <<>> redirection operators. This may be + --CC If set, bbaasshh does not overwrite an existing file with + the >>, >>&&, and <<>> redirection operators. This may be overridden when creating output files by using the redi- rection operator >>|| instead of >>. --EE If set, any trap on EERRRR is inherited by shell functions, - command substitutions, and commands executed in a sub- - shell environment. The EERRRR trap is normally not inher- + command substitutions, and commands executed in a sub- + shell environment. The EERRRR trap is normally not inher- ited in such cases. --HH Enable !! style history substitution. This option is on by default when the shell is interactive. - --PP If set, the shell does not follow symbolic links when - executing commands such as ccdd that change the current + --PP If set, the shell does not follow symbolic links when + executing commands such as ccdd that change the current working directory. It uses the physical directory structure instead. By default, bbaasshh follows the logical - chain of directories when performing commands which + chain of directories when performing commands which change the current directory. - --TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by - shell functions, command substitutions, and commands - executed in a subshell environment. The DDEEBBUUGG and + --TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by + shell functions, command substitutions, and commands + executed in a subshell environment. The DDEEBBUUGG and RREETTUURRNN traps are normally not inherited in such cases. - ---- If no arguments follow this option, then the positional + ---- If no arguments follow this option, then the positional parameters are unset. Otherwise, the positional parame- - ters are set to the _a_r_gs, even if some of them begin + ters are set to the _a_r_gs, even if some of them begin with a --. - -- Signal the end of options, cause all remaining _a_r_gs to + -- Signal the end of options, cause all remaining _a_r_gs to be assigned to the positional parameters. The --xx and --vv - options are turned off. If there are no _a_r_gs, the - positional parameters remain unchanged. + options are turned off. If there are no _a_r_gs, 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 $$--. 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 $$--. The return status is always true unless an invalid option is encoun- tered. sshhiifftt [_n] - The positional parameters from _n+1 ... are renamed to $$11 ........ - Parameters represented by the numbers $$## down to $$##-_n+1 are - unset. _n must be a non-negative number less than or equal to - $$##. If _n is 0, no parameters are changed. If _n is not given, - it is assumed to be 1. If _n is greater than $$##, the positional - parameters are not changed. The return status is greater than + The positional parameters from _n+1 ... are renamed to $$11 ........ + Parameters represented by the numbers $$## down to $$##-_n+1 are + unset. _n must be a non-negative number less than or equal to + $$##. If _n is 0, no parameters are changed. If _n is not given, + it is assumed to be 1. If _n is greater than $$##, the positional + parameters are not changed. The return status is greater than zero if _n is greater than $$## or less than zero; otherwise 0. sshhoopptt [--ppqqssuu] [--oo] [_o_p_t_n_a_m_e ...] Toggle the values of variables controlling optional shell behav- ior. With no options, or with the --pp option, a list of all set- table options is displayed, with an indication of whether or not - each is set. The --pp option causes output to be displayed in a - form that may be reused as input. Other options have the fol- + each is set. The --pp option causes output to be displayed in a + form that may be reused as input. Other options have the fol- lowing meanings: --ss Enable (set) each _o_p_t_n_a_m_e. --uu Disable (unset) each _o_p_t_n_a_m_e. - --qq Suppresses normal output (quiet mode); the return status + --qq Suppresses normal output (quiet mode); the return status indicates whether the _o_p_t_n_a_m_e is set or unset. If multi- - ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta- - tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other- + ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta- + tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other- wise. - --oo Restricts the values of _o_p_t_n_a_m_e to be those defined for + --oo Restricts the values of _o_p_t_n_a_m_e to be those defined for the --oo option to the sseett builtin. - If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, the dis- + If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, the dis- play is limited to those options which are set or unset, respec- - tively. Unless otherwise noted, the sshhoopptt options are disabled + tively. Unless otherwise noted, the sshhoopptt options are disabled (unset) by default. - The return status when listing options is zero if all _o_p_t_n_a_m_e_s - are enabled, non-zero otherwise. When setting or unsetting - options, the return status is zero unless an _o_p_t_n_a_m_e is not a + The return status when listing options is zero if all _o_p_t_n_a_m_e_s + are enabled, non-zero otherwise. When setting or unsetting + options, the return status is zero unless an _o_p_t_n_a_m_e is not a valid shell option. The list of sshhoopptt options is: ccddaabbllee__vvaarrss - If set, an argument to the ccdd builtin command that is - not a directory is assumed to be the name of a variable + If set, an argument to the ccdd builtin command that is + not a directory is assumed to be the name of a variable whose value is the directory to change to. ccddssppeellll If set, minor errors in the spelling of a directory com- - ponent in a ccdd command will be corrected. The errors + ponent in a ccdd 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. cchheecckkhhaasshh If set, bbaasshh 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. cchheecckkwwiinnssiizzee - If set, bbaasshh checks the window size after each command - and, if necessary, updates the values of LLIINNEESS and + If set, bbaasshh checks the window size after each command + and, if necessary, updates the values of LLIINNEESS and CCOOLLUUMMNNSS. - ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple- - line command in the same history entry. This allows + ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple- + line command in the same history entry. This allows easy re-editing of multi-line commands. - ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in + ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in the results of pathname expansion. eexxeeccffaaiill If set, a non-interactive shell will not exit if it can- - not execute the file specified as an argument to the - eexxeecc builtin command. An interactive shell does not + not execute the file specified as an argument to the + eexxeecc builtin command. An interactive shell does not exit if eexxeecc fails. eexxppaanndd__aalliiaasseess - If set, aliases are expanded as described above under + If set, aliases are expanded as described above under AALLIIAASSEESS. This option is enabled by default for interac- tive shells. eexxttddeebbuugg - If set, behavior intended for use by debuggers is + If set, behavior intended for use by debuggers is enabled: 11.. The --FF option to the ddeeccllaarree builtin displays the source file name and line number corresponding to each function name supplied as an argument. - 22.. If the command run by the DDEEBBUUGG trap returns a - non-zero value, the next command is skipped and + 22.. If the command run by the DDEEBBUUGG trap returns a + non-zero value, the next command is skipped and not executed. - 33.. If the command run by the DDEEBBUUGG 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 .. or ssoouurrccee builtins), a call to + 33.. If the command run by the DDEEBBUUGG 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 .. or ssoouurrccee builtins), a call to rreettuurrnn is simulated. + 44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described + in their descriptions above. + 55.. Function tracing is enabled: command substitu- + tion, shell functions, and subshells invoked with + (( _c_o_m_m_a_n_d )) inherit the DDEEBBUUGG and RREETTUURRNN traps. + 66.. Error tracing is enabled: command substitution, + shell functions, and subshells invoked with (( + _c_o_m_m_a_n_d )) inherit the EERRRROORR trap. eexxttgglloobb If set, the extended pattern matching features described above under PPaatthhnnaammee EExxppaannssiioonn are enabled. eexxttqquuoottee @@ -4474,6 +4491,10 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS If set, bbaasshh matches filenames in a case-insensitive fashion when performing pathname expansion (see PPaatthhnnaammee EExxppaannssiioonn above). + nnooccaasseemmaattcchh + If set, bbaasshh matches patterns in a case-insensitive + fashion when performing matching while executing ccaassee or + [[[[ conditional commands. nnuullllgglloobb If set, bbaasshh allows patterns which match no files (see PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string, @@ -4693,8 +4714,8 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS able or function is removed from the environment passed to sub- sequent commands. If any of RRAANNDDOOMM, SSEECCOONNDDSS, LLIINNEENNOO, HHIISSTTCCMMDD, FFUUNNCCNNAAMMEE, GGRROOUUPPSS, or DDIIRRSSTTAACCKK are unset, they lose their special - properties, even if they are subsequently reset. The exit sta- - tus is true unless a _n_a_m_e is readonly. + properties, even if they are subsequently reset. The exit + status is true unless a _n_a_m_e is readonly. wwaaiitt [_n _._._.] Wait for each specified process and return its termination sta- @@ -4837,4 +4858,4 @@ BBUUGGSS -GNU Bash-3.1-devel 2005 Feb 11 BASH(1) +GNU Bash-3.1-devel 2005 Feb 19 BASH(1) diff --git a/doc/bash.html b/doc/bash.html index c98237abe..0fb83b4c6 100644 --- a/doc/bash.html +++ b/doc/bash.html @@ -2,7 +2,7 @@ BASH(1) Manual Page -
BASH(1)2005 Feb 11BASH(1) +BASH(1)2005 Feb 19BASH(1)

Index
@@ -182,13 +182,15 @@ single-character options to be recognized.
Arrange for the debugger profile to be executed before the shell -starts. Turns on extended debugging mode (see the description of the +starts. +Turns on extended debugging mode (see the description of the extdebug option to the shopt -builtin below) and shell function tracing (see the description of the +builtin below) +and shell function tracing (see the description of the -o functrace option to the set @@ -885,6 +887,11 @@ as primaries. When the == and != operators are used, the string to the right of the operator is considered a pattern and matched according to the rules described below under Pattern Matching. +If the shell option +nocasematch + +is enabled, the match is performed without regard to the case +of alphabetic characters. The return value is 0 if the string matches or does not match the pattern, respectively, and 1 otherwise. Any part of the pattern may be quoted to force it to be matched as a @@ -901,7 +908,7 @@ the pattern, and 1 otherwise. If the regular expression is syntactically incorrect, the conditional expression's return value is 2. If the shell option -nocaseglob +nocasematch is enabled, the match is performed without regard to the case of alphabetic characters. @@ -1036,7 +1043,13 @@ it against each pattern in turn, using the same matching rules as for pathname expansion (see Pathname Expansion -below). When a match is found, the +below). +If the shell option +nocasematch + +is enabled, the match is performed without regard to the case +of alphabetic characters. +When a match is found, the corresponding list is executed. After the first match, no subsequent matches are attempted. The exit status is zero if no pattern matches. Otherwise, it is the exit status of the @@ -1604,11 +1617,20 @@ Expands to the full file name used to invoke this instance of
An array variable whose values are the number of parameters in each -frame of the current bash execution call stack. The number of +frame of the current bash execution call stack. +The number of parameters to the current subroutine (shell function or script executed -with . or source) is at the top of the stack. When a -subroutine is executed, the number of parameters passed is pushed onto +with . or source) is at the top of the stack. +When a subroutine is executed, the number of parameters passed is pushed onto BASH_ARGC. +The shell sets BASH_ARGC only when in extended debugging mode +(see the description of the +extdebug + +option to the +shopt + +builtin below)
BASH_ARGV
@@ -1617,6 +1639,14 @@ execution call stack. The final parameter of the last subroutine call is at the top of the stack; the first parameter of the initial call is at the bottom. When a subroutine is executed, the parameters supplied are pushed onto BASH_ARGV. +The shell sets BASH_ARGV only when in extended debugging mode +(see the description of the +extdebug + +option to the +shopt + +builtin below)
BASH_COMMAND
@@ -10261,6 +10291,23 @@ If the command run by the DEBUG trap returns a value of 2, and the shell is executing in a subroutine (a shell function or a shell script executed by the . or source builtins), a call to return is simulated. +
4. + +
+BASH_ARGC and BASH_ARGV are updated as described in their +descriptions above. +
5. + +
+Function tracing is enabled: command substitution, shell functions, and +subshells invoked with ( command ) inherit the +DEBUG and RETURN traps. +
6. + +
+Error tracing is enabled: command substitution, shell functions, and +subshells invoked with ( command ) inherit the +ERROR trap.
extglob @@ -10400,6 +10447,14 @@ expansion (see Pathname Expansion above). +
nocasematch + +
+If set, +bash + +matches patterns in a case-insensitive fashion when performing matching +while executing case or [[ conditional commands.
nullglob
@@ -11429,6 +11484,6 @@ Array variables may not (yet) be exported.
This document was created by man2html from bash.1.
-Time: 14 February 2005 11:56:43 EST +Time: 22 February 2005 13:44:29 EST diff --git a/doc/bash.ps b/doc/bash.ps index 102594522..d8658616a 100644 --- a/doc/bash.ps +++ b/doc/bash.ps @@ -1,6 +1,6 @@ %!PS-Adobe-3.0 %%Creator: groff version 1.18.1 -%%CreationDate: Mon Feb 14 11:56:35 2005 +%%CreationDate: Tue Feb 22 13:37:34 2005 %%DocumentNeededResources: font Times-Roman %%+ font Times-Bold %%+ font Times-Italic @@ -326,7 +326,7 @@ E F2(po)2.5 E F0(\(portable object\) \214le format.)2.5 E F2 144 686.4 Q .3 -.15(ve \()-.25 H(see).15 E F4(INV)2.5 E(OCA)-.405 E (TION)-.855 E F0(belo)2.25 E(w\).)-.25 E F2(\255\255login)108 703.2 Q F0 (Equi)144 715.2 Q -.25(va)-.25 G(lent to).25 E F22.5 E F0(.)A -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(1)204 E 0 Cg EP %%Page: 2 3 %%BeginPageSetup @@ -449,7 +449,7 @@ F(ariable)-.25 E F3 -.27(BA)108 679.2 S(SH_ENV).27 E F0 1.01(in the en) 108 727.2 S 2.5(tt).2 G(he v)-2.5 E(alue of the)-.25 E F3 -.666(PA)2.5 G (TH)-.189 E F0 -.25(va)2.25 G (riable is not used to search for the \214le name.).25 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(2)204 E 0 Cg EP %%Page: 3 4 %%BeginPageSetup @@ -575,7 +575,7 @@ F1(Pipelines)87 679.2 Q F0(A)108 691.2 Q F2(pipeline)2.919 E F0 .419 F F1(|)2.92 E F0 5.42(.T)C .42(he format for a pipeline)-5.42 F(is:)108 703.2 Q([)144 720 Q F1(time)A F0([)2.5 E F1A 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 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(3)204 E 0 Cg EP %%Page: 4 5 %%BeginPageSetup @@ -697,7 +697,7 @@ 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 124.42(l2).15 G -(005 Feb 11)-124.42 E(4)204 E 0 Cg EP +(005 Feb 19)-124.42 E(4)204 E 0 Cg EP %%Page: 5 6 %%BeginPageSetup BP @@ -713,610 +713,623 @@ BP (must be unquoted to be recognized as primaries.)144 108 Q .502 (When the)144 126 R F1(==)3.002 E F0(and)3.002 E F1(!=)3.002 E F0 .502(\ operators are used, the string to the right of the operator is consider\ -ed a pat-)3.002 F 1.383 -(tern and matched according to the rules described belo)144 138 R 3.883 -(wu)-.25 G(nder)-3.883 E F1 -.1(Pa)3.883 G(tter).1 E 3.883(nM)-.15 G -(atching)-3.883 E F0 6.383(.T)C 1.383(he return)-6.383 F -.25(va)144 150 -S .589 -(lue is 0 if the string matches or does not match the pattern, respecti) -.25 F -.15(ve)-.25 G(ly).15 E 3.089(,a)-.65 G .589(nd 1 otherwise.) --3.089 F(An)5.589 E(y)-.15 E(part of the pattern may be quoted to force\ - it to be matched as a string.)144 162 Q .243 -(An additional binary operator)144 180 R(,)-.4 E F1(=~)2.743 E F0 2.743 +ed a pat-)3.002 F 1.225 +(tern and matched according to the rules described belo)144 138 R 3.724 +(wu)-.25 G(nder)-3.724 E F1 -.1(Pa)3.724 G(tter).1 E 3.724(nM)-.15 G +(atching)-3.724 E F0 6.224(.I)C 3.724(ft)-6.224 G 1.224(he shell)-3.724 +F(option)144 150 Q F1(nocasematch)3.404 E F0 .904 +(is enabled, the match is performed without re)3.404 F -.05(ga)-.15 G +.905(rd to the case of alphabetic).05 F 2.997(characters. The)144 162 R +.497(return v)2.997 F .496(alue is 0 if the string matches or does not \ +match the pattern, respecti)-.25 F -.15(ve)-.25 G(ly).15 E(,)-.65 E +(and 1 otherwise.)144 174 Q(An)5 E 2.5(yp)-.15 G(art of the pattern may\ + be quoted to force it to be matched as a string.)-2.5 E .243 +(An additional binary operator)144 192 R(,)-.4 E F1(=~)2.743 E F0 2.743 (,i)C 2.743(sa)-2.743 G -.25(va)-2.943 G .243 (ilable, with the same precedence as).25 F F1(==)2.743 E F0(and)2.743 E F1(!=)2.743 E F0 5.243(.W)C .243(hen it is)-5.243 F 1.953 (used, the string to the right of the operator is considered an e)144 -192 R 1.954(xtended re)-.15 F 1.954(gular e)-.15 F 1.954(xpression and) --.15 F .207(matched accordingly \(as in)144 204 R/F2 10/Times-Italic@0 +204 R 1.953(xtended re)-.15 F 1.953(gular e)-.15 F 1.953(xpression and) +-.15 F .207(matched accordingly \(as in)144 216 R/F2 10/Times-Italic@0 SF -.37(re)2.707 G -.1(ge)-.03 G(x)-.1 E F0 2.707(\(3\)\). The)B .207 (return v)2.707 F .207 -(alue is 0 if the string matches the pattern, and 1)-.25 F 3.345 -(otherwise. If)144 216 R .845(the re)3.345 F .845(gular e)-.15 F .846 +(alue is 0 if the string matches the pattern, and 1)-.25 F 3.346 +(otherwise. If)144 228 R .846(the re)3.346 F .846(gular e)-.15 F .845 (xpression is syntactically incorrect, the conditional e)-.15 F -(xpression')-.15 E 3.346(sr)-.55 G(eturn)-3.346 E -.25(va)144 228 S .252 -(lue is 2.).25 F .251(If the shell option)5.252 F F1(nocaseglob)2.751 E -F0 .251(is enabled, the match is performed without re)2.751 F -.05(ga) --.15 G .251(rd to the).05 F .101(case of alphabetic characters.)144 240 -R .101(Substrings matched by parenthesized sube)5.101 F .101 -(xpressions within the re)-.15 F(g-)-.15 E 5.406(ular e)144 252 R 5.406 -(xpression are sa)-.15 F -.15(ve)-.2 G 7.906(di).15 G 7.906(nt)-7.906 G -5.405(he array v)-7.906 F(ariable)-.25 E F1 -.3(BA)7.905 G(SH_REMA).3 E -(TCH)-.95 E F0 10.405(.T)C 5.405(he element of)-10.405 F F1 -.3(BA)144 -264 S(SH_REMA).3 E(TCH)-.95 E F0 .87(with inde)3.37 F 3.37(x0i)-.15 G -3.37(st)-3.37 G .87(he portion of the string matching the entire re) --3.37 F .87(gular e)-.15 F(xpres-)-.15 E 3.346(sion. The)144 276 R .846 +(xpression')-.15 E 3.345(sr)-.55 G(eturn)-3.345 E -.25(va)144 240 S .666 +(lue is 2.).25 F .667(If the shell option)5.667 F F1(nocasematch)3.167 E +F0 .667(is enabled, the match is performed without re)3.167 F -.05(ga) +-.15 G .667(rd to).05 F .44(the case of alphabetic characters.)144 252 R +.44(Substrings matched by parenthesized sube)5.44 F .44 +(xpressions within the)-.15 F(re)144 264 Q 4.258(gular e)-.15 F 4.258 +(xpression are sa)-.15 F -.15(ve)-.2 G 6.758(di).15 G 6.758(nt)-6.758 G +4.258(he array v)-6.758 F(ariable)-.25 E F1 -.3(BA)6.758 G(SH_REMA).3 E +(TCH)-.95 E F0 9.258(.T)C 4.259(he element of)-9.258 F F1 -.3(BA)144 276 +S(SH_REMA).3 E(TCH)-.95 E F0 .87(with inde)3.37 F 3.37(x0i)-.15 G 3.37 +(st)-3.37 G .87(he portion of the string matching the entire re)-3.37 F +.87(gular e)-.15 F(xpres-)-.15 E 3.346(sion. The)144 288 R .846 (element of)3.346 F F1 -.3(BA)3.346 G(SH_REMA).3 E(TCH)-.95 E F0 .846 (with inde)3.346 F(x)-.15 E F2(n)3.346 E F0 .846 -(is the portion of the string matching the)3.346 F F2(n)144 288 Q F0 -(th parenthesized sube)A(xpression.)-.15 E .785 -(Expressions may be combined using the follo)144 306 R .786 +(is the portion of the string matching the)3.346 F F2(n)144 300 Q F0 +(th parenthesized sube)A(xpression.)-.15 E .786 +(Expressions may be combined using the follo)144 318 R .785 (wing operators, listed in decreasing order of prece-)-.25 F(dence:)144 -318 Q F1(\()144 336 Q F2 -.2(ex)2.5 G(pr).2 E(ession)-.37 E F1(\))2.5 E -F0 .523(Returns the v)180 348 R .522(alue of)-.25 F F2 -.2(ex)3.022 G +330 Q F1(\()144 348 Q F2 -.2(ex)2.5 G(pr).2 E(ession)-.37 E F1(\))2.5 E +F0 .522(Returns the v)180 360 R .522(alue of)-.25 F F2 -.2(ex)3.022 G (pr).2 E(ession)-.37 E F0 5.522(.T)C .522(his may be used to o)-5.522 F -.15(ve)-.15 G .522(rride the normal precedence of).15 F(operators.)180 -360 Q F1(!)144 372 Q F2 -.2(ex)2.5 G(pr).2 E(ession)-.37 E F0 -.35(Tr) -180 384 S(ue if).35 E F2 -.2(ex)2.5 G(pr).2 E(ession)-.37 E F0(is f)2.74 -E(alse.)-.1 E F2 -.2(ex)144 396 S(pr).2 E(ession1)-.37 E F1(&&)2.5 E F2 --.2(ex)2.5 G(pr).2 E(ession2)-.37 E F0 -.35(Tr)180 408 S(ue if both).35 +372 Q F1(!)144 384 Q F2 -.2(ex)2.5 G(pr).2 E(ession)-.37 E F0 -.35(Tr) +180 396 S(ue if).35 E F2 -.2(ex)2.5 G(pr).2 E(ession)-.37 E F0(is f)2.74 +E(alse.)-.1 E F2 -.2(ex)144 408 S(pr).2 E(ession1)-.37 E F1(&&)2.5 E F2 +-.2(ex)2.5 G(pr).2 E(ession2)-.37 E F0 -.35(Tr)180 420 S(ue if both).35 E F2 -.2(ex)2.5 G(pr).2 E(ession1)-.37 E F0(and)2.5 E F2 -.2(ex)2.5 G -(pr).2 E(ession2)-.37 E F0(are true.)2.52 E F2 -.2(ex)144 420 S(pr).2 E +(pr).2 E(ession2)-.37 E F0(are true.)2.52 E F2 -.2(ex)144 432 S(pr).2 E (ession1)-.37 E/F3 10/Symbol SF2.5 E F2 -.2(ex)2.5 G(pr).2 E -(ession2)-.37 E F0 -.35(Tr)180 432 S(ue if either).35 E F2 -.2(ex)2.5 G +(ession2)-.37 E F0 -.35(Tr)180 444 S(ue if either).35 E F2 -.2(ex)2.5 G (pr).2 E(ession1)-.37 E F0(or)2.5 E F2 -.2(ex)2.5 G(pr).2 E(ession2)-.37 -E F0(is true.)2.52 E(The)144 448.8 Q F1(&&)3.298 E F0(and)3.298 E F3 +E F0(is true.)2.52 E(The)144 460.8 Q F1(&&)3.299 E F0(and)3.299 E F3 3.298 E F0 .798(operators do not e)3.298 F -.25(va)-.25 G(luate) .25 E F2 -.2(ex)3.298 G(pr).2 E(ession2)-.37 E F0 .798(if the v)3.298 F -.798(alue of)-.25 F F2 -.2(ex)3.298 G(pr).2 E(ession1)-.37 E F0 .799 -(is suf)3.298 F .799(\214cient to)-.25 F(determine the return v)144 -460.8 Q(alue of the entire conditional e)-.25 E(xpression.)-.15 E F1 --.25(fo)108 477.6 S(r).25 E F2(name)2.5 E F0([)2.5 E F1(in)2.5 E F2(wor) +.798(alue of)-.25 F F2 -.2(ex)3.298 G(pr).2 E(ession1)-.37 E F0 .798 +(is suf)3.298 F .798(\214cient to)-.25 F(determine the return v)144 +472.8 Q(alue of the entire conditional e)-.25 E(xpression.)-.15 E F1 +-.25(fo)108 489.6 S(r).25 E F2(name)2.5 E F0([)2.5 E F1(in)2.5 E F2(wor) 2.5 E(d)-.37 E F0 2.5(];)2.5 G F1(do)A F2(list)2.5 E F0(;)2.5 E F1(done) -2.5 E F0 .424(The list of w)144 489.6 R .424(ords follo)-.1 F(wing)-.25 -E F1(in)2.924 E F0 .423(is e)2.924 F .423 -(xpanded, generating a list of items.)-.15 F .423(The v)5.423 F(ariable) --.25 E F2(name)2.923 E F0 .423(is set to)2.923 F .653 -(each element of this list in turn, and)144 501.6 R F2(list)3.153 E F0 +2.5 E F0 .423(The list of w)144 501.6 R .423(ords follo)-.1 F(wing)-.25 +E F1(in)2.923 E F0 .423(is e)2.923 F .423 +(xpanded, generating a list of items.)-.15 F .424(The v)5.424 F(ariable) +-.25 E F2(name)2.924 E F0 .424(is set to)2.924 F .653 +(each element of this list in turn, and)144 513.6 R F2(list)3.153 E F0 .653(is e)3.153 F -.15(xe)-.15 G .653(cuted each time.).15 F .653 (If the)5.653 F F1(in)3.153 E F2(wor)3.153 E(d)-.37 E F0 .653 -(is omitted, the)3.153 F F1 -.25(fo)3.153 G(r).25 E F0 .649(command e) -144 513.6 R -.15(xe)-.15 G(cutes).15 E F2(list)3.149 E F0 .648 +(is omitted, the)3.153 F F1 -.25(fo)3.153 G(r).25 E F0 .648(command e) +144 525.6 R -.15(xe)-.15 G(cutes).15 E F2(list)3.148 E F0 .648 (once for each positional parameter that is set \(see)3.148 F/F4 9 -/Times-Bold@0 SF -.666(PA)3.148 G(RAMETERS).666 E F0(belo)2.898 E(w\).) --.25 E .153(The return status is the e)144 525.6 R .153 -(xit status of the last command that e)-.15 F -.15(xe)-.15 G 2.654 -(cutes. If).15 F .154(the e)2.654 F .154(xpansion of the items)-.15 F -(follo)144 537.6 Q(wing)-.25 E F1(in)2.5 E F0 +/Times-Bold@0 SF -.666(PA)3.149 G(RAMETERS).666 E F0(belo)2.899 E(w\).) +-.25 E .154(The return status is the e)144 537.6 R .153 +(xit status of the last command that e)-.15 F -.15(xe)-.15 G 2.653 +(cutes. If).15 F .153(the e)2.653 F .153(xpansion of the items)-.15 F +(follo)144 549.6 Q(wing)-.25 E F1(in)2.5 E F0 (results in an empty list, no commands are e)2.5 E -.15(xe)-.15 G -(cuted, and the return status is 0.).15 E F1 -.25(fo)108 554.4 S(r).25 E +(cuted, and the return status is 0.).15 E F1 -.25(fo)108 566.4 S(r).25 E F0(\(\()2.5 E F2 -.2(ex)2.5 G(pr1).2 E F0(;)2.5 E F2 -.2(ex)2.5 G(pr2).2 E F0(;)2.5 E F2 -.2(ex)2.5 G(pr3).2 E F0(\)\) ;)2.5 E F1(do)2.5 E F2 -(list)2.5 E F0(;)2.5 E F1(done)2.5 E F0 1.236(First, the arithmetic e) -144 566.4 R(xpression)-.15 E F2 -.2(ex)3.736 G(pr1).2 E F0 1.235(is e) -3.736 F -.25(va)-.25 G 1.235 -(luated according to the rules described belo).25 F 3.735(wu)-.25 G -(nder)-3.735 E F4 .561(ARITHMETIC EV)144 578.4 R(ALU)-1.215 E -.855(AT) --.54 G(ION).855 E/F5 9/Times-Roman@0 SF(.)A F0 .561(The arithmetic e) -5.061 F(xpression)-.15 E F2 -.2(ex)3.061 G(pr2).2 E F0 .562(is then e) -3.062 F -.25(va)-.25 G .562(luated repeatedly until).25 F .592(it e)144 -590.4 R -.25(va)-.25 G .592(luates to zero.).25 F .592(Each time)5.592 F +(list)2.5 E F0(;)2.5 E F1(done)2.5 E F0 1.235(First, the arithmetic e) +144 578.4 R(xpression)-.15 E F2 -.2(ex)3.735 G(pr1).2 E F0 1.235(is e) +3.735 F -.25(va)-.25 G 1.236 +(luated according to the rules described belo).25 F 3.736(wu)-.25 G +(nder)-3.736 E F4 .562(ARITHMETIC EV)144 590.4 R(ALU)-1.215 E -.855(AT) +-.54 G(ION).855 E/F5 9/Times-Roman@0 SF(.)A F0 .562(The arithmetic e) +5.062 F(xpression)-.15 E F2 -.2(ex)3.062 G(pr2).2 E F0 .561(is then e) +3.061 F -.25(va)-.25 G .561(luated repeatedly until).25 F .591(it e)144 +602.4 R -.25(va)-.25 G .591(luates to zero.).25 F .592(Each time)5.591 F F2 -.2(ex)3.092 G(pr2).2 E F0 -.25(eva)3.092 G .592 -(luates to a non-zero v).25 F(alue,)-.25 E F2(list)3.092 E F0 .591(is e) -3.092 F -.15(xe)-.15 G .591(cuted and the arith-).15 F .228(metic e)144 -602.4 R(xpression)-.15 E F2 -.2(ex)2.728 G(pr3).2 E F0 .229(is e)2.728 F +(luates to a non-zero v).25 F(alue,)-.25 E F2(list)3.092 E F0 .592(is e) +3.092 F -.15(xe)-.15 G .592(cuted and the arith-).15 F .229(metic e)144 +614.4 R(xpression)-.15 E F2 -.2(ex)2.729 G(pr3).2 E F0 .229(is e)2.729 F -.25(va)-.25 G 2.729(luated. If).25 F(an)2.729 E 2.729(ye)-.15 G .229 (xpression is omitted, it beha)-2.879 F -.15(ve)-.2 G 2.729(sa).15 G -2.729(si)-2.729 G 2.729(fi)-2.729 G 2.729(te)-2.729 G -.25(va)-2.979 G -.229(luates to 1.).25 F .228(The return v)144 614.4 R .228 -(alue is the e)-.25 F .228(xit status of the last command in)-.15 F F2 -(list)2.728 E F0 .227(that is e)2.728 F -.15(xe)-.15 G .227(cuted, or f) -.15 F .227(alse if an)-.1 F 2.727(yo)-.15 G 2.727(ft)-2.727 G(he)-2.727 -E -.15(ex)144 626.4 S(pressions is in).15 E -.25(va)-.4 G(lid.).25 E F1 -(select)108 643.2 Q F2(name)2.5 E F0([)2.5 E F1(in)2.5 E F2(wor)2.5 E(d) +2.729(si)-2.729 G 2.729(fi)-2.729 G 2.728(te)-2.729 G -.25(va)-2.978 G +.228(luates to 1.).25 F .227(The return v)144 626.4 R .227 +(alue is the e)-.25 F .227(xit status of the last command in)-.15 F F2 +(list)2.728 E F0 .228(that is e)2.728 F -.15(xe)-.15 G .228(cuted, or f) +.15 F .228(alse if an)-.1 F 2.728(yo)-.15 G 2.728(ft)-2.728 G(he)-2.728 +E -.15(ex)144 638.4 S(pressions is in).15 E -.25(va)-.4 G(lid.).25 E F1 +(select)108 655.2 Q F2(name)2.5 E F0([)2.5 E F1(in)2.5 E F2(wor)2.5 E(d) -.37 E F0 2.5(];)2.5 G F1(do)A F2(list)2.5 E F0(;)2.5 E F1(done)2.5 E F0 -.432(The list of w)144 655.2 R .432(ords follo)-.1 F(wing)-.25 E F1(in) -2.932 E F0 .432(is e)2.932 F .432(xpanded, generating a list of items.) --.15 F .433(The set of e)5.433 F .433(xpanded w)-.15 F(ords)-.1 E .843 -(is printed on the standard error)144 667.2 R 3.342(,e)-.4 G .842 +.433(The list of w)144 667.2 R .433(ords follo)-.1 F(wing)-.25 E F1(in) +2.933 E F0 .432(is e)2.933 F .432(xpanded, generating a list of items.) +-.15 F .432(The set of e)5.432 F .432(xpanded w)-.15 F(ords)-.1 E .842 +(is printed on the standard error)144 679.2 R 3.342(,e)-.4 G .842 (ach preceded by a number)-3.342 F 5.842(.I)-.55 G 3.342(ft)-5.842 G(he) --3.342 E F1(in)3.342 E F2(wor)3.342 E(d)-.37 E F0 .842 -(is omitted, the posi-)3.342 F .064(tional parameters are printed \(see) -144 679.2 R F4 -.666(PA)2.564 G(RAMETERS).666 E F0(belo)2.314 E 2.564 +-3.342 E F1(in)3.342 E F2(wor)3.342 E(d)-.37 E F0 .843 +(is omitted, the posi-)3.343 F .064(tional parameters are printed \(see) +144 691.2 R F4 -.666(PA)2.564 G(RAMETERS).666 E F0(belo)2.314 E 2.564 (w\). The)-.25 F F1(PS3)2.564 E F0 .064(prompt is then displayed and a) -2.564 F .214(line read from the standard input.)144 691.2 R .213 -(If the line consists of a number corresponding to one of the dis-)5.214 -F 1.537(played w)144 703.2 R 1.537(ords, then the v)-.1 F 1.537(alue of) --.25 F F2(name)4.397 E F0 1.537(is set to that w)4.217 F 4.037(ord. If) --.1 F 1.538(the line is empty)4.038 F 4.038(,t)-.65 G 1.538(he w)-4.038 -F 1.538(ords and)-.1 F .066(prompt are displayed ag)144 715.2 R 2.566 -(ain. If)-.05 F .065(EOF is read, the command completes.)2.566 F(An) -5.065 E 2.565(yo)-.15 G .065(ther v)-2.565 F .065(alue read causes)-.25 -F F2(name)144 727.2 Q F0 .759(to be set to null.)3.439 F .759 -(The line read is sa)5.759 F -.15(ve)-.2 G 3.26(di).15 G 3.26(nt)-3.26 G -.76(he v)-3.26 F(ariable)-.25 E F1(REPL)3.26 E(Y)-.92 E F0 5.76(.T)C(he) --5.76 E F2(list)3.35 E F0 .76(is e)3.94 F -.15(xe)-.15 G .76 -(cuted after).15 F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 -G(005 Feb 11)-124.42 E(5)204 E 0 Cg EP +2.564 F .213(line read from the standard input.)144 703.2 R .213 +(If the line consists of a number corresponding to one of the dis-)5.213 +F 1.538(played w)144 715.2 R 1.538(ords, then the v)-.1 F 1.538(alue of) +-.25 F F2(name)4.398 E F0 1.537(is set to that w)4.218 F 4.037(ord. If) +-.1 F 1.537(the line is empty)4.037 F 4.037(,t)-.65 G 1.537(he w)-4.037 +F 1.537(ords and)-.1 F .065(prompt are displayed ag)144 727.2 R 2.565 +(ain. If)-.05 F .065(EOF is read, the command completes.)2.565 F(An) +5.066 E 2.566(yo)-.15 G .066(ther v)-2.566 F .066(alue read causes)-.25 +F(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) +-124.42 E(5)204 E 0 Cg EP %%Page: 6 7 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E .072(each selection until a)144 84 R/F1 10/Times-Bold@0 SF(br) -2.571 E(eak)-.18 E F0 .071(command is e)2.571 F -.15(xe)-.15 G 2.571 -(cuted. The).15 F -.15(ex)2.571 G .071(it status of).15 F F1(select) -2.571 E F0 .071(is the e)2.571 F .071(xit status of the)-.15 F -(last command e)144 96 Q -.15(xe)-.15 G(cuted in).15 E/F2 10 -/Times-Italic@0 SF(list)2.5 E F0 2.5(,o).68 G 2.5(rz)-2.5 G -(ero if no commands were e)-2.5 E -.15(xe)-.15 G(cuted.).15 E F1(case) -108 112.8 Q F2(wor)2.5 E(d)-.37 E F1(in)2.5 E F0 2.5([[)2.5 G(\(])-2.5 E -F2(pattern)2.5 E F0([)2.5 E F1(|)2.5 E F2(pattern)2.5 E F0 2.5(].)2.5 G -(.. \))-2.5 E F2(list)2.5 E F0(;; ] ...)2.5 E F1(esac)2.5 E F0(A)144 -124.8 Q F1(case)3.264 E F0 .764(command \214rst e)3.264 F(xpands)-.15 E -F2(wor)3.264 E(d)-.37 E F0 3.264(,a)C .764(nd tries to match it ag) --3.264 F .764(ainst each)-.05 F F2(pattern)3.264 E F0 .765 -(in turn, using the)3.264 F 2.028(same matching rules as for pathname e) -144 136.8 R 2.027(xpansion \(see)-.15 F F1 -.1(Pa)4.527 G 2.027 -(thname Expansion).1 F F0(belo)4.527 E 4.527(w\). When)-.25 F(a)4.527 E -.89(match is found, the corresponding)144 148.8 R F2(list)3.39 E F0 .89 -(is e)3.39 F -.15(xe)-.15 G 3.39(cuted. After).15 F .89 -(the \214rst match, no subsequent matches)3.39 F .523(are attempted.)144 -160.8 R .523(The e)5.523 F .523 -(xit status is zero if no pattern matches.)-.15 F .523 -(Otherwise, it is the e)5.523 F .522(xit status of the)-.15 F -(last command e)144 172.8 Q -.15(xe)-.15 G(cuted in).15 E F2(list)2.5 E -F0(.)A F1(if)108 189.6 Q F2(list)2.5 E F0(;)A F1(then)2.5 E F2(list;)2.5 -E F0([)2.5 E F1(elif)2.5 E F2(list)2.5 E F0(;)A F1(then)2.5 E F2(list) -2.5 E F0 2.5(;].)C(.. [)-2.5 E F1(else)2.5 E F2(list)2.5 E F0 2.5(;])C -F1<8c>A F0(The)144 201.6 Q F1(if)2.977 E F2(list)3.067 E F0 .478(is e) -3.658 F -.15(xe)-.15 G 2.978(cuted. If).15 F .478(its e)2.978 F .478 -(xit status is zero, the)-.15 F F1(then)2.978 E F2(list)2.978 E F0 .478 -(is e)2.978 F -.15(xe)-.15 G 2.978(cuted. Otherwise,).15 F(each)2.978 E -F1(elif)2.978 E F2(list)2.978 E F0 1.088(is e)144 213.6 R -.15(xe)-.15 G -1.088(cuted in turn, and if its e).15 F 1.087 -(xit status is zero, the corresponding)-.15 F F1(then)3.587 E F2(list) +-.35 E/F1 10/Times-Italic@0 SF(name)144 84 Q F0 .76(to be set to null.) +3.44 F .76(The line read is sa)5.76 F -.15(ve)-.2 G 3.259(di).15 G 3.259 +(nt)-3.259 G .759(he v)-3.259 F(ariable)-.25 E/F2 10/Times-Bold@0 SF +(REPL)3.259 E(Y)-.92 E F0 5.759(.T)C(he)-5.759 E F1(list)3.349 E F0 .759 +(is e)3.939 F -.15(xe)-.15 G .759(cuted after).15 F .071 +(each selection until a)144 96 R F2(br)2.571 E(eak)-.18 E F0 .071 +(command is e)2.571 F -.15(xe)-.15 G 2.571(cuted. The).15 F -.15(ex) +2.571 G .071(it status of).15 F F2(select)2.571 E F0 .071(is the e)2.571 +F .072(xit status of the)-.15 F(last command e)144 108 Q -.15(xe)-.15 G +(cuted in).15 E F1(list)2.5 E F0 2.5(,o).68 G 2.5(rz)-2.5 G +(ero if no commands were e)-2.5 E -.15(xe)-.15 G(cuted.).15 E F2(case) +108 124.8 Q F1(wor)2.5 E(d)-.37 E F2(in)2.5 E F0 2.5([[)2.5 G(\(])-2.5 E +F1(pattern)2.5 E F0([)2.5 E F2(|)2.5 E F1(pattern)2.5 E F0 2.5(].)2.5 G +(.. \))-2.5 E F1(list)2.5 E F0(;; ] ...)2.5 E F2(esac)2.5 E F0(A)144 +136.8 Q F2(case)3.265 E F0 .764(command \214rst e)3.265 F(xpands)-.15 E +F1(wor)3.264 E(d)-.37 E F0 3.264(,a)C .764(nd tries to match it ag) +-3.264 F .764(ainst each)-.05 F F1(pattern)3.264 E F0 .764 +(in turn, using the)3.264 F .952(same matching rules as for pathname e) +144 148.8 R .952(xpansion \(see)-.15 F F2 -.1(Pa)3.452 G .952 +(thname Expansion).1 F F0(belo)3.453 E 3.453(w\). If)-.25 F .953 +(the shell)3.453 F(option)144 160.8 Q F2(nocasematch)3.405 E F0 .904 +(is enabled, the match is performed without re)3.405 F -.05(ga)-.15 G +.904(rd to the case of alphabetic).05 F 3.388(characters. When)144 172.8 +R 3.388(am)3.388 G .888(atch is found, the corresponding)-3.388 F F1 +(list)3.388 E F0 .888(is e)3.388 F -.15(xe)-.15 G 3.388(cuted. After).15 +F .888(the \214rst match, no)3.388 F .674 +(subsequent matches are attempted.)144 184.8 R .674(The e)5.674 F .673 +(xit status is zero if no pattern matches.)-.15 F .673(Otherwise, it is) +5.673 F(the e)144 196.8 Q(xit status of the last command e)-.15 E -.15 +(xe)-.15 G(cuted in).15 E F1(list)2.5 E F0(.)A F2(if)108 213.6 Q F1 +(list)2.5 E F0(;)A F2(then)2.5 E F1(list;)2.5 E F0([)2.5 E F2(elif)2.5 E +F1(list)2.5 E F0(;)A F2(then)2.5 E F1(list)2.5 E F0 2.5(;].)C(.. [)-2.5 +E F2(else)2.5 E F1(list)2.5 E F0 2.5(;])C F2<8c>A F0(The)144 225.6 Q F2 +(if)2.977 E F1(list)3.067 E F0 .478(is e)3.658 F -.15(xe)-.15 G 2.978 +(cuted. If).15 F .478(its e)2.978 F .478(xit status is zero, the)-.15 F +F2(then)2.978 E F1(list)2.978 E F0 .478(is e)2.978 F -.15(xe)-.15 G +2.978(cuted. Otherwise,).15 F(each)2.978 E F2(elif)2.978 E F1(list)2.978 +E F0 1.088(is e)144 237.6 R -.15(xe)-.15 G 1.088 +(cuted in turn, and if its e).15 F 1.087 +(xit status is zero, the corresponding)-.15 F F2(then)3.587 E F1(list) 3.587 E F0 1.087(is e)3.587 F -.15(xe)-.15 G 1.087(cuted and the).15 F -.103(command completes.)144 225.6 R .103(Otherwise, the)5.103 F F1(else) -2.603 E F2(list)2.603 E F0 .103(is e)2.603 F -.15(xe)-.15 G .103 +.103(command completes.)144 249.6 R .103(Otherwise, the)5.103 F F2(else) +2.603 E F1(list)2.603 E F0 .103(is e)2.603 F -.15(xe)-.15 G .103 (cuted, if present.).15 F .103(The e)5.103 F .103(xit status is the e) --.15 F .104(xit sta-)-.15 F(tus of the last command e)144 237.6 Q -.15 -(xe)-.15 G(cuted, or zero if no condition tested true.).15 E F1(while) -108 254.4 Q F2(list)2.5 E F0(;)A F1(do)2.5 E F2(list)2.5 E F0(;)A F1 -(done)2.5 E(until)108 266.4 Q F2(list)2.5 E F0(;)A F1(do)2.5 E F2(list) -2.5 E F0(;)A F1(done)2.5 E F0(The)144 278.4 Q F1(while)3.104 E F0 .603 -(command continuously e)3.104 F -.15(xe)-.15 G .603(cutes the).15 F F1 -(do)3.103 E F2(list)3.103 E F0 .603(as long as the last command in)3.103 -F F2(list)3.103 E F0(returns)3.103 E .47(an e)144 290.4 R .47 -(xit status of zero.)-.15 F(The)5.47 E F1(until)2.97 E F0 .471 -(command is identical to the)2.97 F F1(while)2.971 E F0 .471(command, e) -2.971 F .471(xcept that the test)-.15 F .096(is ne)144 302.4 R -.05(ga) --.15 G .096(ted; the).05 F F1(do)2.596 E F2(list)2.686 E F0 .095(is e) +-.15 F .104(xit sta-)-.15 F(tus of the last command e)144 261.6 Q -.15 +(xe)-.15 G(cuted, or zero if no condition tested true.).15 E F2(while) +108 278.4 Q F1(list)2.5 E F0(;)A F2(do)2.5 E F1(list)2.5 E F0(;)A F2 +(done)2.5 E(until)108 290.4 Q F1(list)2.5 E F0(;)A F2(do)2.5 E F1(list) +2.5 E F0(;)A F2(done)2.5 E F0(The)144 302.4 Q F2(while)3.104 E F0 .603 +(command continuously e)3.104 F -.15(xe)-.15 G .603(cutes the).15 F F2 +(do)3.103 E F1(list)3.103 E F0 .603(as long as the last command in)3.103 +F F1(list)3.103 E F0(returns)3.103 E .47(an e)144 314.4 R .47 +(xit status of zero.)-.15 F(The)5.47 E F2(until)2.97 E F0 .471 +(command is identical to the)2.97 F F2(while)2.971 E F0 .471(command, e) +2.971 F .471(xcept that the test)-.15 F .096(is ne)144 326.4 R -.05(ga) +-.15 G .096(ted; the).05 F F2(do)2.596 E F1(list)2.686 E F0 .095(is e) 3.276 F -.15(xe)-.15 G .095(cuted as long as the last command in).15 F -F2(list)2.685 E F0 .095(returns a non-zero e)3.275 F .095(xit status.) --.15 F 1.306(The e)144 314.4 R 1.306(xit status of the)-.15 F F1(while) -3.806 E F0(and)3.806 E F1(until)3.807 E F0 1.307(commands is the e)3.807 -F 1.307(xit status of the last)-.15 F F1(do)3.807 E F2(list)3.807 E F0 -(command)3.807 E -.15(exe)144 326.4 S(cuted, or zero if none w).15 E -(as e)-.1 E -.15(xe)-.15 G(cuted.).15 E F1(Shell Function De\214nitions) -87 343.2 Q F0 2.698(As)108 355.2 S .198 +F1(list)2.685 E F0 .095(returns a non-zero e)3.275 F .095(xit status.) +-.15 F 1.306(The e)144 338.4 R 1.306(xit status of the)-.15 F F2(while) +3.806 E F0(and)3.806 E F2(until)3.807 E F0 1.307(commands is the e)3.807 +F 1.307(xit status of the last)-.15 F F2(do)3.807 E F1(list)3.807 E F0 +(command)3.807 E -.15(exe)144 350.4 S(cuted, or zero if none w).15 E +(as e)-.1 E -.15(xe)-.15 G(cuted.).15 E F2(Shell Function De\214nitions) +87 367.2 Q F0 2.698(As)108 379.2 S .198 (hell function is an object that is called lik)-2.698 F 2.698(eas)-.1 G .198(imple command and e)-2.698 F -.15(xe)-.15 G .197 -(cutes a compound command with).15 F 2.5(an)108 367.2 S .5 -.25(ew s) +(cutes a compound command with).15 F 2.5(an)108 391.2 S .5 -.25(ew s) -2.5 H(et of positional parameters.).25 E -(Shell functions are declared as follo)5 E(ws:)-.25 E([)108 384 Q F1 -(function)2.5 E F0(])2.5 E F2(name)2.5 E F0(\(\))2.5 E F2 -(compound\255command)2.5 E F0([)2.5 E F2 -.37(re)C(dir).37 E(ection)-.37 -E F0(])A 1.402(This de\214nes a function named)144 396 R F2(name)3.902 E -F0 6.402(.T)C 1.402(he reserv)-6.402 F 1.402(ed w)-.15 F(ord)-.1 E F1 -(function)3.902 E F0 1.402(is optional.)3.902 F 1.403(If the)6.402 F F1 -(function)3.903 E F0(reserv)144 408 Q .162(ed w)-.15 F .162 -(ord is supplied, the parentheses are optional.)-.1 F(The)5.162 E F2 +(Shell functions are declared as follo)5 E(ws:)-.25 E([)108 408 Q F2 +(function)2.5 E F0(])2.5 E F1(name)2.5 E F0(\(\))2.5 E F1 +(compound\255command)2.5 E F0([)2.5 E F1 -.37(re)C(dir).37 E(ection)-.37 +E F0(])A 1.402(This de\214nes a function named)144 420 R F1(name)3.902 E +F0 6.402(.T)C 1.402(he reserv)-6.402 F 1.402(ed w)-.15 F(ord)-.1 E F2 +(function)3.902 E F0 1.402(is optional.)3.902 F 1.403(If the)6.402 F F2 +(function)3.903 E F0(reserv)144 432 Q .162(ed w)-.15 F .162 +(ord is supplied, the parentheses are optional.)-.1 F(The)5.162 E F1 (body)2.662 E F0 .162(of the function is the compound)2.662 F(command) -144 420 Q F2(compound\255command)2.784 E F0(\(see)3.354 E F1 .084 +144 444 Q F1(compound\255command)2.784 E F0(\(see)3.354 E F2 .084 (Compound Commands)2.584 F F0(abo)2.584 E -.15(ve)-.15 G 2.584(\). That) -.15 F .084(command is usually a)2.584 F F2(list)144 432 Q F0 .044 +.15 F .084(command is usually a)2.584 F F1(list)144 456 Q F0 .044 (of commands between { and }, b)2.544 F .044(ut may be an)-.2 F 2.544 -(yc)-.15 G .044(ommand listed under)-2.544 F F1 .044(Compound Commands) -2.544 F F0(abo)144 444 Q -.15(ve)-.15 G(.).15 E F2(compound\255command) +(yc)-.15 G .044(ommand listed under)-2.544 F F2 .044(Compound Commands) +2.544 F F0(abo)144 468 Q -.15(ve)-.15 G(.).15 E F1(compound\255command) 6.67 E F0 1.67(is e)4.17 F -.15(xe)-.15 G 1.671(cuted whene).15 F -.15 -(ve)-.25 G(r).15 E F2(name)4.171 E F0 1.671 +(ve)-.25 G(r).15 E F1(name)4.171 E F0 1.671 (is speci\214ed as the name of a simple)4.171 F 3.009(command. An)144 -456 R 3.009(yr)-.15 G .509(edirections \(see)-3.009 F/F3 9/Times-Bold@0 +480 R 3.009(yr)-.15 G .509(edirections \(see)-3.009 F/F3 9/Times-Bold@0 SF(REDIRECTION)3.009 E F0(belo)2.759 E .509 (w\) speci\214ed when a function is de\214ned are)-.25 F .58 -(performed when the function is e)144 468 R -.15(xe)-.15 G 3.08 +(performed when the function is e)144 492 R -.15(xe)-.15 G 3.08 (cuted. The).15 F -.15(ex)3.081 G .581 (it status of a function de\214nition is zero unless a).15 F .177(synta\ x error occurs or a readonly function with the same name already e)144 -480 R 2.677(xists. When)-.15 F -.15(exe)2.677 G .177(cuted, the).15 F --.15(ex)144 492 S .64(it status of a function is the e).15 F .64 +504 R 2.677(xists. When)-.15 F -.15(exe)2.677 G .177(cuted, the).15 F +-.15(ex)144 516 S .64(it status of a function is the e).15 F .64 (xit status of the last command e)-.15 F -.15(xe)-.15 G .64 (cuted in the body).15 F 5.64(.\()-.65 G(See)-5.64 E F3(FUNC-)3.14 E -(TIONS)144 504 Q F0(belo)2.25 E -.65(w.)-.25 G(\)).65 E/F4 10.95 -/Times-Bold@0 SF(COMMENTS)72 520.8 Q F0 .982(In a non-interacti)108 -532.8 R 1.282 -.15(ve s)-.25 H .982(hell, or an interacti).15 F 1.282 --.15(ve s)-.25 H .982(hell in which the).15 F F1(interacti)3.482 E -.1 -(ve)-.1 G(_comments).1 E F0 .982(option to the)3.482 F F1(shopt)3.482 E -F0 -.2(bu)108 544.8 S .951(iltin is enabled \(see).2 F F3 .952(SHELL B) +(TIONS)144 528 Q F0(belo)2.25 E -.65(w.)-.25 G(\)).65 E/F4 10.95 +/Times-Bold@0 SF(COMMENTS)72 544.8 Q F0 .982(In a non-interacti)108 +556.8 R 1.282 -.15(ve s)-.25 H .982(hell, or an interacti).15 F 1.282 +-.15(ve s)-.25 H .982(hell in which the).15 F F2(interacti)3.482 E -.1 +(ve)-.1 G(_comments).1 E F0 .982(option to the)3.482 F F2(shopt)3.482 E +F0 -.2(bu)108 568.8 S .951(iltin is enabled \(see).2 F F3 .952(SHELL B) 3.451 F(UIL)-.09 E .952(TIN COMMANDS)-.828 F F0(belo)3.202 E .952 -(w\), a w)-.25 F .952(ord be)-.1 F .952(ginning with)-.15 F F1(#)3.452 E +(w\), a w)-.25 F .952(ord be)-.1 F .952(ginning with)-.15 F F2(#)3.452 E F0 .952(causes that w)3.452 F(ord)-.1 E .605 -(and all remaining characters on that line to be ignored.)108 556.8 R +(and all remaining characters on that line to be ignored.)108 580.8 R .604(An interacti)5.605 F .904 -.15(ve s)-.25 H .604(hell without the) -.15 F F1(interacti)3.104 E -.1(ve)-.1 G(_com-).1 E(ments)108 568.8 Q F0 +.15 F F2(interacti)3.104 E -.1(ve)-.1 G(_com-).1 E(ments)108 592.8 Q F0 1.336(option enabled does not allo)3.836 F 3.836(wc)-.25 G 3.836 -(omments. The)-3.836 F F1(interacti)3.836 E -.1(ve)-.1 G(_comments).1 E +(omments. The)-3.836 F F2(interacti)3.836 E -.1(ve)-.1 G(_comments).1 E F0 1.337(option is on by def)3.837 F 1.337(ault in)-.1 F(interacti)108 -580.8 Q .3 -.15(ve s)-.25 H(hells.).15 E F4 -.11(QU)72 597.6 S -.438(OT) -.11 G(ING).438 E F2(Quoting)108 609.6 Q F0 .478(is used to remo)2.978 F +604.8 Q .3 -.15(ve s)-.25 H(hells.).15 E F4 -.11(QU)72 621.6 S -.438(OT) +.11 G(ING).438 E F1(Quoting)108 633.6 Q F0 .478(is used to remo)2.978 F .777 -.15(ve t)-.15 H .477 (he special meaning of certain characters or w).15 F .477 (ords to the shell.)-.1 F .477(Quoting can be)5.477 F .184 (used to disable special treatment for special characters, to pre)108 -621.6 R -.15(ve)-.25 G .185(nt reserv).15 F .185(ed w)-.15 F .185 -(ords from being recognized as)-.1 F(such, and to pre)108 633.6 Q -.15 +645.6 R -.15(ve)-.25 G .185(nt reserv).15 F .185(ed w)-.15 F .185 +(ords from being recognized as)-.1 F(such, and to pre)108 657.6 Q -.15 (ve)-.25 G(nt parameter e).15 E(xpansion.)-.15 E .289(Each of the)108 -650.4 R F2(metac)2.789 E(har)-.15 E(acter)-.15 E(s)-.1 E F0 .288 +674.4 R F1(metac)2.789 E(har)-.15 E(acter)-.15 E(s)-.1 E F0 .288 (listed abo)2.789 F .588 -.15(ve u)-.15 H(nder).15 E F3(DEFINITIONS) 2.788 E F0 .288(has special meaning to the shell and must be)2.538 F -(quoted if it is to represent itself.)108 662.4 Q 1.344 -(When the command history e)108 679.2 R 1.344(xpansion f)-.15 F 1.344 +(quoted if it is to represent itself.)108 686.4 Q 1.344 +(When the command history e)108 703.2 R 1.344(xpansion f)-.15 F 1.344 (acilities are being used \(see)-.1 F F3(HIST)3.844 E(OR)-.162 E 3.594 (YE)-.315 G(XP)-3.594 E(ANSION)-.666 E F0(belo)3.595 E 1.345(w\), the) --.25 F F2(history e)108 691.2 Q(xpansion)-.2 E F0(character)2.5 E 2.5 -(,u)-.4 G(sually)-2.5 E F1(!)2.5 E F0 2.5(,m)C(ust be quoted to pre)-2.5 -E -.15(ve)-.25 G(nt history e).15 E(xpansion.)-.15 E -(There are three quoting mechanisms: the)108 708 Q F2(escape c)2.5 E -(har)-.15 E(acter)-.15 E F0 2.5(,s).73 G -(ingle quotes, and double quotes.)-2.5 E 2.975(An)108 724.8 S .475 -(on-quoted backslash \()-2.975 F F1(\\)A F0 2.974(\)i)C 2.974(st)-2.974 -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 124.42(l2).15 G(005 Feb 11) --124.42 E(6)204 E 0 Cg EP +-.25 F F1(history e)108 715.2 Q(xpansion)-.2 E F0(character)2.5 E 2.5 +(,u)-.4 G(sually)-2.5 E F2(!)2.5 E F0 2.5(,m)C(ust be quoted to pre)-2.5 +E -.15(ve)-.25 G(nt history e).15 E(xpansion.)-.15 E(GNU Bash-3.1-de)72 +768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(6)204 E 0 Cg +EP %%Page: 7 8 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E(follo)108 84 Q 1.553(ws, with the e)-.25 F 1.553(xception of . If)-.25 F(a)4.053 E/F1 10/Times-Bold@0 SF(\\)4.053 -E F0( pair appears, and the backslash is not itself) --.25 F 1.123(quoted, the)108 96 R F1(\\)3.623 E F0(. If)-.25 F(a)4.053 E F2(\\) +4.053 E F0( pair appears, and the backslash is not itself)-.25 F 1.123 +(quoted, the)108 124.8 R F2(\\)3.623 E F0( is treated as a line continuation \(that is, it is remo)-.25 F -.15(ve)-.15 G 3.622(df).15 G 1.122(rom the input stream and)-3.622 F -(ef)108 108 Q(fecti)-.25 E -.15(ve)-.25 G(ly ignored\).).15 E .295 -(Enclosing characters in single quotes preserv)108 124.8 R .295 +(ef)108 136.8 Q(fecti)-.25 E -.15(ve)-.25 G(ly ignored\).).15 E .295 +(Enclosing characters in single quotes preserv)108 153.6 R .295 (es the literal v)-.15 F .295(alue of each character within the quotes.) -.25 F 2.795(As)5.295 G(in-)-2.795 E -(gle quote may not occur between single quotes, e)108 136.8 Q -.15(ve) +(gle quote may not occur between single quotes, e)108 165.6 Q -.15(ve) -.25 G 2.5(nw).15 G(hen preceded by a backslash.)-2.5 E .034 -(Enclosing characters in double quotes preserv)108 153.6 R .034 +(Enclosing characters in double quotes preserv)108 182.4 R .034 (es the literal v)-.15 F .034 (alue of all characters within the quotes, with the)-.25 F -.15(ex)108 -165.6 S .827(ception of).15 F F1($)3.327 E F0(,)A F1(`)3.328 E F0(,)A F1 +194.4 S .827(ception of).15 F F2($)3.327 E F0(,)A F2(`)3.328 E F0(,)A F2 (\\)3.328 E F0 3.328(,a)C .828(nd, when history e)-3.328 F .828 -(xpansion is enabled,)-.15 F F1(!)3.328 E F0 5.828(.T)C .828 -(he characters)-5.828 F F1($)3.328 E F0(and)3.328 E F1(`)3.328 E F0 .828 +(xpansion is enabled,)-.15 F F2(!)3.328 E F0 5.828(.T)C .828 +(he characters)-5.828 F F2($)3.328 E F0(and)3.328 E F2(`)3.328 E F0 .828 (retain their special)3.328 F .075(meaning within double quotes.)108 -177.6 R .074(The backslash retains its special meaning only when follo) -5.075 F .074(wed by one of the)-.25 F(follo)108 189.6 Q .204 -(wing characters:)-.25 F F1($)2.704 E F0(,)A F1(`)2.704 E F0(,)A F1(") -3.537 E F0(,).833 E F1(\\)2.704 E F0 2.704(,o)C(r)-2.704 E F1() +206.4 R .074(The backslash retains its special meaning only when follo) +5.075 F .074(wed by one of the)-.25 F(follo)108 218.4 Q .204 +(wing characters:)-.25 F F2($)2.704 E F0(,)A F2(`)2.704 E F0(,)A F2(") +3.537 E F0(,).833 E F2(\\)2.704 E F0 2.704(,o)C(r)-2.704 E F2() 2.705 E F0 5.205(.A)C .205 (double quote may be quoted within double quotes by pre-)-2.5 F .082 -(ceding it with a backslash.)108 201.6 R .082(If enabled, history e) -5.082 F .082(xpansion will be performed unless an)-.15 F F1(!)2.581 E F0 +(ceding it with a backslash.)108 230.4 R .082(If enabled, history e) +5.082 F .082(xpansion will be performed unless an)-.15 F F2(!)2.581 E F0 .081(appearing in double)5.081 F(quotes is escaped using a backslash.) -108 213.6 Q(The backslash preceding the)5 E F1(!)2.5 E F0(is not remo)5 -E -.15(ve)-.15 G(d.).15 E(The special parameters)108 230.4 Q F1(*)2.5 E -F0(and)2.5 E F1(@)2.5 E F0(ha)2.5 E .3 -.15(ve s)-.2 H -(pecial meaning when in double quotes \(see).15 E/F2 9/Times-Bold@0 SF --.666(PA)2.5 G(RAMETERS).666 E F0(belo)2.25 E(w\).)-.25 E -.8(Wo)108 -247.2 S .007(rds of the form).8 F F1($)2.507 E F0(')A/F3 10 -/Times-Italic@0 SF(string)A F0 2.507('a)C .007(re treated specially) --2.507 F 5.007(.T)-.65 G .007(he w)-5.007 F .007(ord e)-.1 F .008 -(xpands to)-.15 F F3(string)2.508 E F0 2.508(,w)C .008 -(ith backslash-escaped char)-2.508 F(-)-.2 E .605 -(acters replaced as speci\214ed by the ANSI C standard.)108 259.2 R .604 +108 242.4 Q(The backslash preceding the)5 E F2(!)2.5 E F0(is not remo)5 +E -.15(ve)-.15 G(d.).15 E(The special parameters)108 259.2 Q F2(*)2.5 E +F0(and)2.5 E F2(@)2.5 E F0(ha)2.5 E .3 -.15(ve s)-.2 H +(pecial meaning when in double quotes \(see).15 E/F3 9/Times-Bold@0 SF +-.666(PA)2.5 G(RAMETERS).666 E F0(belo)2.25 E(w\).)-.25 E -.8(Wo)108 276 +S .007(rds of the form).8 F F2($)2.507 E F0(')A F1(string)A F0 2.507('a) +C .007(re treated specially)-2.507 F 5.007(.T)-.65 G .007(he w)-5.007 F +.007(ord e)-.1 F .008(xpands to)-.15 F F1(string)2.508 E F0 2.508(,w)C +.008(ith backslash-escaped char)-2.508 F(-)-.2 E .605 +(acters replaced as speci\214ed by the ANSI C standard.)108 288 R .604 (Backslash escape sequences, if present, are decoded)5.605 F(as follo) -108 271.2 Q(ws:)-.25 E F1(\\a)144 283.2 Q F0(alert \(bell\))28.22 E F1 -(\\b)144 295.2 Q F0(backspace)27.66 E F1(\\e)144 307.2 Q F0 -(an escape character)28.78 E F1(\\f)144 319.2 Q F0(form feed)29.89 E F1 -(\\n)144 331.2 Q F0(ne)27.66 E 2.5(wl)-.25 G(ine)-2.5 E F1(\\r)144 343.2 -Q F0(carriage return)28.78 E F1(\\t)144 355.2 Q F0(horizontal tab)29.89 -E F1(\\v)144 367.2 Q F0 -.15(ve)28.22 G(rtical tab).15 E F1(\\\\)144 -379.2 Q F0(backslash)30.44 E F1(\\')144 391.2 Q F0(single quote)29.89 E -F1(\\)144 403.2 Q F3(nnn)A F0(the eight-bit character whose v)18.22 E -(alue is the octal v)-.25 E(alue)-.25 E F3(nnn)2.5 E F0 -(\(one to three digits\))2.5 E F1(\\x)144 415.2 Q F3(HH)A F0 -(the eight-bit character whose v)13.78 E(alue is the he)-.25 E -(xadecimal v)-.15 E(alue)-.25 E F3(HH)2.5 E F0(\(one or tw)2.5 E 2.5(oh) --.1 G .3 -.15(ex d)-2.5 H(igits\)).15 E F1(\\c)144 427.2 Q F3(x)A F0 2.5 -(ac)24.34 G(ontrol-)-2.5 E F3(x)A F0(character)2.5 E(The e)108 444 Q(xp\ -anded result is single-quoted, as if the dollar sign had not been prese\ -nt.)-.15 E 2.985(Ad)108 460.8 S .485 -(ouble-quoted string preceded by a dollar sign \()-2.985 F F1($)A F0 +108 300 Q(ws:)-.25 E F2(\\a)144 312 Q F0(alert \(bell\))28.22 E F2(\\b) +144 324 Q F0(backspace)27.66 E F2(\\e)144 336 Q F0(an escape character) +28.78 E F2(\\f)144 348 Q F0(form feed)29.89 E F2(\\n)144 360 Q F0(ne) +27.66 E 2.5(wl)-.25 G(ine)-2.5 E F2(\\r)144 372 Q F0(carriage return) +28.78 E F2(\\t)144 384 Q F0(horizontal tab)29.89 E F2(\\v)144 396 Q F0 +-.15(ve)28.22 G(rtical tab).15 E F2(\\\\)144 408 Q F0(backslash)30.44 E +F2(\\')144 420 Q F0(single quote)29.89 E F2(\\)144 432 Q F1(nnn)A F0 +(the eight-bit character whose v)18.22 E(alue is the octal v)-.25 E +(alue)-.25 E F1(nnn)2.5 E F0(\(one to three digits\))2.5 E F2(\\x)144 +444 Q F1(HH)A F0(the eight-bit character whose v)13.78 E(alue is the he) +-.25 E(xadecimal v)-.15 E(alue)-.25 E F1(HH)2.5 E F0(\(one or tw)2.5 E +2.5(oh)-.1 G .3 -.15(ex d)-2.5 H(igits\)).15 E F2(\\c)144 456 Q F1(x)A +F0 2.5(ac)24.34 G(ontrol-)-2.5 E F1(x)A F0(character)2.5 E(The e)108 +472.8 Q(xpanded result is single-quoted, as if the dollar sign had not \ +been present.)-.15 E 2.985(Ad)108 489.6 S .485 +(ouble-quoted string preceded by a dollar sign \()-2.985 F F2($)A F0 2.986(\)w)C .486(ill cause the string to be translated according to the) --2.986 F .118(current locale.)108 472.8 R .118(If the current locale is) -5.118 F F1(C)2.618 E F0(or)2.618 E F1(POSIX)2.618 E F0 2.618(,t)C .117 +-2.986 F .118(current locale.)108 501.6 R .118(If the current locale is) +5.118 F F2(C)2.618 E F0(or)2.618 E F2(POSIX)2.618 E F0 2.618(,t)C .117 (he dollar sign is ignored.)-2.618 F .117 (If the string is translated and)5.117 F -(replaced, the replacement is double-quoted.)108 484.8 Q/F4 10.95 -/Times-Bold@0 SF -.81(PA)72 501.6 S(RAMETERS).81 E F0(A)108 513.6 Q F3 +(replaced, the replacement is double-quoted.)108 513.6 Q/F4 10.95 +/Times-Bold@0 SF -.81(PA)72 530.4 S(RAMETERS).81 E F0(A)108 542.4 Q F1 (par)4.592 E(ameter)-.15 E F0 .842(is an entity that stores v)4.072 F -3.342(alues. It)-.25 F .842(can be a)3.342 F F3(name)3.343 E F0 3.343 +3.342(alues. It)-.25 F .842(can be a)3.342 F F1(name)3.343 E F0 3.343 (,an).18 G(umber)-3.343 E 3.343(,o)-.4 G 3.343(ro)-3.343 G .843 -(ne of the special characters)-3.343 F .823(listed belo)108 525.6 R -3.323(wu)-.25 G(nder)-3.323 E F1 .823(Special P)3.323 F(arameters)-.1 E -F0 5.823(.A)C F3(variable)-2.21 E F0 .823(is a parameter denoted by a) -3.503 F F3(name)3.323 E F0 5.823(.A).18 G -.25(va)-2.5 G .823 -(riable has a).25 F F3(value)108 537.6 Q F0 .368(and zero or more)2.868 -F F3(attrib)2.868 E(utes)-.2 E F0 5.369(.A)C(ttrib)-5.369 E .369 -(utes are assigned using the)-.2 F F1(declar)2.869 E(e)-.18 E F0 -.2(bu) -2.869 G .369(iltin command \(see).2 F F1(declar)2.869 E(e)-.18 E F0 -(belo)108 549.6 Q 2.5(wi)-.25 G(n)-2.5 E F2(SHELL B)2.5 E(UIL)-.09 E -(TIN COMMANDS)-.828 E/F5 9/Times-Roman@0 SF(\).)A F0 2.755(Ap)108 566.4 +(ne of the special characters)-3.343 F .823(listed belo)108 554.4 R +3.323(wu)-.25 G(nder)-3.323 E F2 .823(Special P)3.323 F(arameters)-.1 E +F0 5.823(.A)C F1(variable)-2.21 E F0 .823(is a parameter denoted by a) +3.503 F F1(name)3.323 E F0 5.823(.A).18 G -.25(va)-2.5 G .823 +(riable has a).25 F F1(value)108 566.4 Q F0 .368(and zero or more)2.868 +F F1(attrib)2.868 E(utes)-.2 E F0 5.369(.A)C(ttrib)-5.369 E .369 +(utes are assigned using the)-.2 F F2(declar)2.869 E(e)-.18 E F0 -.2(bu) +2.869 G .369(iltin command \(see).2 F F2(declar)2.869 E(e)-.18 E F0 +(belo)108 578.4 Q 2.5(wi)-.25 G(n)-2.5 E F3(SHELL B)2.5 E(UIL)-.09 E +(TIN COMMANDS)-.828 E/F5 9/Times-Roman@0 SF(\).)A F0 2.755(Ap)108 595.2 S .255(arameter is set if it has been assigned a v)-2.755 F 2.754 (alue. The)-.25 F .254(null string is a v)2.754 F .254(alid v)-.25 F 2.754(alue. Once)-.25 F 2.754(av)2.754 G .254(ariable is set, it)-3.004 -F(may be unset only by using the)108 578.4 Q F1(unset)2.5 E F0 -.2(bu) -2.5 G(iltin command \(see).2 E F2(SHELL B)2.5 E(UIL)-.09 E(TIN COMMANDS) --.828 E F0(belo)2.25 E(w\).)-.25 E(A)108 595.2 Q F3(variable)2.79 E F0 -(may be assigned to by a statement of the form)2.68 E F3(name)144 612 Q -F0(=[)A F3(value)A F0(])A(If)108 628.8 Q F3(value)3.022 E F0 .232 +F(may be unset only by using the)108 607.2 Q F2(unset)2.5 E F0 -.2(bu) +2.5 G(iltin command \(see).2 E F3(SHELL B)2.5 E(UIL)-.09 E(TIN COMMANDS) +-.828 E F0(belo)2.25 E(w\).)-.25 E(A)108 624 Q F1(variable)2.79 E F0 +(may be assigned to by a statement of the form)2.68 E F1(name)144 640.8 +Q F0(=[)A F1(value)A F0(])A(If)108 657.6 Q F1(value)3.022 E F0 .232 (is not gi)2.912 F -.15(ve)-.25 G .232(n, the v).15 F .232 -(ariable is assigned the null string.)-.25 F(All)5.233 E F3(values)3.023 +(ariable is assigned the null string.)-.25 F(All)5.233 E F1(values)3.023 E F0(under)3.003 E .233(go tilde e)-.18 F .233(xpansion, parameter)-.15 -F .515(and v)108 640.8 R .515(ariable e)-.25 F .515 +F .515(and v)108 669.6 R .515(ariable e)-.25 F .515 (xpansion, command substitution, arithmetic e)-.15 F .515 (xpansion, and quote remo)-.15 F -.25(va)-.15 G 3.015(l\().25 G(see) --3.015 E F2(EXP)3.015 E(ANSION)-.666 E F0(belo)108 652.8 Q 2.698 -(w\). If)-.25 F .198(the v)2.698 F .198(ariable has its)-.25 F F1 -(integer)2.698 E F0(attrib)2.698 E .198(ute set, then)-.2 F F3(value) +-3.015 E F3(EXP)3.015 E(ANSION)-.666 E F0(belo)108 681.6 Q 2.698 +(w\). If)-.25 F .198(the v)2.698 F .198(ariable has its)-.25 F F2 +(integer)2.698 E F0(attrib)2.698 E .198(ute set, then)-.2 F F1(value) 2.988 E F0 .198(is e)2.878 F -.25(va)-.25 G .199 (luated as an arithmetic e).25 F .199(xpression e)-.15 F -.15(ve)-.25 G -(n).15 E .902(if the $\(\(...\)\) e)108 664.8 R .902 -(xpansion is not used \(see)-.15 F F1 .901(Arithmetic Expansion)3.401 F +(n).15 E .902(if the $\(\(...\)\) e)108 693.6 R .902 +(xpansion is not used \(see)-.15 F F2 .901(Arithmetic Expansion)3.401 F F0(belo)3.401 E 3.401(w\). W)-.25 F .901 -(ord splitting is not performed,)-.8 F 1.178(with the e)108 676.8 R -1.178(xception of)-.15 F F1("$@")3.678 E F0 1.178(as e)3.678 F 1.179 -(xplained belo)-.15 F 3.679(wu)-.25 G(nder)-3.679 E F1 1.179(Special P) +(ord splitting is not performed,)-.8 F 1.178(with the e)108 705.6 R +1.178(xception of)-.15 F F2("$@")3.678 E F0 1.178(as e)3.678 F 1.179 +(xplained belo)-.15 F 3.679(wu)-.25 G(nder)-3.679 E F2 1.179(Special P) 3.679 F(arameters)-.1 E F0 6.179(.P)C 1.179(athname e)-6.329 F 1.179 -(xpansion is not)-.15 F 3.649(performed. Assignment)108 688.8 R 1.149 -(statements may also appear as ar)3.649 F 1.148(guments to the)-.18 F F1 -(alias)3.648 E F0(,)A F1(declar)3.648 E(e)-.18 E F0(,)A F1(typeset)3.648 -E F0(,)A F1(export)3.648 E F0(,)A F1 -.18(re)108 700.8 S(adonly).18 E F0 -2.5(,a)C(nd)-2.5 E F1(local)2.5 E F0 -.2(bu)2.5 G(iltin commands.).2 E -.376(In the conte)108 717.6 R .376 -(xt where an assignment statement is assigning a v)-.15 F .376 -(alue to a shell v)-.25 F .377(ariable or array inde)-.25 F .377 -(x, the +=)-.15 F .257 -(operator can be used to append to or add to the v)108 729.6 R(ariable') --.25 E 2.757(sp)-.55 G(re)-2.757 E .257(vious v)-.25 F 2.757(alue. When) --.25 F .257(+= is applied to a v)2.757 F(ariable)-.25 E(GNU Bash-3.1-de) -72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(7)204 E 0 -Cg EP +(xpansion is not)-.15 F 3.649(performed. Assignment)108 717.6 R 1.149 +(statements may also appear as ar)3.649 F 1.148(guments to the)-.18 F F2 +(alias)3.648 E F0(,)A F2(declar)3.648 E(e)-.18 E F0(,)A F2(typeset)3.648 +E F0(,)A F2(export)3.648 E F0(,)A F2 -.18(re)108 729.6 S(adonly).18 E F0 +2.5(,a)C(nd)-2.5 E F2(local)2.5 E F0 -.2(bu)2.5 G(iltin commands.).2 E +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) +-124.42 E(7)204 E 0 Cg EP %%Page: 8 9 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E .372(for which the inte)108 84 R .372(ger attrib)-.15 F .372 +-.35 E .376(In the conte)108 84 R .376 +(xt where an assignment statement is assigning a v)-.15 F .376 +(alue to a shell v)-.25 F .377(ariable or array inde)-.25 F .377 +(x, the +=)-.15 F .257 +(operator can be used to append to or add to the v)108 96 R(ariable') +-.25 E 2.757(sp)-.55 G(re)-2.757 E .257(vious v)-.25 F 2.757(alue. When) +-.25 F .257(+= is applied to a v)2.757 F(ariable)-.25 E .372 +(for which the inte)108 108 R .372(ger attrib)-.15 F .372 (ute has been set,)-.2 F/F1 10/Times-Italic@0 SF(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 -.25(va)108 96 S(riable').25 E 2.889 +(xpression and added to the)-.15 F -.25(va)108 120 S(riable').25 E 2.889 (sc)-.55 G .389(urrent v)-2.889 F .389(alue, which is also e)-.25 F -.25 (va)-.25 G 2.889(luated. When).25 F .389(+= is applied to an array v) -2.889 F .388(ariable using compound)-.25 F .185(assignment \(see)108 108 +2.889 F .388(ariable using compound)-.25 F .185(assignment \(see)108 132 R/F2 10/Times-Bold@0 SF(Arrays)2.685 E F0(belo)2.685 E .185(w\), the v) -.25 F(ariable')-.25 E 2.685(sv)-.55 G .185 (alue is not unset \(as it is when using =\), and ne)-2.935 F 2.686(wv) --.25 G .186(alues are)-2.936 F .32(appended to the array be)108 120 R +-.25 G .186(alues are)-2.936 F .32(appended to the array be)108 144 R .32(ginning at one greater than the array')-.15 F 2.82(sm)-.55 G .32 (aximum inde)-2.82 F 2.82(x. When)-.15 F .32(applied to a string-)2.82 F --.25(va)108 132 S(lued v).25 E(ariable,)-.25 E F1(value)2.5 E F0(is e) +-.25(va)108 156 S(lued v).25 E(ariable,)-.25 E F1(value)2.5 E F0(is e) 2.5 E(xpanded and appended to the v)-.15 E(ariable')-.25 E 2.5(sv)-.55 G -(alue.)-2.75 E F2 -.2(Po)87 148.8 S(sitional P).2 E(arameters)-.1 E F0 -(A)108 160.8 Q F1 .705(positional par)4.455 F(ameter)-.15 E F0 .706(is \ +(alue.)-2.75 E F2 -.2(Po)87 172.8 S(sitional P).2 E(arameters)-.1 E F0 +(A)108 184.8 Q F1 .705(positional par)4.455 F(ameter)-.15 E F0 .706(is \ a parameter denoted by one or more digits, other than the single digit \ 0.)3.935 F(Posi-)5.706 E .445 -(tional parameters are assigned from the shell')108 172.8 R 2.944(sa) +(tional parameters are assigned from the shell')108 196.8 R 2.944(sa) -.55 G -.18(rg)-2.944 G .444(uments when it is in).18 F -.2(vo)-.4 G -.1 -(ke).2 G .444(d, and may be reassigned using).1 F(the)108 184.8 Q F2 +(ke).2 G .444(d, and may be reassigned using).1 F(the)108 208.8 Q F2 (set)3.333 E F0 -.2(bu)3.333 G .833(iltin command.).2 F .834(Positional\ parameters may not be assigned to with assignment statements.)5.833 F (The)5.834 E .334(positional parameters are temporarily replaced when a\ - shell function is e)108 196.8 R -.15(xe)-.15 G .333(cuted \(see).15 F + shell function is e)108 220.8 R -.15(xe)-.15 G .333(cuted \(see).15 F /F3 9/Times-Bold@0 SF(FUNCTIONS)2.833 E F0(belo)2.583 E(w\).)-.25 E 1.403(When a positional parameter consisting of more than a single digi\ -t is e)108 213.6 R 1.404(xpanded, it must be enclosed in)-.15 F -(braces \(see)108 225.6 Q F3(EXP)2.5 E(ANSION)-.666 E F0(belo)2.25 E -(w\).)-.25 E F2(Special P)87 242.4 Q(arameters)-.1 E F0 1.675 -(The shell treats se)108 254.4 R -.15(ve)-.25 G 1.675 +t is e)108 237.6 R 1.404(xpanded, it must be enclosed in)-.15 F +(braces \(see)108 249.6 Q F3(EXP)2.5 E(ANSION)-.666 E F0(belo)2.25 E +(w\).)-.25 E F2(Special P)87 266.4 Q(arameters)-.1 E F0 1.675 +(The shell treats se)108 278.4 R -.15(ve)-.25 G 1.675 (ral parameters specially).15 F 6.675(.T)-.65 G 1.674 (hese parameters may only be referenced; assignment to)-6.675 F -(them is not allo)108 266.4 Q(wed.)-.25 E F2(*)108 278.4 Q F0 .605 +(them is not allo)108 290.4 Q(wed.)-.25 E F2(*)108 302.4 Q F0 .605 (Expands to the positional parameters, starting from one.)31 F .606 (When the e)5.605 F .606(xpansion occurs within dou-)-.15 F .084 -(ble quotes, it e)144 290.4 R .084(xpands to a single w)-.15 F .084 +(ble quotes, it e)144 314.4 R .084(xpands to a single w)-.15 F .084 (ord with the v)-.1 F .084 (alue of each parameter separated by the \214rst char)-.25 F(-)-.2 E -.003(acter of the)144 302.4 R F3(IFS)2.503 E F0 .003(special v)2.253 F +.003(acter of the)144 326.4 R F3(IFS)2.503 E F0 .003(special v)2.253 F 2.503(ariable. That)-.25 F .003(is, ")2.503 F F2($*)A F0 2.503("i)C 2.503(se)-2.503 G(qui)-2.503 E -.25(va)-.25 G .003(lent to ").25 F F2 ($1)A F1(c)A F2($2)A F1(c)A F2(...)A F0 .003(", where)B F1(c)2.703 E F0 -.004(is the \214rst char)2.813 F(-)-.2 E .769(acter of the v)144 314.4 R +.004(is the \214rst char)2.813 F(-)-.2 E .769(acter of the v)144 338.4 R .769(alue of the)-.25 F F3(IFS)3.269 E F0 -.25(va)3.019 G 3.269 (riable. If).25 F F3(IFS)3.268 E F0 .768 (is unset, the parameters are separated by spaces.)3.018 F(If)5.768 E F3 -(IFS)144 326.4 Q F0(is null, the parameters are joined without interv) -2.25 E(ening separators.)-.15 E F2(@)108 338.4 Q F0 .605 +(IFS)144 350.4 Q F0(is null, the parameters are joined without interv) +2.25 E(ening separators.)-.15 E F2(@)108 362.4 Q F0 .605 (Expands to the positional parameters, starting from one.)26.7 F .606 (When the e)5.605 F .606(xpansion occurs within dou-)-.15 F .114 -(ble quotes, each parameter e)144 350.4 R .114(xpands to a separate w) +(ble quotes, each parameter e)144 374.4 R .114(xpands to a separate w) -.15 F 2.614(ord. That)-.1 F .113(is, ")2.613 F F2($@)A F0 2.613("i)C 2.613(se)-2.613 G(qui)-2.613 E -.25(va)-.25 G .113(lent to ").25 F F2 ($1)A F0 2.613("")C F2($2)-2.613 E F0 2.613(".)C(..)-2.613 E .134 -(If the double-quoted e)144 362.4 R .134(xpansion occurs within a w)-.15 +(If the double-quoted e)144 386.4 R .134(xpansion occurs within a w)-.15 F .135(ord, the e)-.1 F .135 (xpansion of the \214rst parameter is joined)-.15 F .151(with the be)144 -374.4 R .151(ginning part of the original w)-.15 F .151(ord, and the e) +398.4 R .151(ginning part of the original w)-.15 F .151(ord, and the e) -.1 F .15(xpansion of the last parameter is joined with)-.15 F .337 -(the last part of the original w)144 386.4 R 2.837(ord. When)-.1 F .338 +(the last part of the original w)144 410.4 R 2.837(ord. When)-.1 F .338 (there are no positional parameters, ")2.837 F F2($@)A F0 2.838("a)C(nd) -2.838 E F2($@)2.838 E F0 -.15(ex)2.838 G(pand).15 E -(to nothing \(i.e., the)144 398.4 Q 2.5(ya)-.15 G(re remo)-2.5 E -.15 -(ve)-.15 G(d\).).15 E F2(#)108 410.4 Q F0 +(to nothing \(i.e., the)144 422.4 Q 2.5(ya)-.15 G(re remo)-2.5 E -.15 +(ve)-.15 G(d\).).15 E F2(#)108 434.4 Q F0 (Expands to the number of positional parameters in decimal.)31 E F2(?) -108 422.4 Q F0(Expands to the status of the most recently e)31 E -.15 -(xe)-.15 G(cuted fore).15 E(ground pipeline.)-.15 E F2108 434.4 Q F0 +108 446.4 Q F0(Expands to the status of the most recently e)31 E -.15 +(xe)-.15 G(cuted fore).15 E(ground pipeline.)-.15 E F2108 458.4 Q F0 .882(Expands to the current option \215ags as speci\214ed upon in)30.3 F -.2(vo)-.4 G .881(cation, by the).2 F F2(set)3.381 E F0 -.2(bu)3.381 G .881(iltin command, or).2 F(those set by the shell itself \(such as the) -144 446.4 Q F22.5 E F0(option\).)2.5 E F2($)108 458.4 Q F0 .214 +144 470.4 Q F22.5 E F0(option\).)2.5 E F2($)108 482.4 Q F0 .214 (Expands to the process ID of the shell.)31 F .214 (In a \(\) subshell, it e)5.214 F .214 (xpands to the process ID of the current)-.15 F -(shell, not the subshell.)144 470.4 Q F2(!)108 482.4 Q F0 +(shell, not the subshell.)144 494.4 Q F2(!)108 506.4 Q F0 (Expands to the process ID of the most recently e)32.67 E -.15(xe)-.15 G -(cuted background \(asynchronous\) command.).15 E F2(0)108 494.4 Q F0 +(cuted background \(asynchronous\) command.).15 E F2(0)108 518.4 Q F0 1.692(Expands to the name of the shell or shell script.)31 F 1.691 (This is set at shell initialization.)6.692 F(If)6.691 E F2(bash)4.191 E -F0(is)4.191 E(in)144 506.4 Q -.2(vo)-.4 G -.1(ke).2 G 3.077(dw).1 G .577 +F0(is)4.191 E(in)144 530.4 Q -.2(vo)-.4 G -.1(ke).2 G 3.077(dw).1 G .577 (ith a \214le of commands,)-3.077 F F2($0)3.077 E F0 .578 (is set to the name of that \214le.)3.077 F(If)5.578 E F2(bash)3.078 E F0 .578(is started with the)3.078 F F23.078 E F0 .369 -(option, then)144 518.4 R F2($0)2.869 E F0 .369 +(option, then)144 542.4 R F2($0)2.869 E F0 .369 (is set to the \214rst ar)2.869 F .369(gument after the string to be e) -.18 F -.15(xe)-.15 G .369(cuted, if one is present.).15 F(Other)5.368 E -(-)-.2 E(wise, it is set to the \214le name used to in)144 530.4 Q -.2 +(-)-.2 E(wise, it is set to the \214le name used to in)144 554.4 Q -.2 (vo)-.4 G -.1(ke).2 G F2(bash)2.6 E F0 2.5(,a)C 2.5(sg)-2.5 G -2.15 -.25 (iv e)-2.5 H 2.5(nb).25 G 2.5(ya)-2.5 G -.18(rg)-2.5 G(ument zero.).18 E -F2(_)108 542.4 Q F0 .054 +F2(_)108 566.4 Q F0 .054 (At shell startup, set to the absolute pathname used to in)31 F -.2(vo) -.4 G .255 -.1(ke t).2 H .055(he shell or shell script being e).1 F -.15 -(xe)-.15 G(cuted).15 E .692(as passed in the en)144 554.4 R .692 +(xe)-.15 G(cuted).15 E .692(as passed in the en)144 578.4 R .692 (vironment or ar)-.4 F .691(gument list.)-.18 F(Subsequently)5.691 E 3.191(,e)-.65 G .691(xpands to the last ar)-3.341 F .691(gument to the) --.18 F(pre)144 566.4 Q .57(vious command, after e)-.25 F 3.07 +-.18 F(pre)144 590.4 Q .57(vious command, after e)-.25 F 3.07 (xpansion. Also)-.15 F .571(set to the full pathname used to in)3.071 F --.2(vo)-.4 G .771 -.1(ke e).2 H .571(ach command).1 F -.15(exe)144 578.4 +-.2(vo)-.4 G .771 -.1(ke e).2 H .571(ach command).1 F -.15(exe)144 602.4 S 1.6(cuted and placed in the en).15 F 1.6(vironment e)-.4 F 1.6 (xported to that command.)-.15 F 1.6(When checking mail, this)6.6 F (parameter holds the name of the mail \214le currently being check)144 -590.4 Q(ed.)-.1 E F2(Shell V)87 607.2 Q(ariables)-.92 E F0(The follo)108 -619.2 Q(wing v)-.25 E(ariables are set by the shell:)-.25 E F2 -.3(BA) -108 636 S(SH).3 E F0(Expands to the full \214le name used to in)9.07 E +614.4 Q(ed.)-.1 E F2(Shell V)87 631.2 Q(ariables)-.92 E F0(The follo)108 +643.2 Q(wing v)-.25 E(ariables are set by the shell:)-.25 E F2 -.3(BA) +108 660 S(SH).3 E F0(Expands to the full \214le name used to in)9.07 E -.2(vo)-.4 G .2 -.1(ke t).2 H(his instance of).1 E F2(bash)2.5 E F0(.)A -F2 -.3(BA)108 648 S(SH_ARGC).3 E F0 1.039(An array v)144 660 R 1.039 +F2 -.3(BA)108 672 S(SH_ARGC).3 E F0 1.039(An array v)144 684 R 1.039 (ariable whose v)-.25 F 1.039 (alues are the number of parameters in each frame of the current bash) --.25 F -.15(exe)144 672 S .535(cution call stack.).15 F .535(The number\ +-.25 F -.15(exe)144 696 S .535(cution call stack.).15 F .535(The number\ of parameters to the current subroutine \(shell function or script) -5.535 F -.15(exe)144 684 S .141(cuted with).15 F F2(.)2.641 E F0(or) +5.535 F -.15(exe)144 708 S .141(cuted with).15 F F2(.)2.641 E F0(or) 2.641 E F2(sour)2.641 E(ce)-.18 E F0 2.641(\)i)C 2.641(sa)-2.641 G 2.641 (tt)-2.641 G .142(he top of the stack.)-2.641 F .142 (When a subroutine is e)5.142 F -.15(xe)-.15 G .142 -(cuted, the number of).15 F(parameters passed is pushed onto)144 696 Q -F2 -.3(BA)2.5 G(SH_ARGC).3 E F0(.)A(GNU Bash-3.1-de)72 768 Q -.15(ve) --.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(8)204 E 0 Cg EP +(cuted, the number of).15 F 1.525(parameters passed is pushed onto)144 +720 R F2 -.3(BA)4.024 G(SH_ARGC).3 E F0 6.524(.T)C 1.524(he shell sets) +-6.524 F F2 -.3(BA)4.024 G(SH_ARGC).3 E F0 1.524(only when in)4.024 F +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) +-124.42 E(8)204 E 0 Cg EP %%Page: 9 10 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E/F1 10/Times-Bold@0 SF -.3(BA)108 84 S(SH_ARGV).3 E F0 1.092 -(An array v)144 96 R 1.091 +-.35 E -.15(ex)144 84 S(tended deb).15 E +(ugging mode \(see the description of the)-.2 E/F1 10/Times-Bold@0 SF +(extdeb)2.5 E(ug)-.2 E F0(option to the)2.5 E F1(shopt)2.5 E F0 -.2(bu) +2.5 G(iltin belo).2 E(w\))-.25 E F1 -.3(BA)108 96 S(SH_ARGV).3 E F0 +1.091(An array v)144 108 R 1.091 (ariable containing all of the parameters in the current bash e)-.25 F --.15(xe)-.15 G 1.091(cution call stack.).15 F(The)6.091 E .275(\214nal \ +-.15(xe)-.15 G 1.092(cution call stack.).15 F(The)6.092 E .275(\214nal \ parameter of the last subroutine call is at the top of the stack; the \ -\214rst parameter of the initial)144 108 R 1.424(call is at the bottom.) -144 120 R 1.424(When a subroutine is e)6.424 F -.15(xe)-.15 G 1.424 -(cuted, the parameters supplied are pushed onto).15 F F1 -.3(BA)144 132 -S(SH_ARGV).3 E F0(.)A F1 -.3(BA)108 144 S(SH_COMMAND).3 E F0 1.242 -(The command currently being e)144 156 R -.15(xe)-.15 G 1.243 +\214rst parameter of the initial)144 120 R 1.424(call is at the bottom.) +144 132 R 1.424(When a subroutine is e)6.424 F -.15(xe)-.15 G 1.424 +(cuted, the parameters supplied are pushed onto).15 F F1 -.3(BA)144 144 +S(SH_ARGV).3 E F0 6.091(.T)C 1.091(he shell sets)-6.091 F F1 -.3(BA) +3.591 G(SH_ARGV).3 E F0 1.091(only when in e)3.591 F 1.091(xtended deb) +-.15 F 1.09(ugging mode \(see the)-.2 F(description of the)144 156 Q F1 +(extdeb)2.5 E(ug)-.2 E F0(option to the)2.5 E F1(shopt)2.5 E F0 -.2(bu) +2.5 G(iltin belo).2 E(w\))-.25 E F1 -.3(BA)108 168 S(SH_COMMAND).3 E F0 +1.242(The command currently being e)144 180 R -.15(xe)-.15 G 1.243 (cuted or about to be e).15 F -.15(xe)-.15 G 1.243 (cuted, unless the shell is e).15 F -.15(xe)-.15 G 1.243(cuting a).15 F (command as the result of a trap, in which case it is the command e)144 -168 Q -.15(xe)-.15 G(cuting at the time of the trap.).15 E F1 -.3(BA)108 -180 S(SH_EXECUTION_STRING).3 E F0(The command ar)144 192 Q +192 Q -.15(xe)-.15 G(cuting at the time of the trap.).15 E F1 -.3(BA)108 +204 S(SH_EXECUTION_STRING).3 E F0(The command ar)144 216 Q (gument to the)-.18 E F12.5 E F0(in)2.5 E -.2(vo)-.4 G -(cation option.).2 E F1 -.3(BA)108 204 S(SH_LINENO).3 E F0 .034 -(An array v)144 216 R .034(ariable whose members are the line numbers i\ -n source \214les corresponding to each mem-)-.25 F 2.944(ber of)144 228 +(cation option.).2 E F1 -.3(BA)108 228 S(SH_LINENO).3 E F0 .034 +(An array v)144 240 R .034(ariable whose members are the line numbers i\ +n source \214les corresponding to each mem-)-.25 F 2.944(ber of)144 252 R F1(FUNCN)5.444 E(AME)-.2 E F0(.)A F1(${B)7.944 E(ASH_LINENO[)-.3 E/F2 10/Times-Italic@0 SF($i)A F1(]})A F0 2.944 (is the line number in the source \214le where)5.444 F F1(${FUNCN)144 -240 Q(AME[)-.2 E F2($ifP)A F1(]})A F2 12.109(was called.)14.609 F 12.109 +264 Q(AME[)-.2 E F2($ifP)A F1(]})A F2 12.109(was called.)14.609 F 12.109 (The corr)17.109 F 12.109(esponding sour)-.37 F 12.108 -(ce \214le name is)-.37 F F1(${B)144 252 Q(ASH_SOURCE[)-.3 E F2($i)A F1 +(ce \214le name is)-.37 F F1(${B)144 276 Q(ASH_SOURCE[)-.3 E F2($i)A F1 2.5(]}. Use)B(LINENO to obtain the curr)2.5 E(ent line number)-.18 E(.) --1 E -.3(BA)108 264 S(SH_REMA).3 E(TCH)-.95 E F0 .005(An array v)144 276 +-1 E -.3(BA)108 288 S(SH_REMA).3 E(TCH)-.95 E F0 .005(An array v)144 300 R .005(ariable whose members are assigned by the)-.25 F F1(=~)2.506 E F0 .006(binary operator to the)2.506 F F1([[)2.506 E F0 .006 -(conditional com-)2.506 F 2.507(mand. The)144 288 R .007 +(conditional com-)2.506 F 2.507(mand. The)144 312 R .007 (element with inde)2.507 F 2.507(x0i)-.15 G 2.507(st)-2.507 G .007 (he portion of the string matching the entire re)-2.507 F .006(gular e) --.15 F(xpression.)-.15 E .997(The element with inde)144 300 R(x)-.15 E +-.15 F(xpression.)-.15 E .997(The element with inde)144 324 R(x)-.15 E F2(n)3.497 E F0 .997(is the portion of the string matching the)3.497 F F2(n)3.498 E F0 .998(th parenthesized sube)B(xpres-)-.15 E 2.5 -(sion. This)144 312 R -.25(va)2.5 G(riable is read-only).25 E(.)-.65 E -F1 -.3(BA)108 324 S(SH_SOURCE).3 E F0 .89(An array v)144 336 R .889(ari\ +(sion. This)144 336 R -.25(va)2.5 G(riable is read-only).25 E(.)-.65 E +F1 -.3(BA)108 348 S(SH_SOURCE).3 E F0 .89(An array v)144 360 R .889(ari\ able whose members are the source \214lenames corresponding to the elem\ -ents in the)-.25 F F1(FUNCN)144 348 Q(AME)-.2 E F0(array v)2.5 E -(ariable.)-.25 E F1 -.3(BA)108 360 S(SH_SUBSHELL).3 E F0 .401 -(Incremented by one each time a subshell or subshell en)144 372 R .401 +ents in the)-.25 F F1(FUNCN)144 372 Q(AME)-.2 E F0(array v)2.5 E +(ariable.)-.25 E F1 -.3(BA)108 384 S(SH_SUBSHELL).3 E F0 .401 +(Incremented by one each time a subshell or subshell en)144 396 R .401 (vironment is spa)-.4 F 2.902(wned. The)-.15 F .402(initial v)2.902 F -.402(alue is)-.25 F(0.)144 384 Q F1 -.3(BA)108 396 S(SH_VERSINFO).3 E F0 -2.645(Ar)144 408 S .145(eadonly array v)-2.645 F .144 +.402(alue is)-.25 F(0.)144 408 Q F1 -.3(BA)108 420 S(SH_VERSINFO).3 E F0 +2.645(Ar)144 432 S .145(eadonly array v)-2.645 F .144 (ariable whose members hold v)-.25 F .144 (ersion information for this instance of)-.15 F F1(bash)2.644 E F0 5.144 -(.T)C(he)-5.144 E -.25(va)144 420 S +(.T)C(he)-5.144 E -.25(va)144 444 S (lues assigned to the array members are as follo).25 E(ws:)-.25 E F1 -.3 -(BA)144 438 S(SH_VERSINFO[).3 E F0(0)A F1(])A F0(The major v)24.74 E +(BA)144 462 S(SH_VERSINFO[).3 E F0(0)A F1(])A F0(The major v)24.74 E (ersion number \(the)-.15 E F2 -.37(re)2.5 G(lease).37 E F0(\).)A F1 -.3 -(BA)144 450 S(SH_VERSINFO[).3 E F0(1)A F1(])A F0(The minor v)24.74 E +(BA)144 474 S(SH_VERSINFO[).3 E F0(1)A F1(])A F0(The minor v)24.74 E (ersion number \(the)-.15 E F2(ver)2.5 E(sion)-.1 E F0(\).)A F1 -.3(BA) -144 462 S(SH_VERSINFO[).3 E F0(2)A F1(])A F0(The patch le)24.74 E -.15 -(ve)-.25 G(l.).15 E F1 -.3(BA)144 474 S(SH_VERSINFO[).3 E F0(3)A F1(])A -F0(The b)24.74 E(uild v)-.2 E(ersion.)-.15 E F1 -.3(BA)144 486 S +144 486 S(SH_VERSINFO[).3 E F0(2)A F1(])A F0(The patch le)24.74 E -.15 +(ve)-.25 G(l.).15 E F1 -.3(BA)144 498 S(SH_VERSINFO[).3 E F0(3)A F1(])A +F0(The b)24.74 E(uild v)-.2 E(ersion.)-.15 E F1 -.3(BA)144 510 S (SH_VERSINFO[).3 E F0(4)A F1(])A F0(The release status \(e.g.,)24.74 E -F2(beta1)2.5 E F0(\).)A F1 -.3(BA)144 498 S(SH_VERSINFO[).3 E F0(5)A F1 +F2(beta1)2.5 E F0(\).)A F1 -.3(BA)144 522 S(SH_VERSINFO[).3 E F0(5)A F1 (])A F0(The v)24.74 E(alue of)-.25 E F1(MA)2.5 E(CHTYPE)-.55 E F0(.)A F1 --.3(BA)108 514.8 S(SH_VERSION).3 E F0 -(Expands to a string describing the v)144 526.8 Q +-.3(BA)108 538.8 S(SH_VERSION).3 E F0 +(Expands to a string describing the v)144 550.8 Q (ersion of this instance of)-.15 E F1(bash)2.5 E F0(.)A F1(COMP_CW)108 -543.6 Q(ORD)-.1 E F0 .396(An inde)144 555.6 R 2.896(xi)-.15 G(nto)-2.896 +567.6 Q(ORD)-.1 E F0 .396(An inde)144 579.6 R 2.896(xi)-.15 G(nto)-2.896 E F1(${COMP_W)2.896 E(ORDS})-.1 E F0 .396(of the w)2.896 F .396 (ord containing the current cursor position.)-.1 F .397(This v)5.397 F -(ari-)-.25 E 1.181(able is a)144 567.6 R -.25(va)-.2 G 1.181 +(ari-)-.25 E 1.181(able is a)144 591.6 R -.25(va)-.2 G 1.181 (ilable only in shell functions in).25 F -.2(vo)-.4 G -.1(ke).2 G 3.681 (db).1 G 3.681(yt)-3.681 G 1.18(he programmable completion f)-3.681 F -1.18(acilities \(see)-.1 F F1(Pr)144 579.6 Q(ogrammable Completion)-.18 -E F0(belo)2.5 E(w\).)-.25 E F1(COMP_LINE)108 596.4 Q F0 1.207 -(The current command line.)144 608.4 R 1.208(This v)6.208 F 1.208 +1.18(acilities \(see)-.1 F F1(Pr)144 603.6 Q(ogrammable Completion)-.18 +E F0(belo)2.5 E(w\).)-.25 E F1(COMP_LINE)108 620.4 Q F0 1.207 +(The current command line.)144 632.4 R 1.208(This v)6.208 F 1.208 (ariable is a)-.25 F -.25(va)-.2 G 1.208 (ilable only in shell functions and e).25 F 1.208(xternal com-)-.15 F -2.849(mands in)144 620.4 R -.2(vo)-.4 G -.1(ke).2 G 5.349(db).1 G 5.349 +2.849(mands in)144 644.4 R -.2(vo)-.4 G -.1(ke).2 G 5.349(db).1 G 5.349 (yt)-5.349 G 2.849(he programmable completion f)-5.349 F 2.849 (acilities \(see)-.1 F F1(Pr)5.349 E 2.848(ogrammable Completion)-.18 F -F0(belo)144 632.4 Q(w\).)-.25 E F1(COMP_POINT)108 649.2 Q F0 .666 -(The inde)144 661.2 R 3.166(xo)-.15 G 3.166(ft)-3.166 G .666 +F0(belo)144 656.4 Q(w\).)-.25 E F1(COMP_POINT)108 673.2 Q F0 .666 +(The inde)144 685.2 R 3.166(xo)-.15 G 3.166(ft)-3.166 G .666 (he current cursor position relati)-3.166 F .966 -.15(ve t)-.25 H 3.166 (ot).15 G .666(he be)-3.166 F .666(ginning of the current command.)-.15 F .667(If the)5.667 F .535 (current cursor position is at the end of the current command, the v)144 -673.2 R .534(alue of this v)-.25 F .534(ariable is equal to)-.25 F F1 -(${#COMP_LINE})144 685.2 Q F0 7.005(.T)C 2.005(his v)-7.005 F 2.005 +697.2 R .534(alue of this v)-.25 F .534(ariable is equal to)-.25 F F1 +(${#COMP_LINE})144 709.2 Q F0 7.005(.T)C 2.005(his v)-7.005 F 2.005 (ariable is a)-.25 F -.25(va)-.2 G 2.006 (ilable only in shell functions and e).25 F 2.006(xternal commands)-.15 -F(in)144 697.2 Q -.2(vo)-.4 G -.1(ke).2 G 2.5(db).1 G 2.5(yt)-2.5 G +F(in)144 721.2 Q -.2(vo)-.4 G -.1(ke).2 G 2.5(db).1 G 2.5(yt)-2.5 G (he programmable completion f)-2.5 E(acilities \(see)-.1 E F1(Pr)2.5 E (ogrammable Completion)-.18 E F0(belo)2.5 E(w\).)-.25 E(GNU Bash-3.1-de) -72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(9)204 E 0 +72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(9)204 E 0 Cg EP %%Page: 10 11 %%BeginPageSetup @@ -1410,7 +1423,7 @@ F1(cd)2.5 E F0(command.)2.5 E F1(OPT)108 681.6 Q(ARG)-.9 E F0 1.627 (gument processed by the)-.18 F F1(getopts)4.127 E F0 -.2(bu)4.127 G 1.626(iltin command \(see).2 F F2(SHELL)4.126 E -.09(BU)144 705.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 124.42(l2).15 G(005 Feb 11)-124.42 E(10)199 E 0 Cg +768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(10)199 E 0 Cg EP %%Page: 11 12 %%BeginPageSetup @@ -1506,7 +1519,7 @@ en printing selection lists.).2 F (in)144 705.6 Q -.2(vo)-.4 G -.1(ke).2 G 2.5(db).1 G 2.5(yt)-2.5 G (he programmable completion f)-2.5 E(acility \(see)-.1 E F1(Pr)2.5 E (ogrammable Completion)-.18 E F0(belo)2.5 E(w\).)-.25 E(GNU Bash-3.1-de) -72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(11)199 E 0 +72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(11)199 E 0 Cg EP %%Page: 12 13 %%BeginPageSetup @@ -1626,7 +1639,7 @@ R F1(history)3.173 E F0 -.2(bu)3.172 G 3.172(iltin. If).2 F .672(this v) (adds the contents of the ne)3.215 F 3.215<778c>-.25 G .715(le to the e) -3.215 F .715(xisting list.)-.15 F(If)5.716 E F3(HOSTFILE)3.216 E F0 .716(is set, b)2.966 F .716(ut has no v)-.2 F(alue,)-.25 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(12)199 E 0 Cg EP %%Page: 13 14 %%BeginPageSetup @@ -1734,7 +1747,7 @@ F F3 .359(SHELL B)144 636 R(UIL)-.09 E .359(TIN COMMANDS)-.828 F 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 720 Q F0(.)A(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G -(005 Feb 11)-124.42 E(13)199 E 0 Cg EP +(005 Feb 19)-124.42 E(13)199 E 0 Cg EP %%Page: 14 15 %%BeginPageSetup BP @@ -1851,7 +1864,7 @@ F F2(substring)3.125 E F0 3.125(,t).22 G .625 .833(job identi\214er \(see)5.833 F F4 .834(JOB CONTR)3.334 F(OL)-.27 E F0(belo)3.084 E 3.334(w\). If)-.25 F .834(set to an)3.334 F 3.334(yo) -.15 G .834(ther v)-3.334 F .834(alue, the supplied string)-.25 F -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(14)199 E 0 Cg EP %%Page: 15 16 %%BeginPageSetup @@ -1995,7 +2008,7 @@ E .471(The order of e)108 703.2 R .471(xpansions is: brace e)-.15 F .471 .47(ariable and arithmetic e)-3.221 F(xpansion)-.15 E (and command substitution \(done in a left-to-right f)108 715.2 Q (ashion\), w)-.1 E(ord splitting, and pathname e)-.1 E(xpansion.)-.15 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(15)199 E 0 Cg EP %%Page: 16 17 %%BeginPageSetup @@ -2128,7 +2141,7 @@ ith the corresponding element from the directory stack, as it w)108 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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(16)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(16)199 E 0 Cg EP %%Page: 17 18 %%BeginPageSetup BP @@ -2260,7 +2273,7 @@ F0 .111(is tak)2.61 F .111(en relati)-.1 F .411 -.15(ve t)-.25 H 2.611 (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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(17)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(17)199 E 0 Cg EP %%Page: 18 19 %%BeginPageSetup BP @@ -2379,7 +2392,7 @@ F1(`)A(Bash)108 715.2 Q F0 .019(performs the e)2.519 F .019 (dard output of the command, with an)108 727.2 R 3.268(yt)-.15 G .768 (railing ne)-3.268 F .768(wlines deleted.)-.25 F .768(Embedded ne)5.768 F .768(wlines are not deleted, b)-.25 F(ut)-.2 E(GNU Bash-3.1-de)72 768 -Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(18)199 E 0 Cg EP +Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(18)199 E 0 Cg EP %%Page: 19 20 %%BeginPageSetup BP @@ -2507,7 +2520,7 @@ F .765(ord is left unchanged.)-.1 F .765(If the)5.765 F F1(nullglob) 2.065(is printed and the command is not e)108 727.2 R -.15(xe)-.15 G 4.565(cuted. If).15 F 2.065(the shell option)4.565 F F1(nocaseglob)4.565 E F0 2.066(is enabled, the match is)4.566 F(GNU Bash-3.1-de)72 768 Q --.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(19)199 E 0 Cg EP +-.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(19)199 E 0 Cg EP %%Page: 20 21 %%BeginPageSetup BP @@ -2626,7 +2639,7 @@ F0(.)A(Composite patterns may be formed using one or more of the follo) 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 124.42(l2) -.15 G(005 Feb 11)-124.42 E(20)199 E 0 Cg EP +.15 G(005 Feb 19)-124.42 E(20)199 E 0 Cg EP %%Page: 21 22 %%BeginPageSetup BP @@ -2717,7 +2730,7 @@ hould be used with care, as the)108 626.4 R 3.447(ym)-.15 G .947 (is not speci\214ed.)2.74 E (The general format for redirecting input is:)108 696 Q([)144 712.8 Q F2 (n)A F0(])A F1(<)A F2(wor)A(d)-.37 E F0(GNU Bash-3.1-de)72 768 Q -.15 -(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(21)199 E 0 Cg EP +(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(21)199 E 0 Cg EP %%Page: 22 23 %%BeginPageSetup BP @@ -2807,7 +2820,7 @@ F0 .774(are quoted, the)4.044 F F2(delimiter)3.624 E F0 .774 (<<<)144 679.2 Q F2(wor)A(d)-.37 E F0(The)108 696 Q F2(wor)2.5 E(d)-.37 E F0(is e)2.5 E (xpanded and supplied to the command on its standard input.)-.15 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(22)199 E 0 Cg EP %%Page: 23 24 %%BeginPageSetup @@ -2922,7 +2935,7 @@ E .436 (another command does not tak)108 727.2 R 3.662(ee)-.1 G -.25(ff)-3.662 G 1.162(ect until the ne).25 F 1.162(xt line of input is read.)-.15 F 1.162(The commands follo)6.162 F 1.162(wing the)-.25 F(GNU Bash-3.1-de) -72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(23)199 E 0 +72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(23)199 E 0 Cg EP %%Page: 24 25 %%BeginPageSetup @@ -3046,7 +3059,7 @@ F .206(gers with no)-.15 F .429(check for o)108 537.6 R -.15(ve)-.15 G 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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(24)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(24)199 E 0 Cg EP %%Page: 25 26 %%BeginPageSetup BP @@ -3151,7 +3164,7 @@ F2(\214le)2.5 E F0 -.35(Tr)10.02 G(ue if).35 E F2(\214le)2.5 E F0 -.15 (ex)2.5 G(ists and its set-user).15 E(-id bit is set.)-.2 E F1108 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 124.42(l2).15 G(005 Feb 11)-124.42 E(25)199 E 0 Cg EP +(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(25)199 E 0 Cg EP %%Page: 26 27 %%BeginPageSetup BP @@ -3252,7 +3265,7 @@ R(an)3.176 E 3.176(yo)-.15 G 3.176(ft)-3.176 G .677 .149(ut do not af)-.2 F .149(fect the current shell en)-.25 F 2.649 (vironment. A)-.4 F(redirection error causes the command to e)108 729.6 Q(xit with a non-zero status.)-.15 E(GNU Bash-3.1-de)72 768 Q -.15(ve) --.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(26)199 E 0 Cg EP +-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(26)199 E 0 Cg EP %%Page: 27 28 %%BeginPageSetup BP @@ -3364,7 +3377,7 @@ F4($PPID)2.5 E F0 .426(When a simple command other than a b)108 686.4 R (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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(27)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(27)199 E 0 Cg EP %%Page: 28 29 %%BeginPageSetup BP @@ -3481,7 +3494,7 @@ F0 .202(itself returns the e)2.702 F .202 (cuted, unless a syntax error occurs, in which case).15 F(it e)108 705.6 Q(xits with a non-zero v)-.15 E 2.5(alue. See)-.25 F(also the)2.5 E F1 (exit)2.5 E F0 -.2(bu)2.5 G(iltin command belo).2 E -.65(w.)-.25 G -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(28)199 E 0 Cg EP %%Page: 29 30 %%BeginPageSetup @@ -3619,7 +3632,7 @@ E F0 .277(refers to a stopped)2.777 F F2(ce)2.777 E F0(job)2.777 E 5.277 724.8 R F2(bash)2.88 E F0 .38(reports an error)2.88 F 5.38(.U)-.55 G (sing)-5.38 E F2(%?ce)2.88 E F0 2.88(,o)C 2.88(nt)-2.88 G .38 (he other hand, refers to an)-2.88 F 2.88(yj)-.15 G(ob)-2.88 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(29)199 E 0 Cg EP %%Page: 30 31 %%BeginPageSetup @@ -3724,7 +3737,7 @@ uld be used to embed a terminal)-.15 F(control sequence into the prompt) (end a sequence of non-printing characters)29.89 E .119 (The command number and the history number are usually dif)108 720 R .12 (ferent: the history number of a command is its)-.25 F(GNU Bash-3.1-de) -72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(30)199 E 0 +72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(30)199 E 0 Cg EP %%Page: 31 32 %%BeginPageSetup @@ -3855,7 +3868,7 @@ F0(,).72 E F4(SP)2.5 E -.3(AC)-.9 G(E).3 E F0 2.5(,a).73 G(nd)-2.5 E F4 E F4(macr)4.042 E(o)-.45 E F0(,)A F4 -.1(ke)4.042 G(yname)-.2 E F0 1.542 (is the name of a k)4.222 F 1.841 -.15(ey s)-.1 H 1.541(pelled out in) .15 F 2.5(English. F)108 717.6 R(or e)-.15 E(xample:)-.15 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(31)199 E 0 Cg EP %%Page: 32 33 %%BeginPageSetup @@ -3945,7 +3958,7 @@ 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 124.42(l2).15 G -(005 Feb 11)-124.42 E(32)199 E 0 Cg EP +(005 Feb 19)-124.42 E(32)199 E 0 Cg EP %%Page: 33 34 %%BeginPageSetup BP @@ -4044,7 +4057,7 @@ E(ault k)-.1 E -.15(ey)-.1 G(map.).15 E F1(mark\255dir)108 672 Q 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 124.42(l2).15 G -(005 Feb 11)-124.42 E(33)199 E 0 Cg EP +(005 Feb 19)-124.42 E(33)199 E 0 Cg EP %%Page: 34 35 %%BeginPageSetup BP @@ -4143,7 +4156,7 @@ Q F1(application)3.003 E F0 .503 (ey s)-.1 H .397(equence that quotes the).15 F(current or pre)180 684 Q (vious w)-.25 E(ord in Bash:)-.1 E F1($if)180 708 Q F0(Bash)2.5 E 2.5 (#Q)180 720 S(uote the current or pre)-2.5 E(vious w)-.25 E(ord)-.1 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(34)199 E 0 Cg EP %%Page: 35 36 %%BeginPageSetup @@ -4235,7 +4248,7 @@ Q .822 -.15(ve f)-.15 H(orw).15 E .522(ard to the end of the ne)-.1 F (ack to the start of the current or pre).15 F 1.41(vious w)-.25 F 3.91 (ord. W)-.1 F 1.41(ords are composed of alphanumeric)-.8 F (characters \(letters and digits\).)144 696 Q(GNU Bash-3.1-de)72 768 Q --.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(35)199 E 0 Cg EP +-.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(35)199 E 0 Cg EP %%Page: 36 37 %%BeginPageSetup BP @@ -4332,7 +4345,7 @@ E(g)-.1 E F0(mo)3.236 E -.15(ve)-.15 G .728 (See)5.939 E F2(HIST)3.439 E(OR)-.162 E 3.189(YE)-.315 G(XP)-3.189 E (ANSION)-.666 E F0(belo)3.189 E 3.439(wf)-.25 G .939(or a descrip-) -3.439 F(tion of history e)144 724.8 Q(xpansion.)-.15 E(GNU Bash-3.1-de) -72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(36)199 E 0 +72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(36)199 E 0 Cg EP %%Page: 37 38 %%BeginPageSetup @@ -4436,7 +4449,7 @@ F(ferently)-.25 E 6.894(.E)-.65 G 1.894(ach call to)-6.894 F F4 -.37(re) (mode. In)144 724.8 R -.15(ove)3.968 G 1.468 (rwrite mode, characters bound to).15 F F1(self\255insert)3.969 E F0 1.469(replace the te)3.969 F 1.469(xt at point rather than)-.15 F -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(37)199 E 0 Cg EP %%Page: 38 39 %%BeginPageSetup @@ -4522,7 +4535,7 @@ F0(or)2.5 E F1(yank\255pop)2.5 E F0(.)A F1(Numeric Ar)87 549.6 Q .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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(38)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(38)199 E 0 Cg EP %%Page: 39 40 %%BeginPageSetup BP @@ -4615,7 +4628,7 @@ 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 124.42(l2) -.15 G(005 Feb 11)-124.42 E(39)199 E 0 Cg EP +.15 G(005 Feb 19)-124.42 E(39)199 E 0 Cg EP %%Page: 40 41 %%BeginPageSetup BP @@ -4714,7 +4727,7 @@ F .872(the line is redra)144 712.8 R 3.372(wn. If)-.15 F 3.372(an)3.372 G .872(umeric ar)-3.372 F .872 (gument is supplied, an asterisk is appended before pathname)-.18 F -.15 (ex)144 724.8 S(pansion.).15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G -124.42(l2).15 G(005 Feb 11)-124.42 E(40)199 E 0 Cg EP +124.42(l2).15 G(005 Feb 19)-124.42 E(40)199 E 0 Cg EP %%Page: 41 42 %%BeginPageSetup BP @@ -4837,7 +4850,7 @@ F12.581 E F0 .081(option is in)2.581 F -.2(vo)-.4 G -.1(ke).2 G .377(After all of the possible completions are generated, an)108 720 R 2.877<798c>-.15 G .377(lter speci\214ed with the)-2.877 F F12.876 E F0 .376(option is applied to the)2.876 F(GNU Bash-3.1-de)72 768 Q -.15 -(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(41)199 E 0 Cg EP +(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(41)199 E 0 Cg EP %%Page: 42 43 %%BeginPageSetup BP @@ -4983,7 +4996,7 @@ H .374(he command with embedded ne).15 F .373 (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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(42)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(42)199 E 0 Cg EP %%Page: 43 44 %%BeginPageSetup BP @@ -5102,7 +5115,7 @@ F2 2.5(0\()108 667.2 S(zer)-2.5 E(o\))-.18 E F0(The zeroth w)144 679.2 Q F1(n)108.36 691.2 Q F0(The)30.64 E F1(n)2.5 E F0(th w)A(ord.)-.1 E F2(^) 108 703.2 Q F0(The \214rst ar)32.67 E 2.5(gument. That)-.18 F(is, w)2.5 E(ord 1.)-.1 E F2($)108 715.2 Q F0(The last ar)31 E(gument.)-.18 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(43)199 E 0 Cg EP %%Page: 44 45 %%BeginPageSetup @@ -5229,7 +5242,7 @@ F 1.313(plied, the name and v)144 730.8 R 1.314 (alue of the alias is printed.)-.25 F F1(Alias)6.314 E F0 1.314 (returns true unless a)3.814 F F2(name)3.814 E F0 1.314(is gi)3.814 F -.15(ve)-.25 G 3.814(nf).15 G(or)-3.814 E(GNU Bash-3.1-de)72 768 Q -.15 -(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(44)199 E 0 Cg EP +(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(44)199 E 0 Cg EP %%Page: 45 46 %%BeginPageSetup BP @@ -5343,7 +5356,7 @@ R F2(dir)2.71 E F0 5.21(.T)C .21(he v)-5.21 F(ariable)-.25 E/F4 9 (de\214nes the search path for the directory containing)144 724.8 R F2 (dir)3.276 E F0 5.776(.A).73 G(lternati)-5.776 E 1.076 -.15(ve d)-.25 H .776(irectory names in).15 F F4(CDP)3.276 E -.855(AT)-.666 G(H).855 E F0 -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(45)199 E 0 Cg EP %%Page: 46 47 %%BeginPageSetup @@ -5475,7 +5488,7 @@ F23.223 E F0 .722 (options\) should be quoted to protect them from e)3.223 F(xpan-)-.15 E (sion before the)144 715.2 Q F2(complete)2.5 E F0 -.2(bu)2.5 G (iltin is in).2 E -.2(vo)-.4 G -.1(ke).2 G(d.).1 E(GNU Bash-3.1-de)72 -768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(46)199 E 0 Cg +768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(46)199 E 0 Cg EP %%Page: 47 48 %%BeginPageSetup @@ -5547,7 +5560,7 @@ F0(option to the)2.5 E F1(set)2.5 E F0 -.2(bu)2.5 G(iltin.).2 E F1 (May also be speci\214ed as)5 E F12.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 F12.5 E F0(.)A(GNU Bash-3.1-de)72 -768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(47)199 E 0 Cg +768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(47)199 E 0 Cg EP %%Page: 48 49 %%BeginPageSetup @@ -5670,7 +5683,7 @@ E(UG)-.1 E F0(and)2.929 E F1(RETURN)2.929 E F0 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 124.42(l2).15 G -(005 Feb 11)-124.42 E(48)199 E 0 Cg EP +(005 Feb 19)-124.42 E(48)199 E 0 Cg EP %%Page: 49 50 %%BeginPageSetup BP @@ -5782,7 +5795,7 @@ F3(\214lename)2.5 E F0 2.5(][)C F3(name)-2.5 E F0(...])2.5 E .277 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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(49)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(49)199 E 0 Cg EP %%Page: 50 51 %%BeginPageSetup BP @@ -5925,7 +5938,7 @@ F0 -.25(va)2.881 G .631(riable is used, and the v).25 F .631(alue of) (ariable is set,)-.25 F F2(vi)5.116 E F0 .95(is used.)5.116 F .951 (When editing is complete, the edited commands are echoed and)5.95 F -.15(exe)144 708 S(cuted.).15 E(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G -124.42(l2).15 G(005 Feb 11)-124.42 E(50)199 E 0 Cg EP +124.42(l2).15 G(005 Feb 19)-124.42 E(50)199 E 0 Cg EP %%Page: 51 52 %%BeginPageSetup BP @@ -6053,7 +6066,7 @@ F32.952 E F0 .452(option causes the shell to for)2.952 F .453 (If the)144 722.4 R F34.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 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(51)199 E 0 Cg EP %%Page: 52 53 %%BeginPageSetup @@ -6165,7 +6178,7 @@ E F1(jobspec)4.24 E F0(is supplied.)2.81 E 2.067(If the)144 724.8 R F2 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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(52)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(52)199 E 0 Cg EP %%Page: 53 54 %%BeginPageSetup BP @@ -6292,7 +6305,7 @@ F0 .033(than are supplied, the e)2.534 F .033 .15 G 2.533(faz)-2.533 G .033(ero v)-2.533 F .033(alue or null string,) -.25 F(as appropriate, had been supplied.)144 693.6 Q(The return v)5 E (alue is zero on success, non-zero on f)-.25 E(ailure.)-.1 E -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(53)199 E 0 Cg EP %%Page: 54 55 %%BeginPageSetup @@ -6411,7 +6424,7 @@ F4(.)A .335(If no)144 727.2 R F5(names)3.095 E F4(ar)2.895 E 2.835(es) (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 124.42 -(l2).15 G(005 Feb 11)-124.42 E(54)199 E 0 Cg EP +(l2).15 G(005 Feb 19)-124.42 E(54)199 E 0 Cg EP %%Page: 55 56 %%BeginPageSetup BP @@ -6525,7 +6538,7 @@ F1(or)3.196 E F2(until)3.196 E F1(keywor)3.196 E .696 -.18 E F2144 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 F22.5 E F1(.)A F0 -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(55)199 E 0 Cg EP %%Page: 56 57 %%BeginPageSetup @@ -6600,7 +6613,7 @@ F F13.185 E F2 .684(option is supplied at startup, the ef)3.185 F (fective)-.18 E .752(user id is not r)184 726 R 3.252(eset. T)-.18 F .752(urning this option of)-.9 F 3.252(fc)-.18 G .752(auses the ef) -3.252 F .753(fective user and gr)-.18 F(oup)-.18 E F0(GNU Bash-3.1-de) -72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11)-124.42 E(56)199 E 0 +72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(56)199 E 0 Cg EP %%Page: 57 58 %%BeginPageSetup @@ -6717,7 +6730,7 @@ F1(Disable \(unset\) each)23.83 E F3(optname)2.5 E F1(.)A F2144 (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 124.42(l2).15 G(005 Feb 11)-124.42 E(57)199 E 0 Cg EP +-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(57)199 E 0 Cg EP %%Page: 58 59 %%BeginPageSetup BP @@ -6796,591 +6809,610 @@ F2 1.106(trap r)3.606 F 1.106(eturns a value of 2, and the)-.18 F .87 (outine \(a shell function or a shell script exe-)-.18 F(cuted by the) 220 644.4 Q F1(.)2.5 E F2(or)2.5 E F1(source)2.5 E F2 (builtins\), a call to)2.5 E F1(return)2.5 E F2(is simulated.)2.5 E F1 -(extglob)144 656.4 Q F2 .432 -(If set, the extended pattern matching featur)6.11 F .432 -(es described above under)-.18 F F1(Pathname)2.932 E(Expansion)184 668.4 -Q F2(ar)2.5 E 2.5(ee)-.18 G(nabled.)-2.5 E F1(extquote)144 680.4 Q F2 -.143(If set,)184 692.4 R F1($)2.643 E F2(')A F3(string)A F2 2.643('a)C -(nd)-2.643 E F1($)2.643 E F2(")A F3(string)A F2 2.643("q)C .143 -(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 124.42(l2).15 G(005 Feb 11)-124.42 E(58)199 E 0 Cg EP +26(4. BASH_ARGC)184 656.4 R F2(and)5.149 E F1(BASH_ARGV)5.149 E F2(ar) +5.149 E 5.149(eu)-.18 G 2.649(pdated as described in their)-5.149 F +(descriptions above.)220 668.4 Q F1(5.)184 680.4 Q F2 .163 +(Function tracing is enabled:)28.5 F .164 +(command substitution, shell functions, and)5.164 F 1.112 +(subshells invoked with)220 692.4 R F1(\()3.612 E F3(command)3.612 E F1 +(\))3.612 E F2 1.112(inherit the)3.612 F F1(DEBUG)3.612 E F2(and)3.612 E +F1(RETURN)3.612 E F2(traps.)220 704.4 Q F1(6.)184 716.4 Q F2(Err)28.5 E +2.171(or tracing is enabled:)-.18 F 2.171 +(command substitution, shell functions, and)7.171 F +(subshells invoked with)220 728.4 Q F1(\()2.5 E F3(command)2.5 E F1(\)) +2.5 E F2(inherit the)2.5 E F1(ERROR)2.5 E F2(trap.)2.5 E F0 +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) +-124.42 E(58)199 E 0 Cg EP %%Page: 59 60 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E/F1 10/Palatino-Bold@0 SF(failglob)144 84 Q/F2 10/Palatino-Roman@0 -SF .507(If set, patterns which fail to match \214lenames during pathnam\ -e expansion r)184 96 R(esult)-.18 E(in an expansion err)184 108 Q(or) --.18 E(.)-.74 E F1(force_\214gnore)144 120 Q F2 1.118(If set, the suf) -184 132 R 1.118(\214xes speci\214ed by the)-.18 F F1(FIGNORE)3.618 E F2 -1.119(shell variable cause wor)3.619 F 1.119(ds to be)-.18 F(ignor)184 -144 Q 1.291(ed when performing wor)-.18 F 3.791(dc)-.18 G 1.291 +-.35 E/F1 10/Palatino-Bold@0 SF(extglob)144 84 Q/F2 10/Palatino-Roman@0 +SF .432(If set, the extended pattern matching featur)6.11 F .432 +(es described above under)-.18 F F1(Pathname)2.932 E(Expansion)184 96 Q +F2(ar)2.5 E 2.5(ee)-.18 G(nabled.)-2.5 E F1(extquote)144 108 Q F2 .143 +(If set,)184 120 R F1($)2.643 E F2(')A/F3 10/Palatino-Italic@0 SF +(string)A F2 2.643('a)C(nd)-2.643 E F1($)2.643 E F2(")A F3(string)A F2 +2.643("q)C .143(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 +132 Q(This option is enabled by default.)5 E F1(failglob)144 144 Q F2 +.507(If set, patterns which fail to match \214lenames during pathname e\ +xpansion r)184 156 R(esult)-.18 E(in an expansion err)184 168 Q(or)-.18 +E(.)-.74 E F1(force_\214gnore)144 180 Q F2 1.118(If set, the suf)184 192 +R 1.118(\214xes speci\214ed by the)-.18 F F1(FIGNORE)3.618 E F2 1.119 +(shell variable cause wor)3.619 F 1.119(ds to be)-.18 F(ignor)184 204 Q +1.291(ed when performing wor)-.18 F 3.791(dc)-.18 G 1.291 (ompletion even if the ignor)-3.791 F 1.291(ed wor)-.18 F 1.291(ds ar) --.18 F 3.79(et)-.18 G(he)-3.79 E 1.7(only possible completions.)184 156 -R(See)6.7 E/F3 9/Palatino-Bold@0 SF 1.7(SHELL V)4.2 F(ARIABLES)-1.161 E -F2 1.701(above for a description of)3.95 F F1(FIGNORE)184 168 Q F2 5(.T) -C(his option is enabled by default.)-5 E F1(gnu_errfmt)144 180 Q F2 .843 -(If set, shell err)184 192 R .843(or messages ar)-.18 F 3.342(ew)-.18 G +-.18 F 3.79(et)-.18 G(he)-3.79 E 1.7(only possible completions.)184 216 +R(See)6.7 E/F4 9/Palatino-Bold@0 SF 1.7(SHELL V)4.2 F(ARIABLES)-1.161 E +F2 1.701(above for a description of)3.95 F F1(FIGNORE)184 228 Q F2 5(.T) +C(his option is enabled by default.)-5 E F1(gnu_errfmt)144 240 Q F2 .843 +(If set, shell err)184 252 R .843(or messages ar)-.18 F 3.342(ew)-.18 G .842(ritten in the standar)-3.342 F 3.342(dG)-.18 G .842(NU err)-3.342 F -.842(or message for)-.18 F(-)-.18 E(mat.)184 204 Q F1(histappend)144 216 +.842(or message for)-.18 F(-)-.18 E(mat.)184 264 Q F1(histappend)144 276 Q F2 1.127(If set, the history list is appended to the \214le named by \ -the value of the)184 228 R F1(HIST)3.627 E(-)-.92 E(FILE)184 240 Q F2 +the value of the)184 288 R F1(HIST)3.627 E(-)-.92 E(FILE)184 300 Q F2 (variable when the shell exits, rather than overwriting the \214le.)2.5 -E F1(histreedit)144 252 Q F2 1.381(If set, and)184 264 R F1(readline) +E F1(histreedit)144 312 Q F2 1.381(If set, and)184 324 R F1(readline) 3.881 E F2 1.381(is being used, a user is given the opportunity to r) -3.881 F 1.38(e-edit a)-.18 F(failed history substitution.)184 276 Q F1 -(histverify)144 288 Q F2 2.133(If set, and)184 300 R F1(readline)4.633 E +3.881 F 1.38(e-edit a)-.18 F(failed history substitution.)184 336 Q F1 +(histverify)144 348 Q F2 2.133(If set, and)184 360 R F1(readline)4.633 E F2 2.133(is being used, the r)4.633 F 2.133 (esults of history substitution ar)-.18 F 4.634(en)-.18 G(ot)-4.634 E -.383(immediately passed to the shell parser)184 312 R 5.383(.I)-.74 G +.383(immediately passed to the shell parser)184 372 R 5.383(.I)-.74 G .382(nstead, the r)-5.383 F .382(esulting line is loaded into)-.18 F -(the)184 324 Q F1(readline)2.5 E F2(editing buf)2.5 E(fer)-.18 E 2.5(,a) --.74 G(llowing further modi\214cation.)-2.5 E F1(hostcomplete)144 336 Q -F2 .647(If set, and)184 348 R F1(readline)3.147 E F2 .648 +(the)184 384 Q F1(readline)2.5 E F2(editing buf)2.5 E(fer)-.18 E 2.5(,a) +-.74 G(llowing further modi\214cation.)-2.5 E F1(hostcomplete)144 396 Q +F2 .647(If set, and)184 408 R F1(readline)3.147 E F2 .648 (is being used,)3.147 F F1(bash)3.148 E F2 .648 (will attempt to perform hostname com-)3.148 F .44(pletion when a wor) -184 360 R 2.939(dc)-.18 G .439(ontaining a)-2.939 F F1(@)2.939 E F2 .439 +184 420 R 2.939(dc)-.18 G .439(ontaining a)-2.939 F F1(@)2.939 E F2 .439 (is being completed \(see)2.939 F F1(Completing)2.939 E F2(under)2.939 E -F3(READLINE)184 372 Q F2 2.5(above\). This)2.25 F -(is enabled by default.)2.5 E F1(huponexit)144 384 Q F2(If set,)184 396 -Q F1(bash)2.5 E F2(will send)2.5 E F3(SIGHUP)2.5 E F2 +F4(READLINE)184 432 Q F2 2.5(above\). This)2.25 F +(is enabled by default.)2.5 E F1(huponexit)144 444 Q F2(If set,)184 456 +Q F1(bash)2.5 E F2(will send)2.5 E F4(SIGHUP)2.5 E F2 (to all jobs when an interactive login shell exits.)2.25 E F1 -(interactive_comments)144 408 Q F2 .26(If set, allow a wor)184 420 R +(interactive_comments)144 468 Q F2 .26(If set, allow a wor)184 480 R 2.76(db)-.18 G .26(eginning with)-2.76 F F1(#)2.76 E F2 .26 (to cause that wor)2.76 F 2.76(da)-.18 G .26(nd all r)-2.76 F .26 (emaining char)-.18 F(-)-.18 E .512(acters on that line to be ignor)184 -432 R .512(ed in an interactive shell \(see)-.18 F F3(COMMENTS)3.012 E -F2(above\).)2.762 E(This option is enabled by default.)184 444 Q F1 -(lithist)144 456 Q F2 .513(If set, and the)12.8 F F1(cmdhist)3.013 E F2 +492 R .512(ed in an interactive shell \(see)-.18 F F4(COMMENTS)3.012 E +F2(above\).)2.762 E(This option is enabled by default.)184 504 Q F1 +(lithist)144 516 Q F2 .513(If set, and the)12.8 F F1(cmdhist)3.013 E F2 .513(option is enabled, multi-line commands ar)3.013 F 3.013(es)-.18 G .513(aved to the)-3.013 F .643(history with embedded newlines rather th\ -an using semicolon separators wher)184 468 R(e)-.18 E(possible.)184 480 -Q F1(login_shell)144 492 Q F2 2.454 +an using semicolon separators wher)184 528 R(e)-.18 E(possible.)184 540 +Q F1(login_shell)144 552 Q F2 2.454 (The shell sets this option if it is started as a login shell \(see)184 -504 R F3(INVOCA)4.954 E(TION)-.828 E F2 2.5(above\). The)184 516 R -(value may not be changed.)2.5 E F1(mailwarn)144 528 Q F2 .965 -(If set, and a \214le that)184 540 R F1(bash)3.465 E F2 .964 +564 R F4(INVOCA)4.954 E(TION)-.828 E F2 2.5(above\). The)184 576 R +(value may not be changed.)2.5 E F1(mailwarn)144 588 Q F2 .965 +(If set, and a \214le that)184 600 R F1(bash)3.465 E F2 .964 (is checking for mail has been accessed since the last)3.464 F 1.647 -(time it was checked, the message `)184 552 R 1.647(`The mail in)-.37 F -/F4 10/Palatino-Italic@0 SF(mail\214le)4.147 E F2 1.647(has been r)4.147 -F(ead')-.18 E 4.148('i)-.37 G 4.148(sd)-4.148 G(is-)-4.148 E(played.)184 -564 Q F1(no_empty_cmd_completion)144 576 Q F2 .572(If set, and)184 588 R -F1(readline)3.072 E F2 .572(is being used,)3.072 F F1(bash)3.072 E F2 -.572(will not attempt to sear)3.072 F .572(ch the)-.18 F F1 -.74(PA) -3.072 G(TH)-.18 E F2(for)3.072 E +(time it was checked, the message `)184 612 R 1.647(`The mail in)-.37 F +F3(mail\214le)4.147 E F2 1.647(has been r)4.147 F(ead')-.18 E 4.148('i) +-.37 G 4.148(sd)-4.148 G(is-)-4.148 E(played.)184 624 Q F1 +(no_empty_cmd_completion)144 636 Q F2 .572(If set, and)184 648 R F1 +(readline)3.072 E F2 .572(is being used,)3.072 F F1(bash)3.072 E F2 .572 +(will not attempt to sear)3.072 F .572(ch the)-.18 F F1 -.74(PA)3.072 G +(TH)-.18 E F2(for)3.072 E (possible completions when completion is attempted on an empty line.)184 -600 Q F1(nocaseglob)144 612 Q F2 1.548(If set,)184 624 R F1(bash)4.048 E +660 Q F1(nocaseglob)144 672 Q F2 1.548(If set,)184 684 R F1(bash)4.048 E F2 1.548 (matches \214lenames in a case\255insensitive fashion when performing) -4.048 F(pathname expansion \(see)184 636 Q F1(Pathname Expansion)2.5 E -F2(above\).)2.5 E F1(nullglob)144 648 Q F2 2.34(If set,)184 660 R F1 -(bash)4.84 E F2 2.34(allows patterns which match no \214les \(see)4.84 F -F1 2.34(Pathname Expansion)4.84 F F2 -(above\) to expand to a null string, rather than themselves.)184 672 Q -F1(progcomp)144 684 Q F2 1.198(If set, the pr)184 696 R 1.199 -(ogrammable completion facilities \(see)-.18 F F1 1.199 -(Programmable Completion)3.699 F F2(above\) ar)184 708 Q 2.5(ee)-.18 G -2.5(nabled. This)-2.5 F(option is enabled by default.)2.5 E F0 -(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 11) --124.42 E(59)199 E 0 Cg EP +4.048 F(pathname expansion \(see)184 696 Q F1(Pathname Expansion)2.5 E +F2(above\).)2.5 E F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2) +.15 G(005 Feb 19)-124.42 E(59)199 E 0 Cg EP %%Page: 60 61 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E/F1 10/Palatino-Bold@0 SF(promptvars)144 84 Q/F2 10 -/Palatino-Roman@0 SF 2.553(If set, pr)184 96 R 2.553(ompt strings under) --.18 F 2.552(go parameter expansion, command substitution,)-.18 F 1.007 -(arithmetic expansion, and quote r)184 108 R 1.007 +-.35 E/F1 10/Palatino-Bold@0 SF(nocasematch)144 84 Q/F2 10 +/Palatino-Roman@0 SF 2.158(If set,)184 96 R F1(bash)4.658 E F2 2.158 +(matches patterns in a case\255insensitive fashion when performing)4.658 +F(matching while executing)184 108 Q F1(case)2.5 E F2(or)2.5 E F1([[)2.5 +E F2(conditional commands.)2.5 E F1(nullglob)144 120 Q F2 2.34(If set,) +184 132 R F1(bash)4.84 E F2 2.34 +(allows patterns which match no \214les \(see)4.84 F F1 2.34 +(Pathname Expansion)4.84 F F2 +(above\) to expand to a null string, rather than themselves.)184 144 Q +F1(progcomp)144 156 Q F2 1.199(If set, the pr)184 168 R 1.199 +(ogrammable completion facilities \(see)-.18 F F1 1.198 +(Programmable Completion)3.698 F F2(above\) ar)184 180 Q 2.5(ee)-.18 G +2.5(nabled. This)-2.5 F(option is enabled by default.)2.5 E F1 +(promptvars)144 192 Q F2 2.552(If set, pr)184 204 R 2.552 +(ompt strings under)-.18 F 2.553 +(go parameter expansion, command substitution,)-.18 F 1.007 +(arithmetic expansion, and quote r)184 216 R 1.007 (emoval after being expanded as described in)-.18 F/F3 9/Palatino-Bold@0 -SF(PROMPTING)184 120 Q F2 2.5(above. This)2.25 F -(option is enabled by default.)2.5 E F1(restricted_shell)144 132 Q F2 -1.743(The shell sets this option if it is started in r)184 144 R 1.742 -(estricted mode \(see)-.18 F F3(RESTRICTED)4.242 E(SHELL)184 156 Q F2 -4.862(below\). The)4.612 F 2.362(value may not be changed.)4.862 F 2.362 -(This is not r)7.362 F 2.362(eset when the)-.18 F .294 -(startup \214les ar)184 168 R 2.794(ee)-.18 G .294 +SF(PROMPTING)184 228 Q F2 2.5(above. This)2.25 F +(option is enabled by default.)2.5 E F1(restricted_shell)144 240 Q F2 +1.743(The shell sets this option if it is started in r)184 252 R 1.743 +(estricted mode \(see)-.18 F F3(RESTRICTED)4.243 E(SHELL)184 264 Q F2 +4.862(below\). The)4.613 F 2.362(value may not be changed.)4.862 F 2.362 +(This is not r)7.362 F 2.362(eset when the)-.18 F .293 +(startup \214les ar)184 276 R 2.794(ee)-.18 G .294 (xecuted, allowing the startup \214les to discover whether or not a) --2.794 F(shell is r)184 180 Q(estricted.)-.18 E F1(shift_verbose)144 192 -Q F2 .527(If set, the)184 204 R F1(shift)3.028 E F2 .528 +-2.794 F(shell is r)184 288 Q(estricted.)-.18 E F1(shift_verbose)144 300 +Q F2 .528(If set, the)184 312 R F1(shift)3.028 E F2 .528 (builtin prints an err)3.028 F .528 (or message when the shift count exceeds the)-.18 F -(number of positional parameters.)184 216 Q F1(sourcepath)144 228 Q F2 -.515(If set, the)184 240 R F1(source)3.015 E F2(\()3.014 E F1(.)A F2 +(number of positional parameters.)184 324 Q F1(sourcepath)144 336 Q F2 +.514(If set, the)184 348 R F1(source)3.014 E F2(\()3.014 E F1(.)A F2 3.014(\)b)C .514(uiltin uses the value of)-3.014 F F3 -.666(PA)3.014 G -(TH)-.162 E F2 .514(to \214nd the dir)2.764 F .514(ectory contain-)-.18 -F(ing the \214le supplied as an ar)184 252 Q 2.5(gument. This)-.18 F -(option is enabled by default.)2.5 E F1(xpg_echo)144 264 Q F2 -(If set, the)184 276 Q F1(echo)2.5 E F2 +(TH)-.162 E F2 .515(to \214nd the dir)2.764 F .515(ectory contain-)-.18 +F(ing the \214le supplied as an ar)184 360 Q 2.5(gument. This)-.18 F +(option is enabled by default.)2.5 E F1(xpg_echo)144 372 Q F2 +(If set, the)184 384 Q F1(echo)2.5 E F2 (builtin expands backslash-escape sequences by default.)2.5 E F1 -(suspend)108 288 Q F2([)2.5 E F1A F2(])A .048 -(Suspend the execution of this shell until it r)144 300 R .048 +(suspend)108 396 Q F2([)2.5 E F1A F2(])A .048 +(Suspend the execution of this shell until it r)144 408 R .048 (eceives a)-.18 F F3(SIGCONT)2.548 E F2 2.548(signal. The)2.298 F F1 -2.548 E F2 .048(option says)2.548 F .327 -(not to complain if this is a login shell; just suspend anyway)144 312 R +2.548 E F2 .047(option says)2.547 F .327 +(not to complain if this is a login shell; just suspend anyway)144 420 R 5.327(.T)-1.11 G .327(he r)-5.327 F .327(eturn status is 0 unless)-.18 F -(the shell is a login shell and)144 324 Q F12.5 E F2 +(the shell is a login shell and)144 432 Q F12.5 E F2 (is not supplied, or if job contr)2.5 E(ol is not enabled.)-.18 E F1 -(test)108 336 Q/F4 10/Palatino-Italic@0 SF(expr)2.5 E F1([)108 348 Q F4 +(test)108 444 Q/F4 10/Palatino-Italic@0 SF(expr)2.5 E F1([)108 456 Q F4 (expr)2.5 E F1(])2.5 E F2 .544(Return a status of 0 or 1 depending on t\ he evaluation of the conditional expr)6.56 F(ession)-.18 E F4(expr)3.044 -E F2(.).45 E .789(Each operator and operand must be a separate ar)144 -360 R 3.288(gument. Expr)-.18 F .788(essions ar)-.18 F 3.288(ec)-.18 G -.788(omposed of)-3.288 F(the primaries described above under)144 372 Q +E F2(.).45 E .788(Each operator and operand must be a separate ar)144 +468 R 3.289(gument. Expr)-.18 F .789(essions ar)-.18 F 3.289(ec)-.18 G +.789(omposed of)-3.289 F(the primaries described above under)144 480 Q F3(CONDITIONAL EXPRESSIONS)2.5 E/F5 9/Palatino-Roman@0 SF(.)A F2(Expr) -144 390 Q .054 +144 498 Q .054 (essions may be combined using the following operators, listed in decr) --.18 F .055(easing or)-.18 F .055(der of)-.18 F(pr)144 402 Q(ecedence.) --.18 E F1(!)144 414 Q F4(expr)2.5 E F2 -.78 -.9(Tr u)12.94 H 2.5(ei).9 G -(f)-2.5 E F4(expr)2.85 E F2(is false.)2.95 E F1(\()144 426 Q F4(expr)2.5 +-.18 F .054(easing or)-.18 F .054(der of)-.18 F(pr)144 510 Q(ecedence.) +-.18 E F1(!)144 522 Q F4(expr)2.5 E F2 -.78 -.9(Tr u)12.94 H 2.5(ei).9 G +(f)-2.5 E F4(expr)2.85 E F2(is false.)2.95 E F1(\()144 534 Q F4(expr)2.5 E F1(\))2.5 E F2 .847(Returns the value of)6.56 F F4(expr)3.347 E F2 5.847(.T)C .847(his may be used to override the normal pr)-5.847 F -(ecedence)-.18 E(of operators.)180 438 Q F4(expr1)144 450 Q F22.5 E -F1(a)A F4(expr2)2.5 E F2 -.78 -.9(Tr u)180 462 T 2.5(ei).9 G 2.5(fb)-2.5 +(ecedence)-.18 E(of operators.)180 546 Q F4(expr1)144 558 Q F22.5 E +F1(a)A F4(expr2)2.5 E F2 -.78 -.9(Tr u)180 570 T 2.5(ei).9 G 2.5(fb)-2.5 G(oth)-2.5 E F4(expr1)2.85 E F2(and)2.5 E F4(expr2)2.85 E F2(ar)2.5 E -2.5(et)-.18 G -.08(ru)-2.5 G(e.).08 E F4(expr1)144 474 Q F22.5 E F1 -(o)A F4(expr2)2.5 E F2 -.78 -.9(Tr u)180 486 T 2.5(ei).9 G 2.5(fe)-2.5 G +2.5(et)-.18 G -.08(ru)-2.5 G(e.).08 E F4(expr1)144 582 Q F22.5 E F1 +(o)A F4(expr2)2.5 E F2 -.78 -.9(Tr u)180 594 T 2.5(ei).9 G 2.5(fe)-2.5 G (ither)-2.5 E F4(expr1)2.85 E F2(or)2.5 E F4(expr2)2.85 E F2(is tr)2.5 E -(ue.)-.08 E F1(test)144 502.8 Q F2(and)3.576 E F1([)3.576 E F2 1.076 +(ue.)-.08 E F1(test)144 610.8 Q F2(and)3.576 E F1([)3.576 E F2 1.076 (evaluate conditional expr)3.576 F 1.076(essions using a set of r)-.18 F -1.076(ules based on the number of)-.08 F(ar)144 514.8 Q(guments.)-.18 E -2.5(0a)144 532.8 S -.18(rg)-2.5 G(uments).18 E(The expr)180 544.8 Q -(ession is false.)-.18 E 2.5(1a)144 556.8 S -.18(rg)-2.5 G(ument).18 E -(The expr)180 568.8 Q(ession is tr)-.18 E(ue if and only if the ar)-.08 -E(gument is not null.)-.18 E 2.5(2a)144 580.8 S -.18(rg)-2.5 G(uments) -.18 E .209(If the \214rst ar)180 592.8 R .208(gument is)-.18 F F1(!) +1.076(ules based on the number of)-.08 F(ar)144 622.8 Q(guments.)-.18 E +2.5(0a)144 640.8 S -.18(rg)-2.5 G(uments).18 E(The expr)180 652.8 Q +(ession is false.)-.18 E 2.5(1a)144 664.8 S -.18(rg)-2.5 G(ument).18 E +(The expr)180 676.8 Q(ession is tr)-.18 E(ue if and only if the ar)-.08 +E(gument is not null.)-.18 E 2.5(2a)144 688.8 S -.18(rg)-2.5 G(uments) +.18 E .208(If the \214rst ar)180 700.8 R .208(gument is)-.18 F F1(!) 2.708 E F2 2.708(,t)C .208(he expr)-2.708 F .208(ession is tr)-.18 F -.208(ue if and only if the second ar)-.08 F(gument)-.18 E 2.143 -(is null.)180 604.8 R 2.144(If the \214rst ar)7.143 F 2.144 -(gument is one of the unary conditional operators listed)-.18 F 1.402 -(above under)180 616.8 R F3 1.401(CONDITIONAL EXPRESSIONS)3.901 F F5(,)A +.208(ue if and only if the second ar)-.08 F(gument)-.18 E 2.144 +(is null.)180 712.8 R 2.144(If the \214rst ar)7.144 F 2.144 +(gument is one of the unary conditional operators listed)-.18 F 1.401 +(above under)180 724.8 R F3 1.401(CONDITIONAL EXPRESSIONS)3.901 F F5(,)A F2 1.401(the expr)3.651 F 1.401(ession is tr)-.18 F 1.401 -(ue if the unary)-.08 F 1.355(test is tr)180 628.8 R 3.855(ue. If)-.08 F -1.356(the \214rst ar)3.855 F 1.356 -(gument is not a valid unary conditional operator)-.18 F 3.856(,t)-.74 G -(he)-3.856 E(expr)180 640.8 Q(ession is false.)-.18 E 2.5(3a)144 652.8 S --.18(rg)-2.5 G(uments).18 E 1.5(If the second ar)180 664.8 R 1.499 -(gument is one of the binary conditional operators listed above)-.18 F -(under)180 676.8 Q F3 .64(CONDITIONAL EXPRESSIONS)3.14 F F5(,)A F2 .64 -(the r)2.89 F .64(esult of the expr)-.18 F .64(ession is the r)-.18 F -.641(esult of)-.18 F .529(the binary test using the \214rst and thir)180 -688.8 R 3.029(da)-.18 G -.18(rg)-3.029 G .528(uments as operands.).18 F -.528(If the \214rst ar)5.528 F(gu-)-.18 E .106(ment is)180 700.8 R F1(!) -2.606 E F2 2.606(,t)C .107(he value is the negation of the two-ar)-2.606 -F .107(gument test using the second and)-.18 F(thir)180 712.8 Q 4.633 -(da)-.18 G -.18(rg)-4.633 G 4.633(uments. If).18 F 2.133(the \214rst ar) -4.633 F 2.132(gument is exactly)-.18 F F1(\()4.632 E F2 2.132 -(and the thir)4.632 F 4.632(da)-.18 G -.18(rg)-4.632 G 2.132(ument is) -.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 124.42(l2).15 G(005 Feb 11)-124.42 E(60)199 E 0 Cg EP +(ue if the unary)-.08 F F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G +124.42(l2).15 G(005 Feb 19)-124.42 E(60)199 E 0 Cg EP %%Page: 61 62 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E/F1 10/Palatino-Roman@0 SF .43(the expr)180 84 R .43 -(ession is false.)-.18 F(The)5.43 E/F2 10/Palatino-Bold@0 SF2.93 E -F1(and)2.93 E F22.93 E F1 .43(operators ar)2.93 F 2.93(ec)-.18 G -(onsider)-2.93 E .43(ed binary operators)-.18 F(in this case.)180 96 Q -2.5(4a)144 108 S -.18(rg)-2.5 G(uments).18 E .668(If the \214rst ar)180 -120 R .668(gument is)-.18 F F2(!)3.168 E F1 3.168(,t)C .669(he r)-3.168 -F .669(esult is the negation of the thr)-.18 F(ee-ar)-.18 E .669 -(gument expr)-.18 F(es-)-.18 E .409(sion composed of the r)180 132 R -.409(emaining ar)-.18 F 2.909(guments. Otherwise,)-.18 F .409(the expr) -2.909 F .409(ession is parsed)-.18 F(and evaluated accor)180 144 Q -(ding to pr)-.18 E(ecedence using the r)-.18 E(ules listed above.)-.08 E -2.5(5o)144 156 S 2.5(rm)-2.5 G(or)-2.5 E 2.5(ea)-.18 G -.18(rg)-2.5 G -(uments).18 E .781(The expr)180 168 R .782 -(ession is parsed and evaluated accor)-.18 F .782(ding to pr)-.18 F .782 -(ecedence using the r)-.18 F(ules)-.08 E(listed above.)180 180 Q F2 -(times)108 196.8 Q F1 .334 +-.35 E/F1 10/Palatino-Roman@0 SF 1.356(test is tr)180 84 R 3.856(ue. If) +-.08 F 1.356(the \214rst ar)3.856 F 1.356 +(gument is not a valid unary conditional operator)-.18 F 3.855(,t)-.74 G +(he)-3.855 E(expr)180 96 Q(ession is false.)-.18 E 2.5(3a)144 108 S -.18 +(rg)-2.5 G(uments).18 E 1.499(If the second ar)180 120 R 1.499 +(gument is one of the binary conditional operators listed above)-.18 F +(under)180 132 Q/F2 9/Palatino-Bold@0 SF .64(CONDITIONAL EXPRESSIONS) +3.141 F/F3 9/Palatino-Roman@0 SF(,)A F1 .64(the r)2.89 F .64 +(esult of the expr)-.18 F .64(ession is the r)-.18 F .64(esult of)-.18 F +.528(the binary test using the \214rst and thir)180 144 R 3.029(da)-.18 +G -.18(rg)-3.029 G .529(uments as operands.).18 F .529 +(If the \214rst ar)5.529 F(gu-)-.18 E .107(ment is)180 156 R/F4 10 +/Palatino-Bold@0 SF(!)2.607 E F1 2.607(,t)C .107 +(he value is the negation of the two-ar)-2.607 F .106 +(gument test using the second and)-.18 F(thir)180 168 Q 4.632(da)-.18 G +-.18(rg)-4.632 G 4.632(uments. If).18 F 2.132(the \214rst ar)4.632 F +2.132(gument is exactly)-.18 F F4(\()4.632 E F1 2.133(and the thir)4.632 +F 4.633(da)-.18 G -.18(rg)-4.633 G 2.133(ument is).18 F(exactly)180 180 +Q F4(\))2.926 E F1 2.926(,t)C .426(he r)-2.926 F .426 +(esult is the one-ar)-.18 F .426(gument test of the second ar)-.18 F +2.925(gument. Otherwise,)-.18 F .43(the expr)180 192 R .43 +(ession is false.)-.18 F(The)5.43 E F42.93 E F1(and)2.93 E F4 +2.93 E F1 .43(operators ar)2.93 F 2.93(ec)-.18 G(onsider)-2.93 E +.43(ed binary operators)-.18 F(in this case.)180 204 Q 2.5(4a)144 216 S +-.18(rg)-2.5 G(uments).18 E .669(If the \214rst ar)180 228 R .669 +(gument is)-.18 F F4(!)3.169 E F1 3.169(,t)C .669(he r)-3.169 F .668 +(esult is the negation of the thr)-.18 F(ee-ar)-.18 E .668(gument expr) +-.18 F(es-)-.18 E .409(sion composed of the r)180 240 R .409 +(emaining ar)-.18 F 2.909(guments. Otherwise,)-.18 F .409(the expr)2.909 +F .409(ession is parsed)-.18 F(and evaluated accor)180 252 Q(ding to pr) +-.18 E(ecedence using the r)-.18 E(ules listed above.)-.08 E 2.5(5o)144 +264 S 2.5(rm)-2.5 G(or)-2.5 E 2.5(ea)-.18 G -.18(rg)-2.5 G(uments).18 E +.782(The expr)180 276 R .782(ession is parsed and evaluated accor)-.18 F +.782(ding to pr)-.18 F .781(ecedence using the r)-.18 F(ules)-.08 E +(listed above.)180 288 Q F4(times)108 304.8 Q F1 .334 (Print the accumulated user and system times for the shell and for pr) 11.01 F .334(ocesses r)-.18 F .334(un fr)-.08 F .334(om the)-.18 F 2.5 -(shell. The)144 208.8 R -.18(re)2.5 G(turn status is 0.).18 E F2(trap) -108 225.6 Q F1([)2.5 E F2(\255lp)A F1 2.5(][)C([)-2.5 E/F3 10 -/Palatino-Italic@0 SF(ar)A(g)-.18 E F1(])A F3(sigspec)2.5 E F1(...])2.5 -E .563(The command)144 237.6 R F3(ar)3.523 E(g)-.18 E F1 .563 -(is to be r)3.543 F .563(ead and executed when the shell r)-.18 F .564 -(eceives signal\(s\))-.18 F F3(sigspec)3.064 E F1 5.564(.I).32 G(f) --5.564 E F3(ar)144.46 249.6 Q(g)-.18 E F1 .153(is absent \(and ther) -3.133 F 2.653(ei)-.18 G 2.653(sas)-2.653 G(ingle)-2.653 E F3(sigspec) -2.653 E F1 2.653(\)o)C(r)-2.653 E F22.653 E F1 2.653(,e)C .153 -(ach speci\214ed signal is r)-2.653 F .152(eset to its original)-.18 F -.069(disposition \(the value it had upon entrance to the shell\).)144 -261.6 R(If)5.069 E F3(ar)3.03 E(g)-.18 E F1 .07 -(is the null string the signal)3.05 F .142(speci\214ed by each)144 273.6 -R F3(sigspec)3.052 E F1 .142(is ignor)2.962 F .142 -(ed by the shell and by the commands it invokes.)-.18 F(If)5.141 E F3 -(ar)3.101 E(g)-.18 E F1(is)3.121 E 1.795(not pr)144 285.6 R 1.795 -(esent and)-.18 F F24.295 E F1 1.796 -(has been supplied, then the trap commands associated with each)4.295 F -F3(sigspec)144.41 297.6 Q F1(ar)3.218 E 2.898(ed)-.18 G 2.898 -(isplayed. If)-2.898 F .398(no ar)2.898 F .398(guments ar)-.18 F 2.898 -(es)-.18 G .397(upplied or if only)-2.898 F F22.897 E F1 .397 -(is given,)2.897 F F2(trap)2.897 E F1 .397(prints the)2.897 F .035 -(list of commands associated with each signal.)144 309.6 R(The)5.036 E -F22.536 E F1 .036(option causes the shell to print a list)2.536 F -1.095(of signal names and their corr)144 321.6 R 1.095 -(esponding numbers.)-.18 F(Each)6.095 E F3(sigspec)4.005 E F1 1.094 -(is either a signal name)3.914 F .672(de\214ned in <)144 333.6 R F3 +(shell. The)144 316.8 R -.18(re)2.5 G(turn status is 0.).18 E F4(trap) +108 333.6 Q F1([)2.5 E F4(\255lp)A F1 2.5(][)C([)-2.5 E/F5 10 +/Palatino-Italic@0 SF(ar)A(g)-.18 E F1(])A F5(sigspec)2.5 E F1(...])2.5 +E .564(The command)144 345.6 R F5(ar)3.524 E(g)-.18 E F1 .564 +(is to be r)3.544 F .563(ead and executed when the shell r)-.18 F .563 +(eceives signal\(s\))-.18 F F5(sigspec)3.063 E F1 5.563(.I).32 G(f) +-5.563 E F5(ar)144.46 357.6 Q(g)-.18 E F1 .152(is absent \(and ther) +3.132 F 2.653(ei)-.18 G 2.653(sas)-2.653 G(ingle)-2.653 E F5(sigspec) +2.653 E F1 2.653(\)o)C(r)-2.653 E F42.653 E F1 2.653(,e)C .153 +(ach speci\214ed signal is r)-2.653 F .153(eset to its original)-.18 F +.07(disposition \(the value it had upon entrance to the shell\).)144 +369.6 R(If)5.069 E F5(ar)3.029 E(g)-.18 E F1 .069 +(is the null string the signal)3.049 F .141(speci\214ed by each)144 +381.6 R F5(sigspec)3.051 E F1 .142(is ignor)2.961 F .142 +(ed by the shell and by the commands it invokes.)-.18 F(If)5.142 E F5 +(ar)3.102 E(g)-.18 E F1(is)3.122 E 1.796(not pr)144 393.6 R 1.796 +(esent and)-.18 F F44.296 E F1 1.795 +(has been supplied, then the trap commands associated with each)4.296 F +F5(sigspec)144.41 405.6 Q F1(ar)3.217 E 2.897(ed)-.18 G 2.897 +(isplayed. If)-2.897 F .397(no ar)2.897 F .397(guments ar)-.18 F 2.897 +(es)-.18 G .398(upplied or if only)-2.897 F F42.898 E F1 .398 +(is given,)2.898 F F4(trap)2.898 E F1 .398(prints the)2.898 F .036 +(list of commands associated with each signal.)144 417.6 R(The)5.036 E +F42.536 E F1 .035(option causes the shell to print a list)2.536 F +1.094(of signal names and their corr)144 429.6 R 1.095 +(esponding numbers.)-.18 F(Each)6.095 E F5(sigspec)4.005 E F1 1.095 +(is either a signal name)3.915 F .673(de\214ned in <)144 441.6 R F5 (signal.h)A F1 .673(>, or a signal number)B 5.673(.S)-.74 G .673 (ignal names ar)-5.673 F 3.173(ec)-.18 G .673 -(ase insensitive and the SIG)-3.173 F(pr)144 345.6 Q .977 -(e\214x is optional.)-.18 F .976(If a)5.976 F F3(sigspec)3.886 E F1(is) -3.796 E/F4 9/Palatino-Bold@0 SF(EXIT)3.476 E F1 .976(\(0\) the command) -3.226 F F3(ar)3.936 E(g)-.18 E F1 .976(is executed on exit fr)3.956 F -.976(om the)-.18 F 3.404(shell. If)144 357.6 R(a)3.404 E F3(sigspec) -3.814 E F1(is)3.724 E F4(DEBUG)3.404 E/F5 9/Palatino-Roman@0 SF(,)A F1 -.904(the command)3.154 F F3(ar)3.864 E(g)-.18 E F1 .905 -(is executed befor)3.885 F 3.405(ee)-.18 G(very)-3.405 E F3 .905 -(simple command)3.405 F F1(,)A F3(for)144 369.6 Q F1(command,)3.016 E F3 -(case)3.016 E F1(command,)3.016 E F3(select)3.016 E F1 .515 -(command, every arithmetic)3.016 F F3(for)3.015 E F1 .515 -(command, and befor)3.015 F(e)-.18 E 1.001 -(the \214rst command executes in a shell function \(see)144 381.6 R F4 -1.001(SHELL GRAMMAR)3.501 F F1 3.501(above\). Refer)3.251 F(to)3.501 E -.679(the description of the)144 393.6 R F2(extdebug)3.178 E F1 .678 -(option to the)3.178 F F2(shopt)3.178 E F1 .678 -(builtin for details of its ef)3.178 F .678(fect on the)-.18 F F2(DEBUG) -144 405.6 Q F1 3.153(trap. If)3.153 F(a)3.153 E F3(sigspec)3.563 E F1 -(is)3.473 E F4(ERR)3.153 E F5(,)A F1 .653(the command)2.903 F F3(ar) -3.613 E(g)-.18 E F1 .653(is executed whenever a simple com-)3.633 F .241 -(mand has a non\255zer)144 417.6 R 2.741(oe)-.18 G .24 -(xit status, subject to the following conditions.)-2.741 F(The)5.24 E F4 -(ERR)2.74 E F1 .24(trap is not)2.49 F 1.926(executed if the failed comm\ -and is part of the command list immediately following a)144 429.6 R F2 -(while)144 441.6 Q F1(or)2.552 E F2(until)2.552 E F1(keywor)2.552 E .052 -(d, part of the test in an)-.18 F F3(if)2.712 E F1 .052 -(statement, part of a)4.402 F F2(&&)2.552 E F1(or)2.552 E/F6 10/Symbol -SF2.552 E F1 .051(list, or if the)2.552 F .092(command's r)144 -453.6 R .092(eturn value is being inverted via)-.18 F F2(!)2.592 E F1 +(ase insensitive and the SIG)-3.173 F(pr)144 453.6 Q .976 +(e\214x is optional.)-.18 F .976(If a)5.976 F F5(sigspec)3.886 E F1(is) +3.796 E F2(EXIT)3.476 E F1 .976(\(0\) the command)3.226 F F5(ar)3.936 E +(g)-.18 E F1 .976(is executed on exit fr)3.956 F .977(om the)-.18 F +3.405(shell. If)144 465.6 R(a)3.405 E F5(sigspec)3.815 E F1(is)3.725 E +F2(DEBUG)3.405 E F3(,)A F1 .904(the command)3.155 F F5(ar)3.864 E(g)-.18 +E F1 .904(is executed befor)3.884 F 3.404(ee)-.18 G(very)-3.404 E F5 +.904(simple command)3.404 F F1(,)A F5(for)144 477.6 Q F1(command,)3.015 +E F5(case)3.015 E F1(command,)3.015 E F5(select)3.015 E F1 .515 +(command, every arithmetic)3.015 F F5(for)3.016 E F1 .516 +(command, and befor)3.016 F(e)-.18 E 1.001 +(the \214rst command executes in a shell function \(see)144 489.6 R F2 +1.001(SHELL GRAMMAR)3.501 F F1 3.5(above\). Refer)3.25 F(to)3.5 E .678 +(the description of the)144 501.6 R F4(extdebug)3.178 E F1 .678 +(option to the)3.178 F F4(shopt)3.178 E F1 .678 +(builtin for details of its ef)3.178 F .679(fect on the)-.18 F F4(DEBUG) +144 513.6 Q F1 3.153(trap. If)3.153 F(a)3.153 E F5(sigspec)3.563 E F1 +(is)3.473 E F2(ERR)3.153 E F3(,)A F1 .653(the command)2.903 F F5(ar) +3.613 E(g)-.18 E F1 .653(is executed whenever a simple com-)3.633 F .24 +(mand has a non\255zer)144 525.6 R 2.74(oe)-.18 G .24 +(xit status, subject to the following conditions.)-2.74 F(The)5.241 E F2 +(ERR)2.741 E F1 .241(trap is not)2.491 F 1.926(executed if the failed c\ +ommand is part of the command list immediately following a)144 537.6 R +F4(while)144 549.6 Q F1(or)2.551 E F4(until)2.551 E F1(keywor)2.552 E +.052(d, part of the test in an)-.18 F F5(if)2.712 E F1 .052 +(statement, part of a)4.402 F F4(&&)2.552 E F1(or)2.552 E/F6 10/Symbol +SF2.552 E F1 .052(list, or if the)2.552 F .093(command's r)144 +561.6 R .092(eturn value is being inverted via)-.18 F F4(!)2.592 E F1 5.092(.T)C .092(hese ar)-5.092 F 2.592(et)-.18 G .092 -(he same conditions obeyed by)-2.592 F(the)144 465.6 Q F2(errexit)2.825 -E F1 2.825(option. If)2.825 F(a)2.825 E F3(sigspec)3.235 E F1(is)3.145 E -F4(RETURN)2.825 E F5(,)A F1 .325(the command)2.575 F F3(ar)3.284 E(g) --.18 E F1 .324(is executed each time a shell)3.304 F 1.95 -(function or a script executed with the)144 477.6 R F2(.)4.451 E F1(or) -4.451 E F2(source)4.451 E F1 1.951(builtins \214nishes executing.)4.451 -F(Signals)6.951 E(ignor)144 489.6 Q .847 -(ed upon entry to the shell cannot be trapped or r)-.18 F 3.346(eset. T) --.18 F .846(rapped signals ar)-.9 F 3.346(er)-.18 G .846(eset to)-3.526 -F .298(their original values in a child pr)144 501.6 R .299 -(ocess when it is cr)-.18 F 2.799(eated. The)-.18 F -.18(re)2.799 G .299 -(turn status is false if any).18 F F3(sigspec)144.41 513.6 Q F1 -(is invalid; otherwise)2.82 E F2(trap)2.5 E F1 -.18(re)2.5 G(turns tr) -.18 E(ue.)-.08 E F2(type)108 530.4 Q F1([)2.5 E F2(\255aftpP)A F1(])A F3 -(name)2.5 E F1([)2.5 E F3(name)A F1(...])2.5 E -.55(Wi)144 542.4 S 1.476 -(th no options, indicate how each).55 F F3(name)4.236 E F1 1.476 -(would be interpr)4.326 F 1.475(eted if used as a command)-.18 F 2.725 -(name. If)144 554.4 R(the)2.725 E F22.725 E F1 .225 -(option is used,)2.725 F F2(type)2.725 E F1 .225 -(prints a string which is one of)2.725 F F3(alias)2.726 E F1(,).06 E F3 -(keyword)2.726 E F1(,).33 E F3(function)2.726 E F1(,).08 E F3(builtin) -144 566.4 Q F1 2.556(,o).08 G(r)-2.556 E F3(\214le)4.676 E F1(if)2.906 E -F3(name)2.816 E F1 .056(is an alias, shell r)2.906 F .056(eserved wor) --.18 F .055(d, function, builtin, or disk \214le, r)-.18 F(espec-)-.18 E -(tively)144 578.4 Q 6.634(.I)-1.11 G 4.134(ft)-6.634 G(he)-4.134 E F3 -(name)4.394 E F1 1.635 +(he same conditions obeyed by)-2.592 F(the)144 573.6 Q F4(errexit)2.824 +E F1 2.824(option. If)2.824 F(a)2.824 E F5(sigspec)3.234 E F1(is)3.144 E +F2(RETURN)2.824 E F3(,)A F1 .325(the command)2.575 F F5(ar)3.285 E(g) +-.18 E F1 .325(is executed each time a shell)3.305 F 1.951 +(function or a script executed with the)144 585.6 R F4(.)4.451 E F1(or) +4.451 E F4(source)4.451 E F1 1.95(builtins \214nishes executing.)4.451 F +(Signals)6.95 E(ignor)144 597.6 Q .846 +(ed upon entry to the shell cannot be trapped or r)-.18 F 3.347(eset. T) +-.18 F .847(rapped signals ar)-.9 F 3.347(er)-.18 G .847(eset to)-3.527 +F .299(their original values in a child pr)144 609.6 R .299 +(ocess when it is cr)-.18 F 2.799(eated. The)-.18 F -.18(re)2.799 G .298 +(turn status is false if any).18 F F5(sigspec)144.41 621.6 Q F1 +(is invalid; otherwise)2.82 E F4(trap)2.5 E F1 -.18(re)2.5 G(turns tr) +.18 E(ue.)-.08 E F4(type)108 638.4 Q F1([)2.5 E F4(\255aftpP)A F1(])A F5 +(name)2.5 E F1([)2.5 E F5(name)A F1(...])2.5 E -.55(Wi)144 650.4 S 1.475 +(th no options, indicate how each).55 F F5(name)4.236 E F1 1.476 +(would be interpr)4.326 F 1.476(eted if used as a command)-.18 F 2.726 +(name. If)144 662.4 R(the)2.726 E F42.726 E F1 .226 +(option is used,)2.726 F F4(type)2.725 E F1 .225 +(prints a string which is one of)2.725 F F5(alias)2.725 E F1(,).06 E F5 +(keyword)2.725 E F1(,).33 E F5(function)2.725 E F1(,).08 E F5(builtin) +144 674.4 Q F1 2.555(,o).08 G(r)-2.555 E F5(\214le)4.675 E F1(if)2.905 E +F5(name)2.815 E F1 .056(is an alias, shell r)2.905 F .056(eserved wor) +-.18 F .056(d, function, builtin, or disk \214le, r)-.18 F(espec-)-.18 E +(tively)144 686.4 Q 6.635(.I)-1.11 G 4.135(ft)-6.635 G(he)-4.135 E F5 +(name)4.395 E F1 1.635 (is not found, then nothing is printed, and an exit status of false is) -4.484 F -.18(re)144 590.4 S 2.523(turned. If).18 F(the)2.523 E F2 -2.523 E F1 .023(option is used,)2.523 F F2(type)2.523 E F1 .023 +4.485 F -.18(re)144 698.4 S 2.522(turned. If).18 F(the)2.523 E F4 +2.523 E F1 .023(option is used,)2.523 F F4(type)2.523 E F1 .023 (either r)2.523 F .023(eturns the name of the disk \214le that would) --.18 F 1.086(be executed if)144 602.4 R F3(name)3.846 E F1(wer)3.936 E +-.18 F 1.086(be executed if)144 710.4 R F5(name)3.846 E F1(wer)3.936 E 3.586(es)-.18 G 1.086(peci\214ed as a command name, or nothing if)-3.586 -F/F7 10/Courier@0 SF 1.086(type -t name)3.586 F F1 .016(would not r)144 -614.4 R(eturn)-.18 E F3(\214le)2.516 E F1 5.016(.T).35 G(he)-5.016 E F2 -2.516 E F1 .016(option for)2.516 F .016(ces a)-.18 F F4 -.666(PA) -2.515 G(TH)-.162 E F1(sear)2.265 E .015(ch for each)-.18 F F3(name)2.515 -E F1 2.515(,e)C .015(ven if)-2.515 F F7 .015(type -t)2.515 F(name)144 -626.4 Q F1 .645(would not r)3.145 F(eturn)-.18 E F3(\214le)3.145 E F1 -5.645(.I).35 G 3.145(fac)-5.645 G .645(ommand is hashed,)-3.145 F F2 -3.145 E F1(and)3.145 E F23.145 E F1 .645 -(print the hashed value,)3.145 F .411 -(not necessarily the \214le that appears \214rst in)144 638.4 R F4 -.666 -(PA)2.911 G(TH)-.162 E F5(.)A F1 .411(If the)4.911 F F22.911 E F1 -.411(option is used,)2.911 F F2(type)2.91 E F1 .41(prints all)2.91 F -.164(of the places that contain an executable named)144 650.4 R F3(name) -2.664 E F1 5.164(.T).35 G .164(his includes aliases and functions,) --5.164 F .73(if and only if the)144 662.4 R F23.23 E F1 .73 -(option is not also used.)3.23 F .73 -(The table of hashed commands is not con-)5.73 F .497(sulted when using) -144 674.4 R F22.998 E F1 5.498(.T)C(he)-5.498 E F22.998 E F1 -.498(option suppr)2.998 F .498(esses shell function lookup, as with the) --.18 F F2(com-)2.998 E(mand)144 686.4 Q F1(builtin.)4.558 E F2(type) -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 124.42(l2).15 G(005 Feb 11) +F/F7 10/Courier@0 SF 1.086(type -t name)3.586 F F1 .015(would not r)144 +722.4 R(eturn)-.18 E F5(\214le)2.515 E F1 5.015(.T).35 G(he)-5.015 E F4 +2.515 E F1 .015(option for)2.515 F .015(ces a)-.18 F F2 -.666(PA) +2.515 G(TH)-.162 E F1(sear)2.266 E .016(ch for each)-.18 F F5(name)2.516 +E F1 2.516(,e)C .016(ven if)-2.516 F F7 .016(type -t)2.516 F F0 +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(61)199 E 0 Cg EP %%Page: 62 63 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E/F1 10/Palatino-Bold@0 SF(ulimit)108 84 Q/F2 10/Palatino-Roman@0 -SF([)2.5 E F1(\255SHacd\215mnpstuv)A F2([)2.5 E/F3 10/Palatino-Italic@0 -SF(limit)A F2(]])A(Pr)144 96 Q .061(ovides contr)-.18 F .061 -(ol over the r)-.18 F(esour)-.18 E .061 -(ces available to the shell and to pr)-.18 F .062 -(ocesses started by it, on)-.18 F 1.497(systems that allow such contr) -144 108 R 3.997(ol. The)-.18 F F13.997 E F2(and)3.997 E F1 -3.997 E F2 1.496(options specify that the har)3.997 F 3.996(do)-.18 G -3.996(rs)-3.996 G(oft)-3.996 E .884(limit is set for the given r)144 120 -R(esour)-.18 E 3.384(ce. A)-.18 F(har)3.384 E 3.384(dl)-.18 G .884 +-.35 E/F1 10/Courier@0 SF(name)144 84 Q/F2 10/Palatino-Roman@0 SF .645 +(would not r)3.145 F(eturn)-.18 E/F3 10/Palatino-Italic@0 SF(\214le) +3.145 E F2 5.645(.I).35 G 3.145(fac)-5.645 G .645(ommand is hashed,) +-3.145 F/F4 10/Palatino-Bold@0 SF3.145 E F2(and)3.145 E F4 +3.145 E F2 .645(print the hashed value,)3.145 F .41 +(not necessarily the \214le that appears \214rst in)144 96 R/F5 9 +/Palatino-Bold@0 SF -.666(PA)2.911 G(TH)-.162 E/F6 9/Palatino-Roman@0 SF +(.)A F2 .411(If the)4.911 F F42.911 E F2 .411(option is used,) +2.911 F F4(type)2.911 E F2 .411(prints all)2.911 F .164 +(of the places that contain an executable named)144 108 R F3(name)2.664 +E F2 5.164(.T).35 G .164(his includes aliases and functions,)-5.164 F +.73(if and only if the)144 120 R F43.23 E F2 .73 +(option is not also used.)3.23 F .73 +(The table of hashed commands is not con-)5.73 F .498(sulted when using) +144 132 R F42.998 E F2 5.498(.T)C(he)-5.498 E F42.998 E F2 +.498(option suppr)2.998 F .498(esses shell function lookup, as with the) +-.18 F F4(com-)2.997 E(mand)144 144 Q F2(builtin.)4.557 E F4(type)7.057 +E F2 -.18(re)4.557 G 2.057(turns tr).18 F 2.057(ue if any of the ar)-.08 +F 2.057(guments ar)-.18 F 4.558(ef)-.18 G 2.058(ound, false if none ar) +-4.558 F(e)-.18 E(found.)144 156 Q F4(ulimit)108 172.8 Q F2([)2.5 E F4 +(\255SHacd\215mnpstuv)A F2([)2.5 E F3(limit)A F2(]])A(Pr)144 184.8 Q +.062(ovides contr)-.18 F .062(ol over the r)-.18 F(esour)-.18 E .061 +(ces available to the shell and to pr)-.18 F .061 +(ocesses started by it, on)-.18 F 1.496(systems that allow such contr) +144 196.8 R 3.996(ol. The)-.18 F F43.997 E F2(and)3.997 E F4 +3.997 E F2 1.497(options specify that the har)3.997 F 3.997(do)-.18 G +3.997(rs)-3.997 G(oft)-3.997 E .884(limit is set for the given r)144 +208.8 R(esour)-.18 E 3.384(ce. A)-.18 F(har)3.384 E 3.384(dl)-.18 G .884 (imit cannot be incr)-3.384 F .884(eased once it is set; a soft)-.18 F -.089(limit may be incr)144 132 R .088(eased up to the value of the har) --.18 F 2.588(dl)-.18 G 2.588(imit. If)-2.588 F(neither)2.588 E F1 -2.588 E F2(nor)2.588 E F12.588 E F2 .088(is speci\214ed,)2.588 F -.162(both the soft and har)144 144 R 2.662(dl)-.18 G .162(imits ar) --2.662 F 2.662(es)-.18 G 2.663(et. The)-2.662 F .163(value of)2.663 F F3 -(limit)2.803 E F2 .163(can be a number in the unit speci-)2.933 F .176 -(\214ed for the r)144 156 R(esour)-.18 E .176 -(ce or one of the special values)-.18 F F1(hard)2.676 E F2(,)A F1(soft) -2.675 E F2 2.675(,o)C(r)-2.675 E F1(unlimited)2.675 E F2 2.675(,w)C .175 -(hich stand for)-2.675 F .242(the curr)144 168 R .242(ent har)-.18 F -2.742(dl)-.18 G .242(imit, the curr)-2.742 F .243 -(ent soft limit, and no limit, r)-.18 F(espectively)-.18 E 5.243(.I) --1.11 G(f)-5.243 E F3(limit)2.883 E F2 .243(is omitted,)3.013 F .082 -(the curr)144 180 R .081(ent value of the soft limit of the r)-.18 F -(esour)-.18 E .081(ce is printed, unless the)-.18 F F12.581 E F2 -.081(option is given.)2.581 F .329(When mor)144 192 R 2.829(et)-.18 G -.329(han one r)-2.829 F(esour)-.18 E .329 -(ce is speci\214ed, the limit name and unit ar)-.18 F 2.83(ep)-.18 G .33 -(rinted befor)-2.83 F 2.83(et)-.18 G(he)-2.83 E 2.5(value. Other)144 204 -R(options ar)2.5 E 2.5(ei)-.18 G(nterpr)-2.5 E(eted as follows:)-.18 E -F1144 216 Q F2(All curr)24.94 E(ent limits ar)-.18 E 2.5(er)-.18 G -(eported)-2.68 E F1144 228 Q F2(The maximum size of cor)25.5 E 2.5 -<658c>-.18 G(les cr)-2.5 E(eated)-.18 E F1144 240 Q F2 -(The maximum size of a pr)23.83 E(ocess's data segment)-.18 E F1 -144 252 Q F2(The maximum size of \214les cr)26.05 E(eated by the shell) --.18 E F1144 264 Q F2 -(The maximum size that may be locked into memory)26.61 E F1144 276 -Q F2(The maximum r)21.05 E(esident set size)-.18 E F1144 288 Q F2 -.958(The maximum number of open \214le descriptors \(most systems do no\ -t allow this)23.83 F(value to be set\))180 300 Q F1144 312 Q F2 -(The pipe size in 512-byte blocks \(this may not be set\))23.83 E F1 -144 324 Q F2(The maximum stack size)25.5 E F1144 336 Q F2 -(The maximum amount of cpu time in seconds)26.61 E F1144 348 Q F2 -(The maximum number of pr)23.83 E(ocesses available to a single user) --.18 E F1144 360 Q F2 +.088(limit may be incr)144 220.8 R .088 +(eased up to the value of the har)-.18 F 2.588(dl)-.18 G 2.588(imit. If) +-2.588 F(neither)2.589 E F42.589 E F2(nor)2.589 E F42.589 E +F2 .089(is speci\214ed,)2.589 F .163(both the soft and har)144 232.8 R +2.663(dl)-.18 G .163(imits ar)-2.663 F 2.663(es)-.18 G 2.663(et. The) +-2.663 F .163(value of)2.663 F F3(limit)2.803 E F2 .162 +(can be a number in the unit speci-)2.933 F .175(\214ed for the r)144 +244.8 R(esour)-.18 E .175(ce or one of the special values)-.18 F F4 +(hard)2.676 E F2(,)A F4(soft)2.676 E F2 2.676(,o)C(r)-2.676 E F4 +(unlimited)2.676 E F2 2.676(,w)C .176(hich stand for)-2.676 F .243 +(the curr)144 256.8 R .243(ent har)-.18 F 2.743(dl)-.18 G .243 +(imit, the curr)-2.743 F .243(ent soft limit, and no limit, r)-.18 F +(espectively)-.18 E 5.242(.I)-1.11 G(f)-5.242 E F3(limit)2.882 E F2 .242 +(is omitted,)3.012 F .081(the curr)144 268.8 R .081 +(ent value of the soft limit of the r)-.18 F(esour)-.18 E .081 +(ce is printed, unless the)-.18 F F42.581 E F2 .082 +(option is given.)2.582 F .33(When mor)144 280.8 R 2.83(et)-.18 G .33 +(han one r)-2.83 F(esour)-.18 E .329 +(ce is speci\214ed, the limit name and unit ar)-.18 F 2.829(ep)-.18 G +.329(rinted befor)-2.829 F 2.829(et)-.18 G(he)-2.829 E 2.5(value. Other) +144 292.8 R(options ar)2.5 E 2.5(ei)-.18 G(nterpr)-2.5 E +(eted as follows:)-.18 E F4144 304.8 Q F2(All curr)24.94 E +(ent limits ar)-.18 E 2.5(er)-.18 G(eported)-2.68 E F4144 316.8 Q +F2(The maximum size of cor)25.5 E 2.5<658c>-.18 G(les cr)-2.5 E(eated) +-.18 E F4144 328.8 Q F2(The maximum size of a pr)23.83 E +(ocess's data segment)-.18 E F4144 340.8 Q F2 +(The maximum size of \214les cr)26.05 E(eated by the shell)-.18 E F4 +144 352.8 Q F2(The maximum size that may be locked into memory) +26.61 E F4144 364.8 Q F2(The maximum r)21.05 E(esident set size) +-.18 E F4144 376.8 Q F2 .958(The maximum number of open \214le de\ +scriptors \(most systems do not allow this)23.83 F(value to be set\))180 +388.8 Q F4144 400.8 Q F2 +(The pipe size in 512-byte blocks \(this may not be set\))23.83 E F4 +144 412.8 Q F2(The maximum stack size)25.5 E F4144 424.8 Q +F2(The maximum amount of cpu time in seconds)26.61 E F4144 436.8 Q +F2(The maximum number of pr)23.83 E(ocesses available to a single user) +-.18 E F4144 448.8 Q F2 (The maximum amount of virtual memory available to the shell)24.38 E(If) -144 376.8 Q F3(limit)4.15 E F2 1.51 -(is given, it is the new value of the speci\214ed r)4.28 F(esour)-.18 E -1.511(ce \(the)-.18 F F14.011 E F2 1.511(option is display)4.011 F -4.315(only\). If)144 388.8 R 1.815(no option is given, then)4.315 F F1 +144 465.6 Q F3(limit)4.151 E F2 1.511 +(is given, it is the new value of the speci\214ed r)4.281 F(esour)-.18 E +1.51(ce \(the)-.18 F F44.01 E F2 1.51(option is display)4.01 F +4.315(only\). If)144 477.6 R 1.815(no option is given, then)4.315 F F4 4.315 E F2 1.815(is assumed.)4.315 F -.92(Va)6.815 G 1.815 (lues ar).92 F 4.315(ei)-.18 G 4.315(n1)-4.315 G 1.815(024-byte incr) --4.315 F(ements,)-.18 E .972(except for)144 400.8 R F13.473 E F2 -3.473(,w)C .973(hich is in seconds,)-3.473 F F13.473 E F2 3.473 -(,w)C .973(hich is in units of 512-byte blocks, and)-3.473 F F1 -3.473 E F2(and)3.473 E F1144 412.8 Q F2 3.518(,w)C 1.018(hich ar) --3.518 F 3.518(eu)-.18 G 1.018(nscaled values.)-3.518 F 1.017(The r) -6.018 F 1.017(eturn status is 0 unless an invalid option or ar)-.18 F -(gu-)-.18 E(ment is supplied, or an err)144 424.8 Q -(or occurs while setting a new limit.)-.18 E F1(umask)108 441.6 Q F2([) -2.5 E F1A F2 2.5(][)C F1-2.5 E F2 2.5(][)C F3(mode)-2.5 E F2 -(])A .535(The user \214le-cr)144 453.6 R .535(eation mask is set to)-.18 -F F3(mode)3.035 E F2 5.535(.I).35 G(f)-5.535 E F3(mode)3.295 E F2 .536 -(begins with a digit, it is interpr)3.385 F .536(eted as)-.18 F 1.827 -(an octal number; otherwise it is interpr)144 465.6 R 1.826 -(eted as a symbolic mode mask similar to that)-.18 F .95(accepted by)144 -477.6 R F3(chmod)3.45 E F2 3.45(\(1\). If).33 F F3(mode)3.71 E F2 .951 -(is omitted, the curr)3.8 F .951(ent value of the mask is printed.)-.18 -F(The)5.951 E F1144 489.6 Q F2 .607(option causes the mask to be \ -printed in symbolic form; the default output is an octal)3.107 F(number) -144 501.6 Q 6.02(.I)-.74 G 3.52(ft)-6.02 G(he)-3.52 E F13.52 E F2 -1.02(option is supplied, and)3.52 F F3(mode)3.78 E F2 1.02 -(is omitted, the output is in a form that)3.87 F .237(may be r)144 513.6 -R .237(eused as input.)-.18 F .237(The r)5.237 F .236 +-4.315 F(ements,)-.18 E .973(except for)144 489.6 R F43.473 E F2 +3.473(,w)C .973(hich is in seconds,)-3.473 F F43.473 E F2 3.473 +(,w)C .973(hich is in units of 512-byte blocks, and)-3.473 F F4 +3.473 E F2(and)3.472 E F4144 501.6 Q F2 3.517(,w)C 1.017(hich ar) +-3.517 F 3.517(eu)-.18 G 1.017(nscaled values.)-3.517 F 1.017(The r) +6.017 F 1.018(eturn status is 0 unless an invalid option or ar)-.18 F +(gu-)-.18 E(ment is supplied, or an err)144 513.6 Q +(or occurs while setting a new limit.)-.18 E F4(umask)108 530.4 Q F2([) +2.5 E F4A F2 2.5(][)C F4-2.5 E F2 2.5(][)C F3(mode)-2.5 E F2 +(])A .536(The user \214le-cr)144 542.4 R .536(eation mask is set to)-.18 +F F3(mode)3.035 E F2 5.535(.I).35 G(f)-5.535 E F3(mode)3.295 E F2 .535 +(begins with a digit, it is interpr)3.385 F .535(eted as)-.18 F 1.826 +(an octal number; otherwise it is interpr)144 554.4 R 1.827 +(eted as a symbolic mode mask similar to that)-.18 F .951(accepted by) +144 566.4 R F3(chmod)3.451 E F2 3.451(\(1\). If).33 F F3(mode)3.711 E F2 +.951(is omitted, the curr)3.801 F .95(ent value of the mask is printed.) +-.18 F(The)5.95 E F4144 578.4 Q F2 .607(option causes the mask to\ + be printed in symbolic form; the default output is an octal)3.106 F +(number)144 590.4 Q 6.02(.I)-.74 G 3.52(ft)-6.02 G(he)-3.52 E F4 +3.52 E F2 1.02(option is supplied, and)3.52 F F3(mode)3.78 E F2 1.02 +(is omitted, the output is in a form that)3.87 F .236(may be r)144 602.4 +R .236(eused as input.)-.18 F .236(The r)5.236 F .237 (eturn status is 0 if the mode was successfully changed or if)-.18 F(no) -144 525.6 Q F3(mode)2.5 E F2(ar)2.5 E -(gument was supplied, and false otherwise.)-.18 E F1(unalias)108 542.4 Q -F2<5bad>2.5 E F1(a)A F2 2.5(][)C F3(name)-2.5 E F2(...])2.5 E .718 -(Remove each)144 554.4 R F3(name)3.218 E F2(fr)3.218 E .719 -(om the list of de\214ned aliases.)-.18 F(If)5.719 E F13.219 E F2 -.719(is supplied, all alias de\214nitions)3.219 F(ar)144 566.4 Q 2.5(er) +144 614.4 Q F3(mode)2.5 E F2(ar)2.5 E +(gument was supplied, and false otherwise.)-.18 E F4(unalias)108 631.2 Q +F2<5bad>2.5 E F4(a)A F2 2.5(][)C F3(name)-2.5 E F2(...])2.5 E .719 +(Remove each)144 643.2 R F3(name)3.219 E F2(fr)3.219 E .719 +(om the list of de\214ned aliases.)-.18 F(If)5.719 E F43.219 E F2 +.718(is supplied, all alias de\214nitions)3.218 F(ar)144 655.2 Q 2.5(er) -.18 G 2.5(emoved. The)-2.68 F -.18(re)2.5 G(turn value is tr).18 E (ue unless a supplied)-.08 E F3(name)2.76 E F2 -(is not a de\214ned alias.)2.85 E F1(unset)108 583.2 Q F2<5bad>2.5 E F1 -(fv)A F2 2.5(][)C F3(name)-2.5 E F2(...])2.5 E 1.61(For each)144 595.2 R +(is not a de\214ned alias.)2.85 E F4(unset)108 672 Q F2<5bad>2.5 E F4 +(fv)A F2 2.5(][)C F3(name)-2.5 E F2(...])2.5 E 1.61(For each)144 684 R F3(name)4.11 E F2 4.11(,r).35 G 1.61(emove the corr)-4.29 F 1.61 (esponding variable or function.)-.18 F 1.61(If no options ar)6.61 F -4.11(es)-.18 G(up-)-4.11 E .473(plied, or the)144 607.2 R F12.973 -E F2 .473(option is given, each)2.973 F F3(name)3.233 E F2 -.18(re)3.323 -G .474(fers to a shell variable.).18 F .474(Read-only variables)5.474 F -.32(may not be unset.)144 619.2 R(If)5.32 E F12.82 E F2 .32 +4.11(es)-.18 G(up-)-4.11 E .474(plied, or the)144 696 R F42.974 E +F2 .473(option is given, each)2.974 F F3(name)3.233 E F2 -.18(re)3.323 G +.473(fers to a shell variable.).18 F .473(Read-only variables)5.473 F +.32(may not be unset.)144 708 R(If)5.32 E F42.82 E F2 .32 (is speci\214ed, each)2.82 F F3(name)3.08 E F2 -.18(re)3.17 G .32 (fers to a shell function, and the function).18 F .405 -(de\214nition is r)144 631.2 R 2.905(emoved. Each)-.18 F .405 +(de\214nition is r)144 720 R 2.905(emoved. Each)-.18 F .405 (unset variable or function is r)2.905 F .405(emoved fr)-.18 F .405 -(om the envir)-.18 F(onment)-.18 E 1.475(passed to subsequent commands.) -144 643.2 R 1.475(If any of)6.475 F/F4 9/Palatino-Bold@0 SF(RANDOM)3.975 -E/F5 9/Palatino-Roman@0 SF(,)A F4(SECONDS)3.725 E F5(,)A F4(LINENO)3.724 -E F5(,)A F4(HISTCMD)3.724 E F5(,)A F4(FUNCNAME)144 655.2 Q F5(,)A F4 -(GROUPS)2.803 E F5(,)A F2(or)2.803 E F4(DIRST)3.053 E(ACK)-.828 E F2(ar) -2.803 E 3.053(eu)-.18 G .553(nset, they lose their special pr)-3.053 F -.553(operties, even if)-.18 F(they ar)144 667.2 Q 2.5(es)-.18 G -(ubsequently r)-2.5 E 2.5(eset. The)-.18 F(exit status is tr)2.5 E -(ue unless a)-.08 E F3(name)2.76 E F2(is r)2.85 E(eadonly)-.18 E(.)-1.11 -E F1(wait)108 684 Q F2([)2.5 E F3 2.5(n.)C(..)-2.5 E F2(])A -.92(Wa)144 -696 S .016(it for each speci\214ed pr).92 F .016(ocess and r)-.18 F .016 -(eturn its termination status.)-.18 F(Each)5.016 E F3(n)2.776 E F2 .016 -(may be a pr)2.596 F(ocess)-.18 E 1.733 -(ID or a job speci\214cation; if a job spec is given, all pr)144 708 R -1.733(ocesses in that job's pipeline ar)-.18 F(e)-.18 E 1.015 -(waited for)144 720 R 6.015(.I)-.74 G(f)-6.015 E F3(n)3.775 E F2 1.015 -(is not given, all curr)3.595 F 1.014(ently active child pr)-.18 F 1.014 -(ocesses ar)-.18 F 3.514(ew)-.18 G 1.014(aited for)-3.514 F 3.514(,a) --.74 G 1.014(nd the)-3.514 F F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G -124.42(l2).15 G(005 Feb 11)-124.42 E(62)199 E 0 Cg EP +(om the envir)-.18 F(onment)-.18 E F0(GNU Bash-3.1-de)72 768 Q -.15(ve) +-.25 G 124.42(l2).15 G(005 Feb 19)-124.42 E(62)199 E 0 Cg EP %%Page: 63 64 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E/F1 10/Palatino-Roman@0 SF -.18(re)144 84 S .693 -(turn status is zer).18 F 3.193(o. If)-.18 F/F2 10/Palatino-Italic@0 SF -(n)3.453 E F1 .693(speci\214es a non-existent pr)3.273 F .693 -(ocess or job, the r)-.18 F .694(eturn status is 127.)-.18 F -(Otherwise, the r)144 96 Q +-.35 E/F1 10/Palatino-Roman@0 SF 1.474(passed to subsequent commands.) +144 84 R 1.475(If any of)6.475 F/F2 9/Palatino-Bold@0 SF(RANDOM)3.975 E +/F3 9/Palatino-Roman@0 SF(,)A F2(SECONDS)3.725 E F3(,)A F2(LINENO)3.725 +E F3(,)A F2(HISTCMD)3.725 E F3(,)A F2(FUNCNAME)144 96 Q F3(,)A F2 +(GROUPS)2.804 E F3(,)A F1(or)2.803 E F2(DIRST)3.053 E(ACK)-.828 E F1(ar) +2.803 E 3.053(eu)-.18 G .553(nset, they lose their special pr)-3.053 F +.553(operties, even if)-.18 F(they ar)144 108 Q 2.5(es)-.18 G +(ubsequently r)-2.5 E 2.5(eset. The)-.18 F(exit status is tr)2.5 E +(ue unless a)-.08 E/F4 10/Palatino-Italic@0 SF(name)2.76 E F1(is r)2.85 +E(eadonly)-.18 E(.)-1.11 E/F5 10/Palatino-Bold@0 SF(wait)108 124.8 Q F1 +([)2.5 E F4 2.5(n.)C(..)-2.5 E F1(])A -.92(Wa)144 136.8 S .016 +(it for each speci\214ed pr).92 F .016(ocess and r)-.18 F .016 +(eturn its termination status.)-.18 F(Each)5.016 E F4(n)2.776 E F1 .016 +(may be a pr)2.596 F(ocess)-.18 E 1.733 +(ID or a job speci\214cation; if a job spec is given, all pr)144 148.8 R +1.733(ocesses in that job's pipeline ar)-.18 F(e)-.18 E 1.014 +(waited for)144 160.8 R 6.014(.I)-.74 G(f)-6.014 E F4(n)3.774 E F1 1.014 +(is not given, all curr)3.594 F 1.014(ently active child pr)-.18 F 1.015 +(ocesses ar)-.18 F 3.515(ew)-.18 G 1.015(aited for)-3.515 F 3.515(,a) +-.74 G 1.015(nd the)-3.515 F -.18(re)144 172.8 S .694 +(turn status is zer).18 F 3.193(o. If)-.18 F F4(n)3.453 E F1 .693 +(speci\214es a non-existent pr)3.273 F .693(ocess or job, the r)-.18 F +.693(eturn status is 127.)-.18 F(Otherwise, the r)144 184.8 Q (eturn status is the exit status of the last pr)-.18 E -(ocess or job waited for)-.18 E(.)-.74 E/F3 10.95/Palatino-Bold@0 SF -(RESTRICTED SHELL)72 112.8 Q F1(If)108 124.8 Q/F4 10/Palatino-Bold@0 SF -(bash)4.639 E F1 2.139(is started with the name)4.639 F F4(rbash)4.638 E -F1 4.638(,o)C 4.638(rt)-4.638 G(he)-4.638 E F44.638 E F1 2.138 +(ocess or job waited for)-.18 E(.)-.74 E/F6 10.95/Palatino-Bold@0 SF +(RESTRICTED SHELL)72 201.6 Q F1(If)108 213.6 Q F5(bash)4.638 E F1 2.138 +(is started with the name)4.638 F F5(rbash)4.638 E F1 4.638(,o)C 4.638 +(rt)-4.638 G(he)-4.638 E F54.638 E F1 2.139 (option is supplied at invocation, the shell)4.638 F .618(becomes r)108 -136.8 R 3.118(estricted. A)-.18 F -.18(re)3.118 G .618 +225.6 R 3.118(estricted. A)-.18 F -.18(re)3.118 G .618 (stricted shell is used to set up an envir).18 F .618(onment mor)-.18 F 3.118(ec)-.18 G(ontr)-3.118 E .618(olled than the)-.18 F(standar)108 -148.8 Q 4.198(ds)-.18 G 4.198(hell. It)-4.198 F 1.697 -(behaves identically to)4.197 F F4(bash)4.197 E F1 1.697 -(with the exception that the following ar)4.197 F 4.197(ed)-.18 G(isal-) --4.197 E(lowed or not performed:)108 160.8 Q 29.94<8363>108 177.6 S -(hanging dir)-29.94 E(ectories with)-.18 E F4(cd)2.5 E F1 29.94<8373>108 -194.4 S(etting or unsetting the values of)-29.94 E F4(SHELL)2.5 E F1(,)A -F4 -.74(PA)2.5 G(TH)-.18 E F1(,)A F4(ENV)2.5 E F1 2.5(,o)C(r)-2.5 E F4 -(BASH_ENV)2.5 E F1 29.94<8373>108 211.2 S -(pecifying command names containing)-29.94 E F4(/)2.5 E F1 29.94<8373> -108 228 S(pecifying a \214le name containing a)-29.94 E F4(/)2.5 E F1 -(as an ar)2.5 E(gument to the)-.18 E F4(.)2.5 E F1(builtin command)5 E -29.94<8353>108 244.8 S 1.564 +237.6 Q 4.197(ds)-.18 G 4.197(hell. It)-4.197 F 1.697 +(behaves identically to)4.197 F F5(bash)4.197 E F1 1.697 +(with the exception that the following ar)4.197 F 4.198(ed)-.18 G(isal-) +-4.198 E(lowed or not performed:)108 249.6 Q 29.94<8363>108 266.4 S +(hanging dir)-29.94 E(ectories with)-.18 E F5(cd)2.5 E F1 29.94<8373>108 +283.2 S(etting or unsetting the values of)-29.94 E F5(SHELL)2.5 E F1(,)A +F5 -.74(PA)2.5 G(TH)-.18 E F1(,)A F5(ENV)2.5 E F1 2.5(,o)C(r)-2.5 E F5 +(BASH_ENV)2.5 E F1 29.94<8373>108 300 S +(pecifying command names containing)-29.94 E F5(/)2.5 E F1 29.94<8373> +108 316.8 S(pecifying a \214le name containing a)-29.94 E F5(/)2.5 E F1 +(as an ar)2.5 E(gument to the)-.18 E F5(.)2.5 E F1(builtin command)5 E +29.94<8353>108 333.6 S 1.565 (pecifying a \214lename containing a slash as an ar)-29.94 F 1.565 -(gument to the)-.18 F F44.065 E F1 1.565(option to the)4.065 F F4 -(hash)4.065 E F1(builtin command)144 256.8 Q 29.94<8369>108 273.6 S +(gument to the)-.18 F F54.064 E F1 1.564(option to the)4.064 F F5 +(hash)4.064 E F1(builtin command)144 345.6 Q 29.94<8369>108 362.4 S (mporting function de\214nitions fr)-29.94 E(om the shell envir)-.18 E -(onment at startup)-.18 E 29.94<8370>108 290.4 S(arsing the value of) --29.94 E F4(SHELLOPTS)2.5 E F1(fr)2.5 E(om the shell envir)-.18 E -(onment at startup)-.18 E 29.94<8372>108 307.2 S(edir)-30.12 E +(onment at startup)-.18 E 29.94<8370>108 379.2 S(arsing the value of) +-29.94 E F5(SHELLOPTS)2.5 E F1(fr)2.5 E(om the shell envir)-.18 E +(onment at startup)-.18 E 29.94<8372>108 396 S(edir)-30.12 E (ecting output using the >, >|, <>, >&, &>, and >> r)-.18 E(edir)-.18 E -(ection operators)-.18 E 29.94<8375>108 324 S(sing the)-29.94 E F4(exec) -2.5 E F1(builtin command to r)2.5 E -(eplace the shell with another command)-.18 E 29.94<8361>108 340.8 S -1.208(dding or deleting builtin commands with the)-29.94 F F43.708 -E F1(and)3.708 E F43.708 E F1 1.208(options to the)3.708 F F4 -(enable)3.707 E F1(builtin)3.707 E(command)144 352.8 Q 29.94<8355>108 -369.6 S(sing the)-29.94 E F4(enable)2.5 E F1 +(ection operators)-.18 E 29.94<8375>108 412.8 S(sing the)-29.94 E F5 +(exec)2.5 E F1(builtin command to r)2.5 E +(eplace the shell with another command)-.18 E 29.94<8361>108 429.6 S +1.208(dding or deleting builtin commands with the)-29.94 F F53.708 +E F1(and)3.708 E F53.708 E F1 1.208(options to the)3.708 F F5 +(enable)3.708 E F1(builtin)3.708 E(command)144 441.6 Q 29.94<8355>108 +458.4 S(sing the)-29.94 E F5(enable)2.5 E F1 (builtin command to enable disabled shell builtins)2.5 E 29.94<8373>108 -386.4 S(pecifying the)-29.94 E F42.5 E F1(option to the)2.5 E F4 -(command)2.5 E F1(builtin command)2.5 E 29.94<8374>108 403.2 S -(urning of)-29.94 E 2.5(fr)-.18 G(estricted mode with)-2.68 E F4(set +r) -2.5 E F1(or)2.5 E F4(set +o restricted)2.5 E F1(.)A(These r)108 420 Q +475.2 S(pecifying the)-29.94 E F52.5 E F1(option to the)2.5 E F5 +(command)2.5 E F1(builtin command)2.5 E 29.94<8374>108 492 S(urning of) +-29.94 E 2.5(fr)-.18 G(estricted mode with)-2.68 E F5(set +r)2.5 E F1 +(or)2.5 E F5(set +o restricted)2.5 E F1(.)A(These r)108 508.8 Q (estrictions ar)-.18 E 2.5(ee)-.18 G(nfor)-2.5 E (ced after any startup \214les ar)-.18 E 2.5(er)-.18 G(ead.)-2.68 E 1.694 (When a command that is found to be a shell script is executed \(see)108 -436.8 R/F5 9/Palatino-Bold@0 SF 1.694(COMMAND EXECUTION)4.194 F F1 -(above\),)108 448.8 Q F4(rbash)2.5 E F1(turns of)2.5 E 2.5(fa)-.18 G -(ny r)-2.5 E(estrictions in the shell spawned to execute the script.) --.18 E F3(SEE ALSO)72 465.6 Q F2(Bash Refer)108 477.6 Q(ence Manual)-.18 -E F1 2.5(,B)C(rian Fox and Chet Ramey)-2.5 E F2 -(The Gnu Readline Library)108 489.6 Q F1 2.5(,B)C -(rian Fox and Chet Ramey)-2.5 E F2(The Gnu History Library)108 501.6 Q -F1 2.5(,B)C(rian Fox and Chet Ramey)-2.5 E F2(Portable Operating System\ - Interface \(POSIX\) Part 2: Shell and Utilities)108 513.6 Q F1 2.5(,I)C -(EEE)-2.5 E F2(sh)108 525.6 Q F1(\(1\),)A F2(ksh)2.5 E F1(\(1\),)A F2 -(csh)2.5 E F1(\(1\))A F2(emacs)108 537.6 Q F1(\(1\),)A F2(vi)2.5 E F1 -(\(1\))A F2 -.18(re)108 549.6 S(adline).18 E F1(\(3\))A F3(FILES)72 -566.4 Q F2(/bin/bash)109.666 578.4 Q F1(The)144 590.4 Q F4(bash)2.5 E F1 -(executable)2.5 E F2(/etc/pr)109.666 602.4 Q(o\214le)-.18 E F1 +525.6 R F2 1.694(COMMAND EXECUTION)4.194 F F1(above\),)108 537.6 Q F5 +(rbash)2.5 E F1(turns of)2.5 E 2.5(fa)-.18 G(ny r)-2.5 E +(estrictions in the shell spawned to execute the script.)-.18 E F6 +(SEE ALSO)72 554.4 Q F4(Bash Refer)108 566.4 Q(ence Manual)-.18 E F1 2.5 +(,B)C(rian Fox and Chet Ramey)-2.5 E F4(The Gnu Readline Library)108 +578.4 Q F1 2.5(,B)C(rian Fox and Chet Ramey)-2.5 E F4 +(The Gnu History Library)108 590.4 Q F1 2.5(,B)C +(rian Fox and Chet Ramey)-2.5 E F4(Portable Operating System Interface \ +\(POSIX\) Part 2: Shell and Utilities)108 602.4 Q F1 2.5(,I)C(EEE)-2.5 E +F4(sh)108 614.4 Q F1(\(1\),)A F4(ksh)2.5 E F1(\(1\),)A F4(csh)2.5 E F1 +(\(1\))A F4(emacs)108 626.4 Q F1(\(1\),)A F4(vi)2.5 E F1(\(1\))A F4 -.18 +(re)108 638.4 S(adline).18 E F1(\(3\))A F6(FILES)72 655.2 Q F4 +(/bin/bash)109.666 667.2 Q F1(The)144 679.2 Q F5(bash)2.5 E F1 +(executable)2.5 E F4(/etc/pr)109.666 691.2 Q(o\214le)-.18 E F1 (The systemwide initialization \214le, executed for login shells)144 -614.4 Q F2(~/.bash_pr)109.666 626.4 Q(o\214le)-.18 E F1 -(The personal initialization \214le, executed for login shells)144 638.4 -Q F2(~/.bashr)109.666 650.4 Q(c)-.18 E F1(The individual per)144 662.4 Q -(-interactive-shell startup \214le)-.18 E F2(~/.bash_logout)109.666 -674.4 Q F1(The individual login shell cleanup \214le, executed when a l\ -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 -124.42(l2).15 G(005 Feb 11)-124.42 E(63)199 E 0 Cg EP +703.2 Q F0(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G +(005 Feb 19)-124.42 E(63)199 E 0 Cg EP %%Page: 64 65 %%BeginPageSetup BP %%EndPageSetup /F0 10/Times-Roman@0 SF -.35(BA)72 48 S 389.54(SH\(1\) B).35 F(ASH\(1\)) --.35 E/F1 10.95/Palatino-Bold@0 SF(AUTHORS)72 84 Q/F2 10 -/Palatino-Roman@0 SF(Brian Fox, Fr)108 96 Q(ee Softwar)-.18 E 2.5(eF) --.18 G(oundation)-2.5 E(bfox@gnu.or)108 108 Q(g)-.18 E(Chet Ramey)108 -124.8 Q 2.5(,C)-1.11 G(ase W)-2.5 E(estern Reserve University)-.92 E -(chet@po.CWRU.Edu)108 136.8 Q F1(BUG REPOR)72 153.6 Q(TS)-.602 E F2 .481 -(If you \214nd a bug in)108 165.6 R/F3 10/Palatino-Bold@0 SF(bash,)2.981 -E F2 .481(you should r)2.981 F .481(eport it.)-.18 F .481 -(But \214rst, you should make sur)5.481 F 2.981(et)-.18 G .481(hat it r) --2.981 F .481(eally is a)-.18 F .459 -(bug, and that it appears in the latest version of)108 177.6 R F3(bash) -2.959 E F2 5.459(.T)C .459(he latest version is always available fr) --5.459 F(om)-.18 E/F4 10/Palatino-Italic@0 SF(ftp://ftp.gnu.or)108 189.6 -Q(g/pub/bash/)-.18 E F2(.)A .558 -(Once you have determined that a bug actually exists, use the)108 206.4 -R F4(bashbug)3.188 E F2 .558(command to submit a bug)3.538 F -.18(re)108 -218.4 S 3.161(port. If).18 F .662(you have a \214x, you ar)3.161 F 3.162 -(ee)-.18 G .662(ncouraged to mail that as well!)-3.162 F .662 -(Suggestions and `philosophi-)5.662 F 3.731(cal' bug r)108 230.4 R 3.731 -(eports may be mailed to)-.18 F F4(bug-bash@gnu.or)6.231 E(g)-.18 E F2 -3.73(or posted to the Usenet newsgr)6.231 F(oup)-.18 E F3(gnu.bash.bug) -108 242.4 Q F2(.)A(ALL bug r)108 259.2 Q(eports should include:)-.18 E -(The version number of)108 276 Q F3(bash)2.5 E F2(The har)108 288 Q +-.35 E/F1 10/Palatino-Italic@0 SF(~/.bash_pr)109.666 84 Q(o\214le)-.18 E +/F2 10/Palatino-Roman@0 SF +(The personal initialization \214le, executed for login shells)144 96 Q +F1(~/.bashr)109.666 108 Q(c)-.18 E F2(The individual per)144 120 Q +(-interactive-shell startup \214le)-.18 E F1(~/.bash_logout)109.666 132 +Q F2(The individual login shell cleanup \214le, executed when a login s\ +hell exits)144 144 Q F1(~/.inputr)109.666 156 Q(c)-.18 E F2(Individual) +144 168 Q F1 -.18(re)2.5 G(adline).18 E F2(initialization \214le)2.5 E +/F3 10.95/Palatino-Bold@0 SF(AUTHORS)72 184.8 Q F2(Brian Fox, Fr)108 +196.8 Q(ee Softwar)-.18 E 2.5(eF)-.18 G(oundation)-2.5 E(bfox@gnu.or)108 +208.8 Q(g)-.18 E(Chet Ramey)108 225.6 Q 2.5(,C)-1.11 G(ase W)-2.5 E +(estern Reserve University)-.92 E(chet@po.CWRU.Edu)108 237.6 Q F3 +(BUG REPOR)72 254.4 Q(TS)-.602 E F2 .481(If you \214nd a bug in)108 +266.4 R/F4 10/Palatino-Bold@0 SF(bash,)2.981 E F2 .481(you should r) +2.981 F .481(eport it.)-.18 F .481(But \214rst, you should make sur) +5.481 F 2.981(et)-.18 G .481(hat it r)-2.981 F .481(eally is a)-.18 F +.459(bug, and that it appears in the latest version of)108 278.4 R F4 +(bash)2.959 E F2 5.459(.T)C .459 +(he latest version is always available fr)-5.459 F(om)-.18 E F1 +(ftp://ftp.gnu.or)108 290.4 Q(g/pub/bash/)-.18 E F2(.)A .558 +(Once you have determined that a bug actually exists, use the)108 307.2 +R F1(bashbug)3.188 E F2 .558(command to submit a bug)3.538 F -.18(re)108 +319.2 S 3.162(port. If).18 F .662(you have a \214x, you ar)3.162 F 3.162 +(ee)-.18 G .662(ncouraged to mail that as well!)-3.162 F .661 +(Suggestions and `philosophi-)5.662 F 3.73(cal' bug r)108 331.2 R 3.731 +(eports may be mailed to)-.18 F F1(bug-bash@gnu.or)6.231 E(g)-.18 E F2 +3.731(or posted to the Usenet newsgr)6.231 F(oup)-.18 E F4(gnu.bash.bug) +108 343.2 Q F2(.)A(ALL bug r)108 360 Q(eports should include:)-.18 E +(The version number of)108 376.8 Q F4(bash)2.5 E F2(The har)108 388.8 Q (dwar)-.18 E 2.5(ea)-.18 G(nd operating system)-2.5 E -(The compiler used to compile)108 300 Q 2.5(Ad)108 312 S -(escription of the bug behaviour)-2.5 E 2.5(As)108 324 S +(The compiler used to compile)108 400.8 Q 2.5(Ad)108 412.8 S +(escription of the bug behaviour)-2.5 E 2.5(As)108 424.8 S (hort script or `r)-2.5 E(ecipe' which exer)-.18 E(cises the bug)-.18 E -F4(bashbug)108.13 340.8 Q F2 1.316(inserts the \214rst thr)4.296 F 1.316 +F1(bashbug)108.13 441.6 Q F2 1.316(inserts the \214rst thr)4.296 F 1.316 (ee items automatically into the template it pr)-.18 F 1.316 -(ovides for \214ling a bug)-.18 F -.18(re)108 352.8 S(port.).18 E 7.698 -(Comments and bug r)108 369.6 R 7.697 -(eports concerning this manual page should be dir)-.18 F 7.697(ected to) --.18 F F4(chet@po.CWRU.Edu)108 381.6 Q F2(.).06 E F1(BUGS)72 398.4 Q F2 -(It's too big and too slow)108 410.4 Q(.)-.92 E(Ther)108 427.2 Q 2.832 -(ea)-.18 G .692 -.18(re s)-2.832 H .332(ome subtle dif).18 F(fer)-.18 E -.332(ences between)-.18 F F3(bash)2.832 E F2 .332 -(and traditional versions of)2.832 F F3(sh)2.832 E F2 2.832(,m)C .333 -(ostly because of)-2.832 F(the)108 439.2 Q/F5 9/Palatino-Bold@0 SF -(POSIX)2.5 E F2(speci\214cation.)2.25 E(Aliases ar)108 456 Q 2.5(ec)-.18 -G(onfusing in some uses.)-2.5 E(Shell builtin commands and functions ar) -108 472.8 Q 2.5(en)-.18 G(ot stoppable/r)-2.5 E(estartable.)-.18 E .463 +(ovides for \214ling a bug)-.18 F -.18(re)108 453.6 S(port.).18 E 7.697 +(Comments and bug r)108 470.4 R 7.697 +(eports concerning this manual page should be dir)-.18 F 7.698(ected to) +-.18 F F1(chet@po.CWRU.Edu)108 482.4 Q F2(.).06 E F3(BUGS)72 499.2 Q F2 +(It's too big and too slow)108 511.2 Q(.)-.92 E(Ther)108 528 Q 2.833(ea) +-.18 G .693 -.18(re s)-2.833 H .332(ome subtle dif).18 F(fer)-.18 E .332 +(ences between)-.18 F F4(bash)2.832 E F2 .332 +(and traditional versions of)2.832 F F4(sh)2.832 E F2 2.832(,m)C .332 +(ostly because of)-2.832 F(the)108 540 Q/F5 9/Palatino-Bold@0 SF(POSIX) +2.5 E F2(speci\214cation.)2.25 E(Aliases ar)108 556.8 Q 2.5(ec)-.18 G +(onfusing in some uses.)-2.5 E(Shell builtin commands and functions ar) +108 573.6 Q 2.5(en)-.18 G(ot stoppable/r)-2.5 E(estartable.)-.18 E .462 (Compound commands and command sequences of the form `a ; b ; c' ar)108 -489.6 R 2.962(en)-.18 G .462(ot handled gracefully)-2.962 F 1.256 -(when pr)108 501.6 R 1.257(ocess suspension is attempted.)-.18 F 1.257 +590.4 R 2.963(en)-.18 G .463(ot handled gracefully)-2.963 F 1.257 +(when pr)108 602.4 R 1.257(ocess suspension is attempted.)-.18 F 1.257 (When a pr)6.257 F 1.257(ocess is stopped, the shell immediately exe-) --.18 F .374(cutes the next command in the sequence.)108 513.6 R .373 -(It suf)5.373 F .373(\214ces to place the sequence of commands between) --.18 F(par)108 525.6 Q(entheses to for)-.18 E -(ce it into a subshell, which may be stopped as a unit.)-.18 E .95 -(Commands inside of)108 542.4 R F3($\()3.451 E F2(...)A F3(\))A F2 .951 +-.18 F .373(cutes the next command in the sequence.)108 614.4 R .373 +(It suf)5.373 F .374(\214ces to place the sequence of commands between) +-.18 F(par)108 626.4 Q(entheses to for)-.18 E +(ce it into a subshell, which may be stopped as a unit.)-.18 E .951 +(Commands inside of)108 643.2 R F4($\()3.451 E F2(...)A F4(\))A F2 .951 (command substitution ar)3.451 F 3.451(en)-.18 G .951 -(ot parsed until substitution is attempted.)-3.451 F 2.132 -(This will delay err)108 554.4 R 2.132(or r)-.18 F 2.131 -(eporting until some time after the command is enter)-.18 F 4.631 -(ed. For)-.18 F(example,)4.631 E .43(unmatched par)108 566.4 R .431 +(ot parsed until substitution is attempted.)-3.451 F 2.131 +(This will delay err)108 655.2 R 2.131(or r)-.18 F 2.131 +(eporting until some time after the command is enter)-.18 F 4.632 +(ed. For)-.18 F(example,)4.632 E .431(unmatched par)108 667.2 R .431 (entheses, even inside shell comments, will r)-.18 F .431(esult in err) --.18 F .431(or messages while the con-)-.18 F(str)108 578.4 Q +-.18 F .43(or messages while the con-)-.18 F(str)108 679.2 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 124.42(l2).15 G(005 Feb 11) +(Array variables may not \(yet\) be exported.)108 696 Q F0 +(GNU Bash-3.1-de)72 768 Q -.15(ve)-.25 G 124.42(l2).15 G(005 Feb 19) -124.42 E(64)199 E 0 Cg EP %%Trailer end diff --git a/doc/bashref.aux b/doc/bashref.aux index 0765c78b1..b991b41a5 100644 --- a/doc/bashref.aux +++ b/doc/bashref.aux @@ -65,7 +65,7 @@ @xrdef{Command Grouping-pg}{13} @xrdef{Command Grouping-snt}{Section@tie 3.2.4.3} @xrdef{Shell Functions-title}{Shell Functions} -@xrdef{Shell Functions-pg}{13} +@xrdef{Shell Functions-pg}{14} @xrdef{Shell Functions-snt}{Section@tie 3.3} @xrdef{Shell Parameters-title}{Shell Parameters} @xrdef{Shell Parameters-pg}{15} @@ -74,10 +74,10 @@ @xrdef{Positional Parameters-pg}{15} @xrdef{Positional Parameters-snt}{Section@tie 3.4.1} @xrdef{Special Parameters-title}{Special Parameters} -@xrdef{Special Parameters-pg}{15} +@xrdef{Special Parameters-pg}{16} @xrdef{Special Parameters-snt}{Section@tie 3.4.2} @xrdef{Shell Expansions-title}{Shell Expansions} -@xrdef{Shell Expansions-pg}{16} +@xrdef{Shell Expansions-pg}{17} @xrdef{Shell Expansions-snt}{Section@tie 3.5} @xrdef{Brace Expansion-title}{Brace Expansion} @xrdef{Brace Expansion-pg}{17} @@ -92,7 +92,7 @@ @xrdef{Command Substitution-pg}{21} @xrdef{Command Substitution-snt}{Section@tie 3.5.4} @xrdef{Arithmetic Expansion-title}{Arithmetic Expansion} -@xrdef{Arithmetic Expansion-pg}{21} +@xrdef{Arithmetic Expansion-pg}{22} @xrdef{Arithmetic Expansion-snt}{Section@tie 3.5.5} @xrdef{Process Substitution-title}{Process Substitution} @xrdef{Process Substitution-pg}{22} @@ -110,7 +110,7 @@ @xrdef{Quote Removal-pg}{24} @xrdef{Quote Removal-snt}{Section@tie 3.5.9} @xrdef{Redirections-title}{Redirections} -@xrdef{Redirections-pg}{24} +@xrdef{Redirections-pg}{25} @xrdef{Redirections-snt}{Section@tie 3.6} @xrdef{Executing Commands-title}{Executing Commands} @xrdef{Executing Commands-pg}{28} @@ -161,209 +161,209 @@ @xrdef{Bash Variables-pg}{55} @xrdef{Bash Variables-snt}{Section@tie 5.2} @xrdef{Bash Features-title}{Bash Features} -@xrdef{Bash Features-pg}{63} +@xrdef{Bash Features-pg}{65} @xrdef{Bash Features-snt}{Chapter@tie 6} @xrdef{Invoking Bash-title}{Invoking Bash} -@xrdef{Invoking Bash-pg}{63} +@xrdef{Invoking Bash-pg}{65} @xrdef{Invoking Bash-snt}{Section@tie 6.1} @xrdef{Bash Startup Files-title}{Bash Startup Files} -@xrdef{Bash Startup Files-pg}{65} +@xrdef{Bash Startup Files-pg}{67} @xrdef{Bash Startup Files-snt}{Section@tie 6.2} @xrdef{Interactive Shells-title}{Interactive Shells} -@xrdef{Interactive Shells-pg}{67} +@xrdef{Interactive Shells-pg}{69} @xrdef{Interactive Shells-snt}{Section@tie 6.3} @xrdef{What is an Interactive Shell?-title}{What is an Interactive Shell?} -@xrdef{What is an Interactive Shell?-pg}{67} +@xrdef{What is an Interactive Shell?-pg}{69} @xrdef{What is an Interactive Shell?-snt}{Section@tie 6.3.1} @xrdef{Is this Shell Interactive?-title}{Is this Shell Interactive?} -@xrdef{Is this Shell Interactive?-pg}{67} +@xrdef{Is this Shell Interactive?-pg}{69} @xrdef{Is this Shell Interactive?-snt}{Section@tie 6.3.2} @xrdef{Interactive Shell Behavior-title}{Interactive Shell Behavior} -@xrdef{Interactive Shell Behavior-pg}{67} +@xrdef{Interactive Shell Behavior-pg}{69} @xrdef{Interactive Shell Behavior-snt}{Section@tie 6.3.3} @xrdef{Bash Conditional Expressions-title}{Bash Conditional Expressions} -@xrdef{Bash Conditional Expressions-pg}{69} +@xrdef{Bash Conditional Expressions-pg}{71} @xrdef{Bash Conditional Expressions-snt}{Section@tie 6.4} @xrdef{Shell Arithmetic-title}{Shell Arithmetic} -@xrdef{Shell Arithmetic-pg}{70} +@xrdef{Shell Arithmetic-pg}{72} @xrdef{Shell Arithmetic-snt}{Section@tie 6.5} @xrdef{Aliases-title}{Aliases} -@xrdef{Aliases-pg}{71} +@xrdef{Aliases-pg}{73} @xrdef{Aliases-snt}{Section@tie 6.6} @xrdef{Arrays-title}{Arrays} -@xrdef{Arrays-pg}{72} +@xrdef{Arrays-pg}{74} @xrdef{Arrays-snt}{Section@tie 6.7} @xrdef{The Directory Stack-title}{The Directory Stack} -@xrdef{The Directory Stack-pg}{73} +@xrdef{The Directory Stack-pg}{75} @xrdef{The Directory Stack-snt}{Section@tie 6.8} @xrdef{Directory Stack Builtins-title}{Directory Stack Builtins} -@xrdef{Directory Stack Builtins-pg}{73} +@xrdef{Directory Stack Builtins-pg}{75} @xrdef{Directory Stack Builtins-snt}{Section@tie 6.8.1} @xrdef{Printing a Prompt-title}{Controlling the Prompt} -@xrdef{Printing a Prompt-pg}{75} +@xrdef{Printing a Prompt-pg}{77} @xrdef{Printing a Prompt-snt}{Section@tie 6.9} @xrdef{The Restricted Shell-title}{The Restricted Shell} -@xrdef{The Restricted Shell-pg}{76} +@xrdef{The Restricted Shell-pg}{78} @xrdef{The Restricted Shell-snt}{Section@tie 6.10} @xrdef{Bash POSIX Mode-title}{Bash POSIX Mode} -@xrdef{Bash POSIX Mode-pg}{76} +@xrdef{Bash POSIX Mode-pg}{78} @xrdef{Bash POSIX Mode-snt}{Section@tie 6.11} @xrdef{Job Control-title}{Job Control} -@xrdef{Job Control-pg}{81} +@xrdef{Job Control-pg}{83} @xrdef{Job Control-snt}{Chapter@tie 7} @xrdef{Job Control Basics-title}{Job Control Basics} -@xrdef{Job Control Basics-pg}{81} +@xrdef{Job Control Basics-pg}{83} @xrdef{Job Control Basics-snt}{Section@tie 7.1} @xrdef{Job Control Builtins-title}{Job Control Builtins} -@xrdef{Job Control Builtins-pg}{82} +@xrdef{Job Control Builtins-pg}{84} @xrdef{Job Control Builtins-snt}{Section@tie 7.2} @xrdef{Job Control Variables-title}{Job Control Variables} -@xrdef{Job Control Variables-pg}{84} +@xrdef{Job Control Variables-pg}{86} @xrdef{Job Control Variables-snt}{Section@tie 7.3} @xrdef{Command Line Editing-title}{Command Line Editing} -@xrdef{Command Line Editing-pg}{85} +@xrdef{Command Line Editing-pg}{87} @xrdef{Command Line Editing-snt}{Chapter@tie 8} @xrdef{Introduction and Notation-title}{Introduction to Line Editing} -@xrdef{Introduction and Notation-pg}{85} +@xrdef{Introduction and Notation-pg}{87} @xrdef{Introduction and Notation-snt}{Section@tie 8.1} @xrdef{Readline Interaction-title}{Readline Interaction} -@xrdef{Readline Interaction-pg}{85} +@xrdef{Readline Interaction-pg}{87} @xrdef{Readline Interaction-snt}{Section@tie 8.2} @xrdef{Readline Bare Essentials-title}{Readline Bare Essentials} -@xrdef{Readline Bare Essentials-pg}{85} +@xrdef{Readline Bare Essentials-pg}{87} @xrdef{Readline Bare Essentials-snt}{Section@tie 8.2.1} @xrdef{Readline Movement Commands-title}{Readline Movement Commands} -@xrdef{Readline Movement Commands-pg}{86} +@xrdef{Readline Movement Commands-pg}{88} @xrdef{Readline Movement Commands-snt}{Section@tie 8.2.2} @xrdef{Readline Killing Commands-title}{Readline Killing Commands} -@xrdef{Readline Killing Commands-pg}{87} +@xrdef{Readline Killing Commands-pg}{89} @xrdef{Readline Killing Commands-snt}{Section@tie 8.2.3} @xrdef{Readline Arguments-title}{Readline Arguments} -@xrdef{Readline Arguments-pg}{87} +@xrdef{Readline Arguments-pg}{89} @xrdef{Readline Arguments-snt}{Section@tie 8.2.4} @xrdef{Searching-title}{Searching for Commands in the History} -@xrdef{Searching-pg}{88} +@xrdef{Searching-pg}{90} @xrdef{Searching-snt}{Section@tie 8.2.5} @xrdef{Readline Init File-title}{Readline Init File} -@xrdef{Readline Init File-pg}{88} +@xrdef{Readline Init File-pg}{90} @xrdef{Readline Init File-snt}{Section@tie 8.3} @xrdef{Readline Init File Syntax-title}{Readline Init File Syntax} -@xrdef{Readline Init File Syntax-pg}{88} +@xrdef{Readline Init File Syntax-pg}{90} @xrdef{Readline Init File Syntax-snt}{Section@tie 8.3.1} @xrdef{Conditional Init Constructs-title}{Conditional Init Constructs} -@xrdef{Conditional Init Constructs-pg}{93} +@xrdef{Conditional Init Constructs-pg}{95} @xrdef{Conditional Init Constructs-snt}{Section@tie 8.3.2} @xrdef{Sample Init File-title}{Sample Init File} -@xrdef{Sample Init File-pg}{94} +@xrdef{Sample Init File-pg}{96} @xrdef{Sample Init File-snt}{Section@tie 8.3.3} @xrdef{Bindable Readline Commands-title}{Bindable Readline Commands} -@xrdef{Bindable Readline Commands-pg}{97} +@xrdef{Bindable Readline Commands-pg}{99} @xrdef{Bindable Readline Commands-snt}{Section@tie 8.4} @xrdef{Commands For Moving-title}{Commands For Moving} -@xrdef{Commands For Moving-pg}{97} +@xrdef{Commands For Moving-pg}{99} @xrdef{Commands For Moving-snt}{Section@tie 8.4.1} @xrdef{Commands For History-title}{Commands For Manipulating The History} -@xrdef{Commands For History-pg}{97} +@xrdef{Commands For History-pg}{99} @xrdef{Commands For History-snt}{Section@tie 8.4.2} @xrdef{Commands For Text-title}{Commands For Changing Text} -@xrdef{Commands For Text-pg}{99} +@xrdef{Commands For Text-pg}{101} @xrdef{Commands For Text-snt}{Section@tie 8.4.3} @xrdef{Commands For Killing-title}{Killing And Yanking} -@xrdef{Commands For Killing-pg}{100} +@xrdef{Commands For Killing-pg}{102} @xrdef{Commands For Killing-snt}{Section@tie 8.4.4} @xrdef{Numeric Arguments-title}{Specifying Numeric Arguments} -@xrdef{Numeric Arguments-pg}{101} +@xrdef{Numeric Arguments-pg}{103} @xrdef{Numeric Arguments-snt}{Section@tie 8.4.5} @xrdef{Commands For Completion-title}{Letting Readline Type For You} -@xrdef{Commands For Completion-pg}{101} +@xrdef{Commands For Completion-pg}{103} @xrdef{Commands For Completion-snt}{Section@tie 8.4.6} @xrdef{Keyboard Macros-title}{Keyboard Macros} -@xrdef{Keyboard Macros-pg}{102} +@xrdef{Keyboard Macros-pg}{104} @xrdef{Keyboard Macros-snt}{Section@tie 8.4.7} @xrdef{Miscellaneous Commands-title}{Some Miscellaneous Commands} -@xrdef{Miscellaneous Commands-pg}{103} +@xrdef{Miscellaneous Commands-pg}{105} @xrdef{Miscellaneous Commands-snt}{Section@tie 8.4.8} @xrdef{Readline vi Mode-title}{Readline vi Mode} -@xrdef{Readline vi Mode-pg}{105} +@xrdef{Readline vi Mode-pg}{107} @xrdef{Readline vi Mode-snt}{Section@tie 8.5} @xrdef{Programmable Completion-title}{Programmable Completion} -@xrdef{Programmable Completion-pg}{105} +@xrdef{Programmable Completion-pg}{107} @xrdef{Programmable Completion-snt}{Section@tie 8.6} @xrdef{Programmable Completion Builtins-title}{Programmable Completion Builtins} -@xrdef{Programmable Completion Builtins-pg}{107} +@xrdef{Programmable Completion Builtins-pg}{109} @xrdef{Programmable Completion Builtins-snt}{Section@tie 8.7} @xrdef{Using History Interactively-title}{Using History Interactively} -@xrdef{Using History Interactively-pg}{111} +@xrdef{Using History Interactively-pg}{113} @xrdef{Using History Interactively-snt}{Chapter@tie 9} @xrdef{Bash History Facilities-title}{Bash History Facilities} -@xrdef{Bash History Facilities-pg}{111} +@xrdef{Bash History Facilities-pg}{113} @xrdef{Bash History Facilities-snt}{Section@tie 9.1} @xrdef{Bash History Builtins-title}{Bash History Builtins} -@xrdef{Bash History Builtins-pg}{111} +@xrdef{Bash History Builtins-pg}{113} @xrdef{Bash History Builtins-snt}{Section@tie 9.2} @xrdef{History Interaction-title}{History Expansion} -@xrdef{History Interaction-pg}{113} +@xrdef{History Interaction-pg}{115} @xrdef{History Interaction-snt}{Section@tie 9.3} @xrdef{Event Designators-title}{Event Designators} -@xrdef{Event Designators-pg}{113} +@xrdef{Event Designators-pg}{115} @xrdef{Event Designators-snt}{Section@tie 9.3.1} @xrdef{Word Designators-title}{Word Designators} -@xrdef{Word Designators-pg}{114} +@xrdef{Word Designators-pg}{116} @xrdef{Word Designators-snt}{Section@tie 9.3.2} @xrdef{Modifiers-title}{Modifiers} -@xrdef{Modifiers-pg}{115} +@xrdef{Modifiers-pg}{117} @xrdef{Modifiers-snt}{Section@tie 9.3.3} @xrdef{Installing Bash-title}{Installing Bash} -@xrdef{Installing Bash-pg}{117} +@xrdef{Installing Bash-pg}{119} @xrdef{Installing Bash-snt}{Chapter@tie 10} @xrdef{Basic Installation-title}{Basic Installation} -@xrdef{Basic Installation-pg}{117} +@xrdef{Basic Installation-pg}{119} @xrdef{Basic Installation-snt}{Section@tie 10.1} @xrdef{Compilers and Options-title}{Compilers and Options} -@xrdef{Compilers and Options-pg}{118} +@xrdef{Compilers and Options-pg}{120} @xrdef{Compilers and Options-snt}{Section@tie 10.2} @xrdef{Compiling For Multiple Architectures-title}{Compiling For Multiple Architectures} -@xrdef{Compiling For Multiple Architectures-pg}{118} +@xrdef{Compiling For Multiple Architectures-pg}{120} @xrdef{Compiling For Multiple Architectures-snt}{Section@tie 10.3} @xrdef{Installation Names-title}{Installation Names} -@xrdef{Installation Names-pg}{118} +@xrdef{Installation Names-pg}{120} @xrdef{Installation Names-snt}{Section@tie 10.4} @xrdef{Specifying the System Type-title}{Specifying the System Type} -@xrdef{Specifying the System Type-pg}{119} +@xrdef{Specifying the System Type-pg}{121} @xrdef{Specifying the System Type-snt}{Section@tie 10.5} @xrdef{Sharing Defaults-title}{Sharing Defaults} -@xrdef{Sharing Defaults-pg}{119} +@xrdef{Sharing Defaults-pg}{121} @xrdef{Sharing Defaults-snt}{Section@tie 10.6} @xrdef{Operation Controls-title}{Operation Controls} -@xrdef{Operation Controls-pg}{119} +@xrdef{Operation Controls-pg}{121} @xrdef{Operation Controls-snt}{Section@tie 10.7} @xrdef{Optional Features-title}{Optional Features} -@xrdef{Optional Features-pg}{119} +@xrdef{Optional Features-pg}{121} @xrdef{Optional Features-snt}{Section@tie 10.8} @xrdef{Reporting Bugs-title}{Reporting Bugs} -@xrdef{Reporting Bugs-pg}{125} +@xrdef{Reporting Bugs-pg}{127} @xrdef{Reporting Bugs-snt}{Appendix@tie @char65{}} @xrdef{Major Differences From The Bourne Shell-title}{Major Differences From The Bourne Shell} -@xrdef{Major Differences From The Bourne Shell-pg}{127} +@xrdef{Major Differences From The Bourne Shell-pg}{129} @xrdef{Major Differences From The Bourne Shell-snt}{Appendix@tie @char66{}} @xrdef{Copying This Manual-title}{Copying This Manual} -@xrdef{Copying This Manual-pg}{133} +@xrdef{Copying This Manual-pg}{135} @xrdef{Copying This Manual-snt}{Appendix@tie @char67{}} @xrdef{GNU Free Documentation License-title}{GNU Free Documentation License} -@xrdef{GNU Free Documentation License-pg}{133} +@xrdef{GNU Free Documentation License-pg}{135} @xrdef{GNU Free Documentation License-snt}{Section@tie @char67.1} @xrdef{Builtin Index-title}{Index of Shell Builtin Commands} -@xrdef{Builtin Index-pg}{141} +@xrdef{Builtin Index-pg}{143} @xrdef{Builtin Index-snt}{} @xrdef{Reserved Word Index-title}{Index of Shell Reserved Words} -@xrdef{Reserved Word Index-pg}{143} +@xrdef{Reserved Word Index-pg}{145} @xrdef{Reserved Word Index-snt}{} @xrdef{Variable Index-title}{Parameter and Variable Index} -@xrdef{Variable Index-pg}{145} +@xrdef{Variable Index-pg}{147} @xrdef{Variable Index-snt}{} @xrdef{Function Index-title}{Function Index} -@xrdef{Function Index-pg}{147} +@xrdef{Function Index-pg}{149} @xrdef{Function Index-snt}{} @xrdef{Concept Index-title}{Concept Index} -@xrdef{Concept Index-pg}{149} +@xrdef{Concept Index-pg}{151} @xrdef{Concept Index-snt}{} diff --git a/doc/bashref.bt b/doc/bashref.bt index 4fb768a30..86cb81053 100644 --- a/doc/bashref.bt +++ b/doc/bashref.bt @@ -34,23 +34,23 @@ \entry{printf}{44}{\code {printf}} \entry{read}{44}{\code {read}} \entry{shopt}{45}{\code {shopt}} -\entry{source}{48}{\code {source}} -\entry{type}{48}{\code {type}} +\entry{source}{49}{\code {source}} +\entry{type}{49}{\code {type}} \entry{typeset}{49}{\code {typeset}} \entry{ulimit}{49}{\code {ulimit}} \entry{unalias}{50}{\code {unalias}} \entry{set}{50}{\code {set}} -\entry{dirs}{73}{\code {dirs}} -\entry{popd}{74}{\code {popd}} -\entry{pushd}{74}{\code {pushd}} -\entry{bg}{82}{\code {bg}} -\entry{fg}{82}{\code {fg}} -\entry{jobs}{82}{\code {jobs}} -\entry{kill}{83}{\code {kill}} -\entry{wait}{83}{\code {wait}} -\entry{disown}{83}{\code {disown}} -\entry{suspend}{83}{\code {suspend}} -\entry{compgen}{107}{\code {compgen}} -\entry{complete}{107}{\code {complete}} -\entry{fc}{111}{\code {fc}} -\entry{history}{112}{\code {history}} +\entry{dirs}{75}{\code {dirs}} +\entry{popd}{76}{\code {popd}} +\entry{pushd}{76}{\code {pushd}} +\entry{bg}{84}{\code {bg}} +\entry{fg}{84}{\code {fg}} +\entry{jobs}{84}{\code {jobs}} +\entry{kill}{85}{\code {kill}} +\entry{wait}{85}{\code {wait}} +\entry{disown}{85}{\code {disown}} +\entry{suspend}{85}{\code {suspend}} +\entry{compgen}{109}{\code {compgen}} +\entry{complete}{109}{\code {complete}} +\entry{fc}{113}{\code {fc}} +\entry{history}{114}{\code {history}} diff --git a/doc/bashref.bts b/doc/bashref.bts index 16a53f67e..6ad3a5033 100644 --- a/doc/bashref.bts +++ b/doc/bashref.bts @@ -7,7 +7,7 @@ \initial {A} \entry {\code {alias}}{39} \initial {B} -\entry {\code {bg}}{82} +\entry {\code {bg}}{84} \entry {\code {bind}}{39} \entry {\code {break}}{33} \entry {\code {builtin}}{40} @@ -15,13 +15,13 @@ \entry {\code {caller}}{40} \entry {\code {cd}}{33} \entry {\code {command}}{41} -\entry {\code {compgen}}{107} -\entry {\code {complete}}{107} +\entry {\code {compgen}}{109} +\entry {\code {complete}}{109} \entry {\code {continue}}{34} \initial {D} \entry {\code {declare}}{41} -\entry {\code {dirs}}{73} -\entry {\code {disown}}{83} +\entry {\code {dirs}}{75} +\entry {\code {disown}}{85} \initial {E} \entry {\code {echo}}{42} \entry {\code {enable}}{42} @@ -30,26 +30,26 @@ \entry {\code {exit}}{34} \entry {\code {export}}{34} \initial {F} -\entry {\code {fc}}{111} -\entry {\code {fg}}{82} +\entry {\code {fc}}{113} +\entry {\code {fg}}{84} \initial {G} \entry {\code {getopts}}{35} \initial {H} \entry {\code {hash}}{35} \entry {\code {help}}{43} -\entry {\code {history}}{112} +\entry {\code {history}}{114} \initial {J} -\entry {\code {jobs}}{82} +\entry {\code {jobs}}{84} \initial {K} -\entry {\code {kill}}{83} +\entry {\code {kill}}{85} \initial {L} \entry {\code {let}}{43} \entry {\code {local}}{43} \entry {\code {logout}}{43} \initial {P} -\entry {\code {popd}}{74} +\entry {\code {popd}}{76} \entry {\code {printf}}{44} -\entry {\code {pushd}}{74} +\entry {\code {pushd}}{76} \entry {\code {pwd}}{36} \initial {R} \entry {\code {read}}{44} @@ -59,13 +59,13 @@ \entry {\code {set}}{50} \entry {\code {shift}}{36} \entry {\code {shopt}}{45} -\entry {\code {source}}{48} -\entry {\code {suspend}}{83} +\entry {\code {source}}{49} +\entry {\code {suspend}}{85} \initial {T} \entry {\code {test}}{37} \entry {\code {times}}{38} \entry {\code {trap}}{38} -\entry {\code {type}}{48} +\entry {\code {type}}{49} \entry {\code {typeset}}{49} \initial {U} \entry {\code {ulimit}}{49} @@ -73,4 +73,4 @@ \entry {\code {unalias}}{50} \entry {\code {unset}}{39} \initial {W} -\entry {\code {wait}}{83} +\entry {\code {wait}}{85} diff --git a/doc/bashref.cp b/doc/bashref.cp index 47ca98375..62b6a3508 100644 --- a/doc/bashref.cp +++ b/doc/bashref.cp @@ -36,14 +36,14 @@ \entry{commands, looping}{9}{commands, looping} \entry{commands, conditional}{10}{commands, conditional} \entry{commands, grouping}{13}{commands, grouping} -\entry{shell function}{13}{shell function} -\entry{functions, shell}{13}{functions, shell} +\entry{shell function}{14}{shell function} +\entry{functions, shell}{14}{functions, shell} \entry{parameters}{15}{parameters} \entry{variable, shell}{15}{variable, shell} \entry{shell variable}{15}{shell variable} \entry{parameters, positional}{15}{parameters, positional} -\entry{parameters, special}{15}{parameters, special} -\entry{expansion}{16}{expansion} +\entry{parameters, special}{16}{parameters, special} +\entry{expansion}{17}{expansion} \entry{brace expansion}{17}{brace expansion} \entry{expansion, brace}{17}{expansion, brace} \entry{tilde expansion}{18}{tilde expansion} @@ -51,8 +51,8 @@ \entry{parameter expansion}{19}{parameter expansion} \entry{expansion, parameter}{19}{expansion, parameter} \entry{command substitution}{21}{command substitution} -\entry{expansion, arithmetic}{21}{expansion, arithmetic} -\entry{arithmetic expansion}{21}{arithmetic expansion} +\entry{expansion, arithmetic}{22}{expansion, arithmetic} +\entry{arithmetic expansion}{22}{arithmetic expansion} \entry{process substitution}{22}{process substitution} \entry{word splitting}{22}{word splitting} \entry{expansion, filename}{23}{expansion, filename} @@ -61,7 +61,7 @@ \entry{pathname expansion}{23}{pathname expansion} \entry{pattern matching}{23}{pattern matching} \entry{matching, pattern}{23}{matching, pattern} -\entry{redirection}{24}{redirection} +\entry{redirection}{25}{redirection} \entry{command expansion}{28}{command expansion} \entry{command execution}{29}{command execution} \entry{command search}{29}{command search} @@ -71,48 +71,48 @@ \entry{signal handling}{31}{signal handling} \entry{shell script}{32}{shell script} \entry{special builtin}{54}{special builtin} -\entry{login shell}{65}{login shell} -\entry{interactive shell}{65}{interactive shell} -\entry{startup files}{65}{startup files} +\entry{login shell}{67}{login shell} \entry{interactive shell}{67}{interactive shell} -\entry{shell, interactive}{67}{shell, interactive} -\entry{expressions, conditional}{69}{expressions, conditional} -\entry{arithmetic, shell}{70}{arithmetic, shell} -\entry{shell arithmetic}{70}{shell arithmetic} -\entry{expressions, arithmetic}{70}{expressions, arithmetic} -\entry{evaluation, arithmetic}{70}{evaluation, arithmetic} -\entry{arithmetic evaluation}{70}{arithmetic evaluation} -\entry{alias expansion}{71}{alias expansion} -\entry{arrays}{72}{arrays} -\entry{directory stack}{73}{directory stack} -\entry{prompting}{75}{prompting} -\entry{restricted shell}{76}{restricted shell} -\entry{POSIX Mode}{76}{POSIX Mode} -\entry{job control}{81}{job control} -\entry{foreground}{81}{foreground} -\entry{background}{81}{background} -\entry{suspending jobs}{81}{suspending jobs} -\entry{Readline, how to use}{84}{Readline, how to use} -\entry{interaction, readline}{85}{interaction, readline} -\entry{notation, readline}{85}{notation, readline} -\entry{command editing}{85}{command editing} -\entry{editing command lines}{85}{editing command lines} -\entry{killing text}{87}{killing text} -\entry{yanking text}{87}{yanking text} -\entry{kill ring}{87}{kill ring} -\entry{initialization file, readline}{88}{initialization file, readline} -\entry{variables, readline}{89}{variables, readline} -\entry{programmable completion}{105}{programmable completion} -\entry{completion builtins}{107}{completion builtins} -\entry{History, how to use}{110}{History, how to use} -\entry{command history}{111}{command history} -\entry{history list}{111}{history list} -\entry{history builtins}{111}{history builtins} -\entry{history expansion}{113}{history expansion} -\entry{event designators}{113}{event designators} -\entry{history events}{113}{history events} -\entry{installation}{117}{installation} -\entry{configuration}{117}{configuration} -\entry{Bash installation}{117}{Bash installation} -\entry{Bash configuration}{117}{Bash configuration} -\entry{FDL, GNU Free Documentation License}{133}{FDL, GNU Free Documentation License} +\entry{startup files}{67}{startup files} +\entry{interactive shell}{69}{interactive shell} +\entry{shell, interactive}{69}{shell, interactive} +\entry{expressions, conditional}{71}{expressions, conditional} +\entry{arithmetic, shell}{72}{arithmetic, shell} +\entry{shell arithmetic}{72}{shell arithmetic} +\entry{expressions, arithmetic}{72}{expressions, arithmetic} +\entry{evaluation, arithmetic}{72}{evaluation, arithmetic} +\entry{arithmetic evaluation}{72}{arithmetic evaluation} +\entry{alias expansion}{73}{alias expansion} +\entry{arrays}{74}{arrays} +\entry{directory stack}{75}{directory stack} +\entry{prompting}{77}{prompting} +\entry{restricted shell}{78}{restricted shell} +\entry{POSIX Mode}{78}{POSIX Mode} +\entry{job control}{83}{job control} +\entry{foreground}{83}{foreground} +\entry{background}{83}{background} +\entry{suspending jobs}{83}{suspending jobs} +\entry{Readline, how to use}{86}{Readline, how to use} +\entry{interaction, readline}{87}{interaction, readline} +\entry{notation, readline}{87}{notation, readline} +\entry{command editing}{87}{command editing} +\entry{editing command lines}{87}{editing command lines} +\entry{killing text}{89}{killing text} +\entry{yanking text}{89}{yanking text} +\entry{kill ring}{89}{kill ring} +\entry{initialization file, readline}{90}{initialization file, readline} +\entry{variables, readline}{91}{variables, readline} +\entry{programmable completion}{107}{programmable completion} +\entry{completion builtins}{109}{completion builtins} +\entry{History, how to use}{112}{History, how to use} +\entry{command history}{113}{command history} +\entry{history list}{113}{history list} +\entry{history builtins}{113}{history builtins} +\entry{history expansion}{115}{history expansion} +\entry{event designators}{115}{event designators} +\entry{history events}{115}{history events} +\entry{installation}{119}{installation} +\entry{configuration}{119}{configuration} +\entry{Bash installation}{119}{Bash installation} +\entry{Bash configuration}{119}{Bash configuration} +\entry{FDL, GNU Free Documentation License}{135}{FDL, GNU Free Documentation License} diff --git a/doc/bashref.cps b/doc/bashref.cps index a51e6cb2a..936ab6e6a 100644 --- a/doc/bashref.cps +++ b/doc/bashref.cps @@ -1,21 +1,21 @@ \initial {A} -\entry {alias expansion}{71} -\entry {arithmetic evaluation}{70} -\entry {arithmetic expansion}{21} -\entry {arithmetic, shell}{70} -\entry {arrays}{72} +\entry {alias expansion}{73} +\entry {arithmetic evaluation}{72} +\entry {arithmetic expansion}{22} +\entry {arithmetic, shell}{72} +\entry {arrays}{74} \initial {B} -\entry {background}{81} -\entry {Bash configuration}{117} -\entry {Bash installation}{117} +\entry {background}{83} +\entry {Bash configuration}{119} +\entry {Bash installation}{119} \entry {Bourne shell}{5} \entry {brace expansion}{17} \entry {builtin}{3} \initial {C} -\entry {command editing}{85} +\entry {command editing}{87} \entry {command execution}{29} \entry {command expansion}{28} -\entry {command history}{111} +\entry {command history}{113} \entry {command search}{29} \entry {command substitution}{21} \entry {command timing}{8} @@ -28,109 +28,109 @@ \entry {commands, shell}{8} \entry {commands, simple}{8} \entry {comments, shell}{7} -\entry {completion builtins}{107} -\entry {configuration}{117} +\entry {completion builtins}{109} +\entry {configuration}{119} \entry {control operator}{3} \initial {D} -\entry {directory stack}{73} +\entry {directory stack}{75} \initial {E} -\entry {editing command lines}{85} +\entry {editing command lines}{87} \entry {environment}{30} -\entry {evaluation, arithmetic}{70} -\entry {event designators}{113} +\entry {evaluation, arithmetic}{72} +\entry {event designators}{115} \entry {execution environment}{29} \entry {exit status}{3, 31} -\entry {expansion}{16} -\entry {expansion, arithmetic}{21} +\entry {expansion}{17} +\entry {expansion, arithmetic}{22} \entry {expansion, brace}{17} \entry {expansion, filename}{23} \entry {expansion, parameter}{19} \entry {expansion, pathname}{23} \entry {expansion, tilde}{18} -\entry {expressions, arithmetic}{70} -\entry {expressions, conditional}{69} +\entry {expressions, arithmetic}{72} +\entry {expressions, conditional}{71} \initial {F} -\entry {FDL, GNU Free Documentation License}{133} +\entry {FDL, GNU Free Documentation License}{135} \entry {field}{3} \entry {filename}{3} \entry {filename expansion}{23} -\entry {foreground}{81} -\entry {functions, shell}{13} +\entry {foreground}{83} +\entry {functions, shell}{14} \initial {H} -\entry {history builtins}{111} -\entry {history events}{113} -\entry {history expansion}{113} -\entry {history list}{111} -\entry {History, how to use}{110} +\entry {history builtins}{113} +\entry {history events}{115} +\entry {history expansion}{115} +\entry {history list}{113} +\entry {History, how to use}{112} \initial {I} \entry {identifier}{3} -\entry {initialization file, readline}{88} -\entry {installation}{117} -\entry {interaction, readline}{85} -\entry {interactive shell}{65, 67} +\entry {initialization file, readline}{90} +\entry {installation}{119} +\entry {interaction, readline}{87} +\entry {interactive shell}{67, 69} \entry {internationalization}{7} \initial {J} \entry {job}{3} -\entry {job control}{3, 81} +\entry {job control}{3, 83} \initial {K} -\entry {kill ring}{87} -\entry {killing text}{87} +\entry {kill ring}{89} +\entry {killing text}{89} \initial {L} \entry {localization}{7} -\entry {login shell}{65} +\entry {login shell}{67} \initial {M} \entry {matching, pattern}{23} \entry {metacharacter}{3} \initial {N} \entry {name}{3} \entry {native languages}{7} -\entry {notation, readline}{85} +\entry {notation, readline}{87} \initial {O} \entry {operator, shell}{3} \initial {P} \entry {parameter expansion}{19} \entry {parameters}{15} \entry {parameters, positional}{15} -\entry {parameters, special}{15} +\entry {parameters, special}{16} \entry {pathname expansion}{23} \entry {pattern matching}{23} \entry {pipeline}{8} \entry {POSIX}{3} -\entry {POSIX Mode}{76} +\entry {POSIX Mode}{78} \entry {process group}{3} \entry {process group ID}{3} \entry {process substitution}{22} -\entry {programmable completion}{105} -\entry {prompting}{75} +\entry {programmable completion}{107} +\entry {prompting}{77} \initial {Q} \entry {quoting}{6} \entry {quoting, ANSI}{6} \initial {R} -\entry {Readline, how to use}{84} -\entry {redirection}{24} +\entry {Readline, how to use}{86} +\entry {redirection}{25} \entry {reserved word}{3} -\entry {restricted shell}{76} +\entry {restricted shell}{78} \entry {return status}{3} \initial {S} -\entry {shell arithmetic}{70} -\entry {shell function}{13} +\entry {shell arithmetic}{72} +\entry {shell function}{14} \entry {shell script}{32} \entry {shell variable}{15} -\entry {shell, interactive}{67} +\entry {shell, interactive}{69} \entry {signal}{4} \entry {signal handling}{31} \entry {special builtin}{4, 54} -\entry {startup files}{65} -\entry {suspending jobs}{81} +\entry {startup files}{67} +\entry {suspending jobs}{83} \initial {T} \entry {tilde expansion}{18} \entry {token}{4} \entry {translation, native languages}{7} \initial {V} \entry {variable, shell}{15} -\entry {variables, readline}{89} +\entry {variables, readline}{91} \initial {W} \entry {word}{4} \entry {word splitting}{22} \initial {Y} -\entry {yanking text}{87} +\entry {yanking text}{89} diff --git a/doc/bashref.dvi b/doc/bashref.dvi index 70e19f60b..9d89da2cf 100644 Binary files a/doc/bashref.dvi and b/doc/bashref.dvi differ diff --git a/doc/bashref.fn b/doc/bashref.fn index 8310d6cb5..48a1ec44b 100644 --- a/doc/bashref.fn +++ b/doc/bashref.fn @@ -1,96 +1,96 @@ -\entry{beginning-of-line (C-a)}{97}{\code {beginning-of-line (C-a)}} -\entry{end-of-line (C-e)}{97}{\code {end-of-line (C-e)}} -\entry{forward-char (C-f)}{97}{\code {forward-char (C-f)}} -\entry{backward-char (C-b)}{97}{\code {backward-char (C-b)}} -\entry{forward-word (M-f)}{97}{\code {forward-word (M-f)}} -\entry{backward-word (M-b)}{97}{\code {backward-word (M-b)}} -\entry{clear-screen (C-l)}{97}{\code {clear-screen (C-l)}} -\entry{redraw-current-line ()}{97}{\code {redraw-current-line ()}} -\entry{accept-line (Newline or Return)}{97}{\code {accept-line (Newline or Return)}} -\entry{previous-history (C-p)}{98}{\code {previous-history (C-p)}} -\entry{next-history (C-n)}{98}{\code {next-history (C-n)}} -\entry{beginning-of-history (M-<)}{98}{\code {beginning-of-history (M-<)}} -\entry{end-of-history (M->)}{98}{\code {end-of-history (M->)}} -\entry{reverse-search-history (C-r)}{98}{\code {reverse-search-history (C-r)}} -\entry{forward-search-history (C-s)}{98}{\code {forward-search-history (C-s)}} -\entry{non-incremental-reverse-search-history (M-p)}{98}{\code {non-incremental-reverse-search-history (M-p)}} -\entry{non-incremental-forward-search-history (M-n)}{98}{\code {non-incremental-forward-search-history (M-n)}} -\entry{history-search-forward ()}{98}{\code {history-search-forward ()}} -\entry{history-search-backward ()}{98}{\code {history-search-backward ()}} -\entry{yank-nth-arg (M-C-y)}{98}{\code {yank-nth-arg (M-C-y)}} -\entry{yank-last-arg (M-. or M-_)}{98}{\code {yank-last-arg (M-. or M-_)}} -\entry{delete-char (C-d)}{99}{\code {delete-char (C-d)}} -\entry{backward-delete-char (Rubout)}{99}{\code {backward-delete-char (Rubout)}} -\entry{forward-backward-delete-char ()}{99}{\code {forward-backward-delete-char ()}} -\entry{quoted-insert (C-q or C-v)}{99}{\code {quoted-insert (C-q or C-v)}} -\entry{self-insert (a, b, A, 1, !, ...{})}{99}{\code {self-insert (a, b, A, 1, !, \dots {})}} -\entry{transpose-chars (C-t)}{99}{\code {transpose-chars (C-t)}} -\entry{transpose-words (M-t)}{99}{\code {transpose-words (M-t)}} -\entry{upcase-word (M-u)}{99}{\code {upcase-word (M-u)}} -\entry{downcase-word (M-l)}{99}{\code {downcase-word (M-l)}} -\entry{capitalize-word (M-c)}{99}{\code {capitalize-word (M-c)}} -\entry{overwrite-mode ()}{99}{\code {overwrite-mode ()}} -\entry{kill-line (C-k)}{100}{\code {kill-line (C-k)}} -\entry{backward-kill-line (C-x Rubout)}{100}{\code {backward-kill-line (C-x Rubout)}} -\entry{unix-line-discard (C-u)}{100}{\code {unix-line-discard (C-u)}} -\entry{kill-whole-line ()}{100}{\code {kill-whole-line ()}} -\entry{kill-word (M-d)}{100}{\code {kill-word (M-d)}} -\entry{backward-kill-word (M-DEL)}{100}{\code {backward-kill-word (M-\key {DEL})}} -\entry{unix-word-rubout (C-w)}{100}{\code {unix-word-rubout (C-w)}} -\entry{unix-filename-rubout ()}{100}{\code {unix-filename-rubout ()}} -\entry{delete-horizontal-space ()}{100}{\code {delete-horizontal-space ()}} -\entry{kill-region ()}{100}{\code {kill-region ()}} -\entry{copy-region-as-kill ()}{100}{\code {copy-region-as-kill ()}} -\entry{copy-backward-word ()}{100}{\code {copy-backward-word ()}} -\entry{copy-forward-word ()}{100}{\code {copy-forward-word ()}} -\entry{yank (C-y)}{101}{\code {yank (C-y)}} -\entry{yank-pop (M-y)}{101}{\code {yank-pop (M-y)}} -\entry{digit-argument (M-0, M-1, ...{} M--)}{101}{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}} -\entry{universal-argument ()}{101}{\code {universal-argument ()}} -\entry{complete (TAB)}{101}{\code {complete (\key {TAB})}} -\entry{possible-completions (M-?)}{101}{\code {possible-completions (M-?)}} -\entry{insert-completions (M-*)}{101}{\code {insert-completions (M-*)}} -\entry{menu-complete ()}{101}{\code {menu-complete ()}} -\entry{delete-char-or-list ()}{102}{\code {delete-char-or-list ()}} -\entry{complete-filename (M-/)}{102}{\code {complete-filename (M-/)}} -\entry{possible-filename-completions (C-x /)}{102}{\code {possible-filename-completions (C-x /)}} -\entry{complete-username (M-~)}{102}{\code {complete-username (M-~)}} -\entry{possible-username-completions (C-x ~)}{102}{\code {possible-username-completions (C-x ~)}} -\entry{complete-variable (M-$)}{102}{\code {complete-variable (M-$)}} -\entry{possible-variable-completions (C-x $)}{102}{\code {possible-variable-completions (C-x $)}} -\entry{complete-hostname (M-@)}{102}{\code {complete-hostname (M-@)}} -\entry{possible-hostname-completions (C-x @)}{102}{\code {possible-hostname-completions (C-x @)}} -\entry{complete-command (M-!)}{102}{\code {complete-command (M-!)}} -\entry{possible-command-completions (C-x !)}{102}{\code {possible-command-completions (C-x !)}} -\entry{dynamic-complete-history (M-TAB)}{102}{\code {dynamic-complete-history (M-\key {TAB})}} -\entry{complete-into-braces (M-{\tt \char 123})}{102}{\code {complete-into-braces (M-{\tt \char 123})}} -\entry{start-kbd-macro (C-x ()}{102}{\code {start-kbd-macro (C-x ()}} -\entry{end-kbd-macro (C-x ))}{103}{\code {end-kbd-macro (C-x ))}} -\entry{call-last-kbd-macro (C-x e)}{103}{\code {call-last-kbd-macro (C-x e)}} -\entry{re-read-init-file (C-x C-r)}{103}{\code {re-read-init-file (C-x C-r)}} -\entry{abort (C-g)}{103}{\code {abort (C-g)}} -\entry{do-uppercase-version (M-a, M-b, M-x, ...{})}{103}{\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}} -\entry{prefix-meta (ESC)}{103}{\code {prefix-meta (\key {ESC})}} -\entry{undo (C-_ or C-x C-u)}{103}{\code {undo (C-_ or C-x C-u)}} -\entry{revert-line (M-r)}{103}{\code {revert-line (M-r)}} -\entry{tilde-expand (M-&)}{103}{\code {tilde-expand (M-&)}} -\entry{set-mark (C-@)}{103}{\code {set-mark (C-@)}} -\entry{exchange-point-and-mark (C-x C-x)}{103}{\code {exchange-point-and-mark (C-x C-x)}} -\entry{character-search (C-])}{103}{\code {character-search (C-])}} -\entry{character-search-backward (M-C-])}{103}{\code {character-search-backward (M-C-])}} -\entry{insert-comment (M-#)}{104}{\code {insert-comment (M-#)}} -\entry{dump-functions ()}{104}{\code {dump-functions ()}} -\entry{dump-variables ()}{104}{\code {dump-variables ()}} -\entry{dump-macros ()}{104}{\code {dump-macros ()}} -\entry{glob-complete-word (M-g)}{104}{\code {glob-complete-word (M-g)}} -\entry{glob-expand-word (C-x *)}{104}{\code {glob-expand-word (C-x *)}} -\entry{glob-list-expansions (C-x g)}{104}{\code {glob-list-expansions (C-x g)}} -\entry{display-shell-version (C-x C-v)}{104}{\code {display-shell-version (C-x C-v)}} -\entry{shell-expand-line (M-C-e)}{104}{\code {shell-expand-line (M-C-e)}} -\entry{history-expand-line (M-^)}{104}{\code {history-expand-line (M-^)}} -\entry{magic-space ()}{105}{\code {magic-space ()}} -\entry{alias-expand-line ()}{105}{\code {alias-expand-line ()}} -\entry{history-and-alias-expand-line ()}{105}{\code {history-and-alias-expand-line ()}} -\entry{insert-last-argument (M-. or M-_)}{105}{\code {insert-last-argument (M-. or M-_)}} -\entry{operate-and-get-next (C-o)}{105}{\code {operate-and-get-next (C-o)}} -\entry{edit-and-execute-command (C-xC-e)}{105}{\code {edit-and-execute-command (C-xC-e)}} +\entry{beginning-of-line (C-a)}{99}{\code {beginning-of-line (C-a)}} +\entry{end-of-line (C-e)}{99}{\code {end-of-line (C-e)}} +\entry{forward-char (C-f)}{99}{\code {forward-char (C-f)}} +\entry{backward-char (C-b)}{99}{\code {backward-char (C-b)}} +\entry{forward-word (M-f)}{99}{\code {forward-word (M-f)}} +\entry{backward-word (M-b)}{99}{\code {backward-word (M-b)}} +\entry{clear-screen (C-l)}{99}{\code {clear-screen (C-l)}} +\entry{redraw-current-line ()}{99}{\code {redraw-current-line ()}} +\entry{accept-line (Newline or Return)}{99}{\code {accept-line (Newline or Return)}} +\entry{previous-history (C-p)}{100}{\code {previous-history (C-p)}} +\entry{next-history (C-n)}{100}{\code {next-history (C-n)}} +\entry{beginning-of-history (M-<)}{100}{\code {beginning-of-history (M-<)}} +\entry{end-of-history (M->)}{100}{\code {end-of-history (M->)}} +\entry{reverse-search-history (C-r)}{100}{\code {reverse-search-history (C-r)}} +\entry{forward-search-history (C-s)}{100}{\code {forward-search-history (C-s)}} +\entry{non-incremental-reverse-search-history (M-p)}{100}{\code {non-incremental-reverse-search-history (M-p)}} +\entry{non-incremental-forward-search-history (M-n)}{100}{\code {non-incremental-forward-search-history (M-n)}} +\entry{history-search-forward ()}{100}{\code {history-search-forward ()}} +\entry{history-search-backward ()}{100}{\code {history-search-backward ()}} +\entry{yank-nth-arg (M-C-y)}{100}{\code {yank-nth-arg (M-C-y)}} +\entry{yank-last-arg (M-. or M-_)}{100}{\code {yank-last-arg (M-. or M-_)}} +\entry{delete-char (C-d)}{101}{\code {delete-char (C-d)}} +\entry{backward-delete-char (Rubout)}{101}{\code {backward-delete-char (Rubout)}} +\entry{forward-backward-delete-char ()}{101}{\code {forward-backward-delete-char ()}} +\entry{quoted-insert (C-q or C-v)}{101}{\code {quoted-insert (C-q or C-v)}} +\entry{self-insert (a, b, A, 1, !, ...{})}{101}{\code {self-insert (a, b, A, 1, !, \dots {})}} +\entry{transpose-chars (C-t)}{101}{\code {transpose-chars (C-t)}} +\entry{transpose-words (M-t)}{101}{\code {transpose-words (M-t)}} +\entry{upcase-word (M-u)}{101}{\code {upcase-word (M-u)}} +\entry{downcase-word (M-l)}{101}{\code {downcase-word (M-l)}} +\entry{capitalize-word (M-c)}{101}{\code {capitalize-word (M-c)}} +\entry{overwrite-mode ()}{101}{\code {overwrite-mode ()}} +\entry{kill-line (C-k)}{102}{\code {kill-line (C-k)}} +\entry{backward-kill-line (C-x Rubout)}{102}{\code {backward-kill-line (C-x Rubout)}} +\entry{unix-line-discard (C-u)}{102}{\code {unix-line-discard (C-u)}} +\entry{kill-whole-line ()}{102}{\code {kill-whole-line ()}} +\entry{kill-word (M-d)}{102}{\code {kill-word (M-d)}} +\entry{backward-kill-word (M-DEL)}{102}{\code {backward-kill-word (M-\key {DEL})}} +\entry{unix-word-rubout (C-w)}{102}{\code {unix-word-rubout (C-w)}} +\entry{unix-filename-rubout ()}{102}{\code {unix-filename-rubout ()}} +\entry{delete-horizontal-space ()}{102}{\code {delete-horizontal-space ()}} +\entry{kill-region ()}{102}{\code {kill-region ()}} +\entry{copy-region-as-kill ()}{102}{\code {copy-region-as-kill ()}} +\entry{copy-backward-word ()}{102}{\code {copy-backward-word ()}} +\entry{copy-forward-word ()}{102}{\code {copy-forward-word ()}} +\entry{yank (C-y)}{103}{\code {yank (C-y)}} +\entry{yank-pop (M-y)}{103}{\code {yank-pop (M-y)}} +\entry{digit-argument (M-0, M-1, ...{} M--)}{103}{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}} +\entry{universal-argument ()}{103}{\code {universal-argument ()}} +\entry{complete (TAB)}{103}{\code {complete (\key {TAB})}} +\entry{possible-completions (M-?)}{103}{\code {possible-completions (M-?)}} +\entry{insert-completions (M-*)}{103}{\code {insert-completions (M-*)}} +\entry{menu-complete ()}{103}{\code {menu-complete ()}} +\entry{delete-char-or-list ()}{104}{\code {delete-char-or-list ()}} +\entry{complete-filename (M-/)}{104}{\code {complete-filename (M-/)}} +\entry{possible-filename-completions (C-x /)}{104}{\code {possible-filename-completions (C-x /)}} +\entry{complete-username (M-~)}{104}{\code {complete-username (M-~)}} +\entry{possible-username-completions (C-x ~)}{104}{\code {possible-username-completions (C-x ~)}} +\entry{complete-variable (M-$)}{104}{\code {complete-variable (M-$)}} +\entry{possible-variable-completions (C-x $)}{104}{\code {possible-variable-completions (C-x $)}} +\entry{complete-hostname (M-@)}{104}{\code {complete-hostname (M-@)}} +\entry{possible-hostname-completions (C-x @)}{104}{\code {possible-hostname-completions (C-x @)}} +\entry{complete-command (M-!)}{104}{\code {complete-command (M-!)}} +\entry{possible-command-completions (C-x !)}{104}{\code {possible-command-completions (C-x !)}} +\entry{dynamic-complete-history (M-TAB)}{104}{\code {dynamic-complete-history (M-\key {TAB})}} +\entry{complete-into-braces (M-{\tt \char 123})}{104}{\code {complete-into-braces (M-{\tt \char 123})}} +\entry{start-kbd-macro (C-x ()}{104}{\code {start-kbd-macro (C-x ()}} +\entry{end-kbd-macro (C-x ))}{105}{\code {end-kbd-macro (C-x ))}} +\entry{call-last-kbd-macro (C-x e)}{105}{\code {call-last-kbd-macro (C-x e)}} +\entry{re-read-init-file (C-x C-r)}{105}{\code {re-read-init-file (C-x C-r)}} +\entry{abort (C-g)}{105}{\code {abort (C-g)}} +\entry{do-uppercase-version (M-a, M-b, M-x, ...{})}{105}{\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}} +\entry{prefix-meta (ESC)}{105}{\code {prefix-meta (\key {ESC})}} +\entry{undo (C-_ or C-x C-u)}{105}{\code {undo (C-_ or C-x C-u)}} +\entry{revert-line (M-r)}{105}{\code {revert-line (M-r)}} +\entry{tilde-expand (M-&)}{105}{\code {tilde-expand (M-&)}} +\entry{set-mark (C-@)}{105}{\code {set-mark (C-@)}} +\entry{exchange-point-and-mark (C-x C-x)}{105}{\code {exchange-point-and-mark (C-x C-x)}} +\entry{character-search (C-])}{105}{\code {character-search (C-])}} +\entry{character-search-backward (M-C-])}{105}{\code {character-search-backward (M-C-])}} +\entry{insert-comment (M-#)}{106}{\code {insert-comment (M-#)}} +\entry{dump-functions ()}{106}{\code {dump-functions ()}} +\entry{dump-variables ()}{106}{\code {dump-variables ()}} +\entry{dump-macros ()}{106}{\code {dump-macros ()}} +\entry{glob-complete-word (M-g)}{106}{\code {glob-complete-word (M-g)}} +\entry{glob-expand-word (C-x *)}{106}{\code {glob-expand-word (C-x *)}} +\entry{glob-list-expansions (C-x g)}{106}{\code {glob-list-expansions (C-x g)}} +\entry{display-shell-version (C-x C-v)}{106}{\code {display-shell-version (C-x C-v)}} +\entry{shell-expand-line (M-C-e)}{106}{\code {shell-expand-line (M-C-e)}} +\entry{history-expand-line (M-^)}{106}{\code {history-expand-line (M-^)}} +\entry{magic-space ()}{107}{\code {magic-space ()}} +\entry{alias-expand-line ()}{107}{\code {alias-expand-line ()}} +\entry{history-and-alias-expand-line ()}{107}{\code {history-and-alias-expand-line ()}} +\entry{insert-last-argument (M-. or M-_)}{107}{\code {insert-last-argument (M-. or M-_)}} +\entry{operate-and-get-next (C-o)}{107}{\code {operate-and-get-next (C-o)}} +\entry{edit-and-execute-command (C-xC-e)}{107}{\code {edit-and-execute-command (C-xC-e)}} diff --git a/doc/bashref.fns b/doc/bashref.fns index aa7cd7684..aa09fdc70 100644 --- a/doc/bashref.fns +++ b/doc/bashref.fns @@ -1,116 +1,116 @@ \initial {A} -\entry {\code {abort (C-g)}}{103} -\entry {\code {accept-line (Newline or Return)}}{97} -\entry {\code {alias-expand-line ()}}{105} +\entry {\code {abort (C-g)}}{105} +\entry {\code {accept-line (Newline or Return)}}{99} +\entry {\code {alias-expand-line ()}}{107} \initial {B} -\entry {\code {backward-char (C-b)}}{97} -\entry {\code {backward-delete-char (Rubout)}}{99} -\entry {\code {backward-kill-line (C-x Rubout)}}{100} -\entry {\code {backward-kill-word (M-\key {DEL})}}{100} -\entry {\code {backward-word (M-b)}}{97} -\entry {\code {beginning-of-history (M-<)}}{98} -\entry {\code {beginning-of-line (C-a)}}{97} +\entry {\code {backward-char (C-b)}}{99} +\entry {\code {backward-delete-char (Rubout)}}{101} +\entry {\code {backward-kill-line (C-x Rubout)}}{102} +\entry {\code {backward-kill-word (M-\key {DEL})}}{102} +\entry {\code {backward-word (M-b)}}{99} +\entry {\code {beginning-of-history (M-<)}}{100} +\entry {\code {beginning-of-line (C-a)}}{99} \initial {C} -\entry {\code {call-last-kbd-macro (C-x e)}}{103} -\entry {\code {capitalize-word (M-c)}}{99} -\entry {\code {character-search (C-])}}{103} -\entry {\code {character-search-backward (M-C-])}}{103} -\entry {\code {clear-screen (C-l)}}{97} -\entry {\code {complete (\key {TAB})}}{101} -\entry {\code {complete-command (M-!)}}{102} -\entry {\code {complete-filename (M-/)}}{102} -\entry {\code {complete-hostname (M-@)}}{102} -\entry {\code {complete-into-braces (M-{\tt \char 123})}}{102} -\entry {\code {complete-username (M-~)}}{102} -\entry {\code {complete-variable (M-$)}}{102} -\entry {\code {copy-backward-word ()}}{100} -\entry {\code {copy-forward-word ()}}{100} -\entry {\code {copy-region-as-kill ()}}{100} +\entry {\code {call-last-kbd-macro (C-x e)}}{105} +\entry {\code {capitalize-word (M-c)}}{101} +\entry {\code {character-search (C-])}}{105} +\entry {\code {character-search-backward (M-C-])}}{105} +\entry {\code {clear-screen (C-l)}}{99} +\entry {\code {complete (\key {TAB})}}{103} +\entry {\code {complete-command (M-!)}}{104} +\entry {\code {complete-filename (M-/)}}{104} +\entry {\code {complete-hostname (M-@)}}{104} +\entry {\code {complete-into-braces (M-{\tt \char 123})}}{104} +\entry {\code {complete-username (M-~)}}{104} +\entry {\code {complete-variable (M-$)}}{104} +\entry {\code {copy-backward-word ()}}{102} +\entry {\code {copy-forward-word ()}}{102} +\entry {\code {copy-region-as-kill ()}}{102} \initial {D} -\entry {\code {delete-char (C-d)}}{99} -\entry {\code {delete-char-or-list ()}}{102} -\entry {\code {delete-horizontal-space ()}}{100} -\entry {\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{101} -\entry {\code {display-shell-version (C-x C-v)}}{104} -\entry {\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}}{103} -\entry {\code {downcase-word (M-l)}}{99} -\entry {\code {dump-functions ()}}{104} -\entry {\code {dump-macros ()}}{104} -\entry {\code {dump-variables ()}}{104} -\entry {\code {dynamic-complete-history (M-\key {TAB})}}{102} +\entry {\code {delete-char (C-d)}}{101} +\entry {\code {delete-char-or-list ()}}{104} +\entry {\code {delete-horizontal-space ()}}{102} +\entry {\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{103} +\entry {\code {display-shell-version (C-x C-v)}}{106} +\entry {\code {do-uppercase-version (M-a, M-b, M-\var {x}, \dots {})}}{105} +\entry {\code {downcase-word (M-l)}}{101} +\entry {\code {dump-functions ()}}{106} +\entry {\code {dump-macros ()}}{106} +\entry {\code {dump-variables ()}}{106} +\entry {\code {dynamic-complete-history (M-\key {TAB})}}{104} \initial {E} -\entry {\code {edit-and-execute-command (C-xC-e)}}{105} -\entry {\code {end-kbd-macro (C-x ))}}{103} -\entry {\code {end-of-history (M->)}}{98} -\entry {\code {end-of-line (C-e)}}{97} -\entry {\code {exchange-point-and-mark (C-x C-x)}}{103} +\entry {\code {edit-and-execute-command (C-xC-e)}}{107} +\entry {\code {end-kbd-macro (C-x ))}}{105} +\entry {\code {end-of-history (M->)}}{100} +\entry {\code {end-of-line (C-e)}}{99} +\entry {\code {exchange-point-and-mark (C-x C-x)}}{105} \initial {F} -\entry {\code {forward-backward-delete-char ()}}{99} -\entry {\code {forward-char (C-f)}}{97} -\entry {\code {forward-search-history (C-s)}}{98} -\entry {\code {forward-word (M-f)}}{97} +\entry {\code {forward-backward-delete-char ()}}{101} +\entry {\code {forward-char (C-f)}}{99} +\entry {\code {forward-search-history (C-s)}}{100} +\entry {\code {forward-word (M-f)}}{99} \initial {G} -\entry {\code {glob-complete-word (M-g)}}{104} -\entry {\code {glob-expand-word (C-x *)}}{104} -\entry {\code {glob-list-expansions (C-x g)}}{104} +\entry {\code {glob-complete-word (M-g)}}{106} +\entry {\code {glob-expand-word (C-x *)}}{106} +\entry {\code {glob-list-expansions (C-x g)}}{106} \initial {H} -\entry {\code {history-and-alias-expand-line ()}}{105} -\entry {\code {history-expand-line (M-^)}}{104} -\entry {\code {history-search-backward ()}}{98} -\entry {\code {history-search-forward ()}}{98} +\entry {\code {history-and-alias-expand-line ()}}{107} +\entry {\code {history-expand-line (M-^)}}{106} +\entry {\code {history-search-backward ()}}{100} +\entry {\code {history-search-forward ()}}{100} \initial {I} -\entry {\code {insert-comment (M-#)}}{104} -\entry {\code {insert-completions (M-*)}}{101} -\entry {\code {insert-last-argument (M-. or M-_)}}{105} +\entry {\code {insert-comment (M-#)}}{106} +\entry {\code {insert-completions (M-*)}}{103} +\entry {\code {insert-last-argument (M-. or M-_)}}{107} \initial {K} -\entry {\code {kill-line (C-k)}}{100} -\entry {\code {kill-region ()}}{100} -\entry {\code {kill-whole-line ()}}{100} -\entry {\code {kill-word (M-d)}}{100} +\entry {\code {kill-line (C-k)}}{102} +\entry {\code {kill-region ()}}{102} +\entry {\code {kill-whole-line ()}}{102} +\entry {\code {kill-word (M-d)}}{102} \initial {M} -\entry {\code {magic-space ()}}{105} -\entry {\code {menu-complete ()}}{101} +\entry {\code {magic-space ()}}{107} +\entry {\code {menu-complete ()}}{103} \initial {N} -\entry {\code {next-history (C-n)}}{98} -\entry {\code {non-incremental-forward-search-history (M-n)}}{98} -\entry {\code {non-incremental-reverse-search-history (M-p)}}{98} +\entry {\code {next-history (C-n)}}{100} +\entry {\code {non-incremental-forward-search-history (M-n)}}{100} +\entry {\code {non-incremental-reverse-search-history (M-p)}}{100} \initial {O} -\entry {\code {operate-and-get-next (C-o)}}{105} -\entry {\code {overwrite-mode ()}}{99} +\entry {\code {operate-and-get-next (C-o)}}{107} +\entry {\code {overwrite-mode ()}}{101} \initial {P} -\entry {\code {possible-command-completions (C-x !)}}{102} -\entry {\code {possible-completions (M-?)}}{101} -\entry {\code {possible-filename-completions (C-x /)}}{102} -\entry {\code {possible-hostname-completions (C-x @)}}{102} -\entry {\code {possible-username-completions (C-x ~)}}{102} -\entry {\code {possible-variable-completions (C-x $)}}{102} -\entry {\code {prefix-meta (\key {ESC})}}{103} -\entry {\code {previous-history (C-p)}}{98} +\entry {\code {possible-command-completions (C-x !)}}{104} +\entry {\code {possible-completions (M-?)}}{103} +\entry {\code {possible-filename-completions (C-x /)}}{104} +\entry {\code {possible-hostname-completions (C-x @)}}{104} +\entry {\code {possible-username-completions (C-x ~)}}{104} +\entry {\code {possible-variable-completions (C-x $)}}{104} +\entry {\code {prefix-meta (\key {ESC})}}{105} +\entry {\code {previous-history (C-p)}}{100} \initial {Q} -\entry {\code {quoted-insert (C-q or C-v)}}{99} +\entry {\code {quoted-insert (C-q or C-v)}}{101} \initial {R} -\entry {\code {re-read-init-file (C-x C-r)}}{103} -\entry {\code {redraw-current-line ()}}{97} -\entry {\code {reverse-search-history (C-r)}}{98} -\entry {\code {revert-line (M-r)}}{103} +\entry {\code {re-read-init-file (C-x C-r)}}{105} +\entry {\code {redraw-current-line ()}}{99} +\entry {\code {reverse-search-history (C-r)}}{100} +\entry {\code {revert-line (M-r)}}{105} \initial {S} -\entry {\code {self-insert (a, b, A, 1, !, \dots {})}}{99} -\entry {\code {set-mark (C-@)}}{103} -\entry {\code {shell-expand-line (M-C-e)}}{104} -\entry {\code {start-kbd-macro (C-x ()}}{102} +\entry {\code {self-insert (a, b, A, 1, !, \dots {})}}{101} +\entry {\code {set-mark (C-@)}}{105} +\entry {\code {shell-expand-line (M-C-e)}}{106} +\entry {\code {start-kbd-macro (C-x ()}}{104} \initial {T} -\entry {\code {tilde-expand (M-&)}}{103} -\entry {\code {transpose-chars (C-t)}}{99} -\entry {\code {transpose-words (M-t)}}{99} +\entry {\code {tilde-expand (M-&)}}{105} +\entry {\code {transpose-chars (C-t)}}{101} +\entry {\code {transpose-words (M-t)}}{101} \initial {U} -\entry {\code {undo (C-_ or C-x C-u)}}{103} -\entry {\code {universal-argument ()}}{101} -\entry {\code {unix-filename-rubout ()}}{100} -\entry {\code {unix-line-discard (C-u)}}{100} -\entry {\code {unix-word-rubout (C-w)}}{100} -\entry {\code {upcase-word (M-u)}}{99} +\entry {\code {undo (C-_ or C-x C-u)}}{105} +\entry {\code {universal-argument ()}}{103} +\entry {\code {unix-filename-rubout ()}}{102} +\entry {\code {unix-line-discard (C-u)}}{102} +\entry {\code {unix-word-rubout (C-w)}}{102} +\entry {\code {upcase-word (M-u)}}{101} \initial {Y} -\entry {\code {yank (C-y)}}{101} -\entry {\code {yank-last-arg (M-. or M-_)}}{98} -\entry {\code {yank-nth-arg (M-C-y)}}{98} -\entry {\code {yank-pop (M-y)}}{101} +\entry {\code {yank (C-y)}}{103} +\entry {\code {yank-last-arg (M-. or M-_)}}{100} +\entry {\code {yank-nth-arg (M-C-y)}}{100} +\entry {\code {yank-pop (M-y)}}{103} diff --git a/doc/bashref.html b/doc/bashref.html index ae5630a1f..af3fcbf15 100644 --- a/doc/bashref.html +++ b/doc/bashref.html @@ -1,6 +1,6 @@ - +