From: Chet Ramey Date: Tue, 15 Oct 2024 14:02:17 +0000 (-0400) Subject: next set of documentation updates (job control); fix read timeout problem; fix bash... X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ed028ccec871bc8d3b198c1681374b1e37df7cd;p=thirdparty%2Fbash.git next set of documentation updates (job control); fix read timeout problem; fix bash-source-fullpath default; brace expansion integer overflow fix; fix for help output for loadable builtins --- diff --git a/CWRU/CWRU.chlog b/CWRU/CWRU.chlog index 64d17fcf..81ac532a 100644 --- a/CWRU/CWRU.chlog +++ b/CWRU/CWRU.chlog @@ -10307,5 +10307,56 @@ lib/readline/doc/hsuser.texi,lib/readline/doc/history.3 - next set of updates for consistency between formats, update language, fix formatting conventions + 10/11 + ----- +lib/readline/doc/rltech.texi,lib/readline/doc/hstech.texi + - next set of updates for consistency between formats, update language, + fix formatting conventions + + 10/12 + ----- +Makefile.in,builtins/Makefile.in + - update dependencies on readline, history include files +builtins/shopt.def + - update bash_source_fullpath reset to use new default + +configure.ac + - update to use the right option name for bash-source-fullpath-default + Report and patch from Grisha Levit + +braces.c + - mkseq: fix loop condition to avoid integer overflow + Report and patch from Grisha Levit + +builtins/help.def + - show_desc: don't assume that long_doc[0] ends with a newline, + just add one manually when we hit a newline or NULL + Report and patch from Grisha Levit + +builtins/read.def + - read_builtin: don't check the timeout after breaking out of the + character read loop unless we didn't read anything (i == 0) and + the last read return EOF or error + - read_builtin: move check_read_timeout call to the end of the read + loop, after we check for the delimiter and whether or not we've + read the right number of characters, so we always return any + valid data + Report from Thomas Oettli + + 10/14 + ----- +jobs.c + - wait_for_any_job: in posix mode, take any terminated pid from bgpids + before waiting for a running job to terminate + Inspired by report from Zachary Santer + + 10/14 + ----- +doc/bash.1,doc/bashref.texi + - next set of updates for consistency between formats, update language, + fix formatting conventions (job control section) +doc/bash.1,doc/bashref.texi,lib/readline/doc/readline.3,lib/readline/doc/rluser.texi + - minor wording updates and typo fixes from + G. Branden Robinson diff --git a/Makefile.in b/Makefile.in index cf7a8df8..4352eb00 100644 --- a/Makefile.in +++ b/Makefile.in @@ -330,6 +330,8 @@ HISTORY_LIBRARY = $(HIST_LIBDIR)/libhistory.a HISTORY_LDFLAGS = -L$(HIST_LIBDIR) HISTORY_DEP = @HISTORY_DEP@ +HIST_INCLUDEDIR = @HIST_INCLUDEDIR@ + # The source, object and documentation of the history library. HISTORY_SOURCE = $(HIST_LIBSRC)/history.c $(HIST_LIBSRC)/histexpand.c \ $(HIST_LIBSRC)/histsearch.c $(HIST_LIBSRC)/histfile.c \ @@ -1242,7 +1244,7 @@ shell.o: general.h xmalloc.h bashtypes.h variables.h arrayfunc.h conftypes.h arr shell.o: quit.h ${BASHINCDIR}/maxpath.h unwind_prot.h dispose_cmd.h shell.o: make_cmd.h subst.h sig.h pathnames.h externs.h parser.h shell.o: flags.h trap.h mailcheck.h builtins.h $(DEFSRC)/common.h -shell.o: jobs.h siglist.h input.h execute_cmd.h findcmd.h bashhist.h bashline.h +shell.o: jobs.h siglist.h input.h execute_cmd.h findcmd.h bashhist.h bashline.h shell.o: ${GLOB_LIBSRC}/strmatch.h ${BASHINCDIR}/posixtime.h ${BASHINCDIR}/posixwait.h shell.o: ${BASHINCDIR}/ocache.h ${BASHINCDIR}/chartypes.h assoc.h alias.h shell.o: $(BASHINCDIR)/unlocked-io.h @@ -1457,13 +1459,18 @@ pcomplete.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h pcomplete.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h pcomplete.o: $(RL_LIBSRC)/rltypedefs.h ${RL_LIBSRC}/rlmbutil.h -shell.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h +bashhist.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h +bashline.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h +bracecomp.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h +error.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h +eval.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h +execute_cmd.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h +flags.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h variables.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h subst.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h -bashline.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h -bashhist.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h y.tab.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h pcomplete.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h +shell.o: $(HIST_LIBSRC)/history.h $(HIST_LIBSRC)/rlstdc.h bashline.o: $(TILDE_LIBSRC)/tilde.h bracecomp.o: $(TILDE_LIBSRC)/tilde.h @@ -1815,9 +1822,13 @@ builtins/umask.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h builtins/bind.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h builtins/bind.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h +builtins/common.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +builtins/evalfile.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +builtins/evalstring.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h builtins/bind.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h builtins/fc.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h builtins/history.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +builtins/shopt.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h builtins/common.o: $(TILDE_LIBSRC)/tilde.h builtins/cd.o: $(TILDE_LIBSRC)/tilde.h diff --git a/braces.c b/braces.c index 099312e4..57c0b109 100644 --- a/braces.c +++ b/braces.c @@ -444,9 +444,12 @@ mkseq (intmax_t start, intmax_t end, intmax_t incr, int type, size_t width) return ((char **)NULL); } + if (i >= nelem - 1) + break; + n += incr; } - while (i < nelem - 1); + while (1); result[i] = (char *)0; return (result); diff --git a/builtins/Makefile.in b/builtins/Makefile.in index 0380be34..64643c73 100644 --- a/builtins/Makefile.in +++ b/builtins/Makefile.in @@ -77,6 +77,9 @@ BASHINCDIR = ${topdir}/include RL_INCLUDEDIR = @RL_INCLUDEDIR@ +HIST_LIBSRC = ${topdir}/lib/readline +RL_LIBSRC = ${topdir}/lib/readline + INTL_LIBSRC = ${topdir}/lib/intl INTL_BUILDDIR = ${LIBBUILD}/intl INTL_LIBDIR = ${INTL_BUILDDIR} @@ -683,7 +686,34 @@ mapfile.o: $(topdir)/subst.h $(topdir)/externs.h $(BASHINCDIR)/maxpath.h mapfile.o: $(topdir)/shell.h $(topdir)/syntax.h $(topdir)/variables.h $(topdir)/conftypes.h mapfile.o: $(topdir)/arrayfunc.h ../pathnames.h -#bind.o: $(RL_LIBSRC)chardefs.h $(RL_LIBSRC)readline.h $(RL_LIBSRC)keymaps.h +bind.o: $(RL_LIBSRC)/rlconf.h +bind.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h +bind.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h +bind.o: $(RL_LIBSRC)/rltypedefs.h ${RL_LIBSRC}/rlmbutil.h +complete.o: $(RL_LIBSRC)/rlconf.h +complete.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h +complete.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h +complete.o: $(RL_LIBSRC)/rltypedefs.h ${RL_LIBSRC}/rlmbutil.h +history.o: $(RL_LIBSRC)/rlconf.h +history.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h +history.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h +history.o: $(RL_LIBSRC)/rltypedefs.h ${RL_LIBSRC}/rlmbutil.h +read.o: $(RL_LIBSRC)/rlconf.h +read.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h +read.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h +read.o: $(RL_LIBSRC)/rltypedefs.h ${RL_LIBSRC}/rlmbutil.h +set.o: $(RL_LIBSRC)/rlconf.h +set.o: $(RL_LIBSRC)/keymaps.h $(RL_LIBSRC)/rlstdc.h +set.o: $(RL_LIBSRC)/chardefs.h $(RL_LIBSRC)/readline.h +set.o: $(RL_LIBSRC)/rltypedefs.h ${RL_LIBSRC}/rlmbutil.h + +common.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +evalfile.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +evalstring.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +bind.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +fc.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +history.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h +shopt.o: $(HIST_LIBSRC)/history.h $(RL_LIBSRC)/rlstdc.h # libintl dependencies bind.o: ${topdir}/bashintl.h ${LIBINTL_H} $(BASHINCDIR)/gettext.h diff --git a/builtins/help.def b/builtins/help.def index 770ded01..8881900c 100644 --- a/builtins/help.def +++ b/builtins/help.def @@ -265,12 +265,10 @@ show_desc (char *name, int i) line = doc ? doc[0] : (char *)NULL; printf ("%s - ", name); - for (j = 0; line && line[j]; j++) - { - putchar (line[j]); - if (line[j] == '\n') - break; - } + /* Don't assume LINE ends with a newline. */ + for (j = 0; line && line[j] && line[j] != '\n'; j++) + putchar (line[j]); + putchar ('\n'); fflush (stdout); diff --git a/builtins/read.def b/builtins/read.def index ffcc1614..3e908dc7 100644 --- a/builtins/read.def +++ b/builtins/read.def @@ -843,7 +843,6 @@ read_builtin (WORD_LIST *list) add_char: input_string[i++] = c; - check_read_timeout (); #if defined (HANDLE_MULTIBYTE) /* XXX - what if C == 127? Can DEL introduce a multibyte sequence? */ @@ -878,6 +877,8 @@ add_char: if (nchars > 0 && nr >= nchars) break; + + check_read_timeout (); } /* Back up over trailing CTLESC if the input ends with an unescaped backslash */ @@ -891,7 +892,10 @@ add_char: saw_escape = 0; /* Avoid dequoting bare CTLNUL */ input_string[i] = '\0'; - check_read_timeout (); + /* Don't check the timeout unless we didn't read anything and zread returned + EOF or error. */ + if (i == 0 && retval <= 0) + check_read_timeout (); #if defined (READLINE) if (edit) diff --git a/builtins/shopt.def b/builtins/shopt.def index 1c7a3bd7..fa0b7b8c 100644 --- a/builtins/shopt.def +++ b/builtins/shopt.def @@ -376,10 +376,10 @@ reset_shopt_options (void) glob_ignore_case = match_ignore_case = 0; print_shift_error = 0; source_uses_path = promptvars = 1; - bash_source_fullpath = 0; varassign_redir_autoclose = 0; singlequote_translations = 0; patsub_replacement = PATSUB_REPLACE_DEFAULT; + bash_source_fullpath = BASH_SOURCE_FULLPATH_DEFAULT; #if defined (JOB_CONTROL) check_jobs_at_exit = 0; diff --git a/configure b/configure index 9c41015a..5a0f0310 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac for Bash 5.3, version 5.069. +# From configure.ac for Bash 5.3, version 5.071. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.72 for bash 5.3-beta. # @@ -748,6 +748,7 @@ INSTALL_DATA INSTALL_SCRIPT INSTALL_PROGRAM TILDE_LIB +HIST_INCLUDEDIR HIST_LIBDIR HISTORY_DEP HISTORY_LIB @@ -3458,7 +3459,7 @@ opt_function_import=yes opt_dev_fd_stat_broken=no opt_alt_array_impl=no opt_translatable_strings=yes -opt_bash_source_fullpath=no +opt_bash_source_fullpath_default=no ARRAY_O=array.o @@ -3484,7 +3485,7 @@ if test $opt_minimal_config = yes; then opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no opt_translatable_strings=no opt_globascii_default=yes - opt_bash_source_fullpath=no + opt_bash_source_fullpath_default=no fi # Check whether --enable-alias was given. @@ -5950,6 +5951,8 @@ if test $opt_readline = yes; then else RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' READLINE_DEP='$(READLINE_LIBRARY)' + # for dependencies + RL_INCLUDEDIR='$(RL_LIBDIR)' # section for OS versions that ship an older/broken version of # readline as a standard dynamic library and don't allow a # static version specified as -llibname to override the @@ -5962,6 +5965,7 @@ if test $opt_readline = yes; then else RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' READLINE_LIB= READLINE_DEP= + RL_INCLUDEDIR= fi if test $opt_history = yes || test $opt_bang_history = yes; then if test $opt_history = yes; then @@ -5987,6 +5991,8 @@ if test $opt_history = yes || test $opt_bang_history = yes; then else HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' HISTORY_DEP='$(HISTORY_LIBRARY)' + # for dependencies + HIST_INCLUDEDIR='$(HIST_LIBDIR)' # section for OS versions that ship an older version of # readline as a standard dynamic library and don't allow a # static version specified as -llibname to override the @@ -5999,6 +6005,7 @@ if test $opt_history = yes || test $opt_bang_history = yes; then else HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' HISTORY_LIB= HISTORY_DEP= + HIST_INCLUDEDIR= fi @@ -6012,6 +6019,7 @@ fi + # Find a good install program. We prefer a C program (faster), # so one script is as good as another. But avoid the broken or # incompatible versions: @@ -9218,8 +9226,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ LIBS=$save_LIBS test $gl_pthread_api = yes && break done - echo "$as_me:9221: gl_pthread_api=$gl_pthread_api" >&5 - echo "$as_me:9222: LIBPTHREAD=$LIBPTHREAD" >&5 + echo "$as_me:9229: gl_pthread_api=$gl_pthread_api" >&5 + echo "$as_me:9230: LIBPTHREAD=$LIBPTHREAD" >&5 gl_pthread_in_glibc=no # On Linux with glibc >= 2.34, libc contains the fully functional @@ -9245,7 +9253,7 @@ rm -rf conftest* ;; esac - echo "$as_me:9248: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 + echo "$as_me:9256: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) @@ -9423,7 +9431,7 @@ fi fi fi - echo "$as_me:9426: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 + echo "$as_me:9434: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 printf %s "checking whether POSIX threads API is available... " >&6; } @@ -9670,8 +9678,8 @@ rm -f core conftest.err conftest.$ac_objext conftest.beam \ LIBS=$save_LIBS test $gl_pthread_api = yes && break done - echo "$as_me:9673: gl_pthread_api=$gl_pthread_api" >&5 - echo "$as_me:9674: LIBPTHREAD=$LIBPTHREAD" >&5 + echo "$as_me:9681: gl_pthread_api=$gl_pthread_api" >&5 + echo "$as_me:9682: LIBPTHREAD=$LIBPTHREAD" >&5 gl_pthread_in_glibc=no # On Linux with glibc >= 2.34, libc contains the fully functional @@ -9697,7 +9705,7 @@ rm -rf conftest* ;; esac - echo "$as_me:9700: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 + echo "$as_me:9708: gl_pthread_in_glibc=$gl_pthread_in_glibc" >&5 # Test for libpthread by looking for pthread_kill. (Not pthread_self, # since it is defined as a macro on OSF/1.) @@ -9875,7 +9883,7 @@ fi fi fi - echo "$as_me:9878: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 + echo "$as_me:9886: LIBPMULTITHREAD=$LIBPMULTITHREAD" >&5 fi { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether POSIX threads API is available" >&5 printf %s "checking whether POSIX threads API is available... " >&6; } diff --git a/configure.ac b/configure.ac index d29c8861..124437dd 100644 --- a/configure.ac +++ b/configure.ac @@ -21,7 +21,7 @@ dnl Process this file with autoconf to produce a configure script. # You should have received a copy of the GNU General Public License # along with this program. If not, see . -AC_REVISION([for Bash 5.3, version 5.069])dnl +AC_REVISION([for Bash 5.3, version 5.071])dnl define(bashvers, 5.3) define(relstatus, beta) @@ -186,7 +186,7 @@ opt_function_import=yes opt_dev_fd_stat_broken=no opt_alt_array_impl=no opt_translatable_strings=yes -opt_bash_source_fullpath=no +opt_bash_source_fullpath_default=no dnl modified by alternate array implementation option ARRAY_O=array.o @@ -212,7 +212,7 @@ if test $opt_minimal_config = yes; then opt_casemod_attrs=no opt_casemod_expansions=no opt_extglob_default=no opt_translatable_strings=no opt_globascii_default=yes - opt_bash_source_fullpath=no + opt_bash_source_fullpath_default=no fi AC_ARG_ENABLE(alias, AS_HELP_STRING([--enable-alias], [enable shell aliases]), opt_alias=$enableval) @@ -622,6 +622,8 @@ if test $opt_readline = yes; then else RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' READLINE_DEP='$(READLINE_LIBRARY)' + # for dependencies + RL_INCLUDEDIR='$(RL_LIBDIR)' # section for OS versions that ship an older/broken version of # readline as a standard dynamic library and don't allow a # static version specified as -llibname to override the @@ -634,6 +636,7 @@ if test $opt_readline = yes; then else RL_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' READLINE_LIB= READLINE_DEP= + RL_INCLUDEDIR= fi if test $opt_history = yes || test $opt_bang_history = yes; then if test $opt_history = yes; then @@ -657,6 +660,8 @@ if test $opt_history = yes || test $opt_bang_history = yes; then else HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' HISTORY_DEP='$(HISTORY_LIBRARY)' + # for dependencies + HIST_INCLUDEDIR='$(HIST_LIBDIR)' # section for OS versions that ship an older version of # readline as a standard dynamic library and don't allow a # static version specified as -llibname to override the @@ -669,6 +674,7 @@ if test $opt_history = yes || test $opt_bang_history = yes; then else HIST_LIBDIR='$(dot)/$(LIBSUBDIR)/readline' HISTORY_LIB= HISTORY_DEP= + HIST_INCLUDEDIR= fi AC_SUBST(READLINE_LIB) AC_SUBST(READLINE_DEP) @@ -678,6 +684,7 @@ AC_SUBST(RL_INCLUDE) AC_SUBST(HISTORY_LIB) AC_SUBST(HISTORY_DEP) AC_SUBST(HIST_LIBDIR) +AC_SUBST(HIST_INCLUDEDIR) AC_SUBST(TILDE_LIB) dnl END READLINE and HISTORY LIBRARY SECTION diff --git a/doc/bash.0 b/doc/bash.0 index f8d3bde6..c9102921 100644 --- a/doc/bash.0 +++ b/doc/bash.0 @@ -1528,20 +1528,20 @@ PPAARRAAMMEETTEERRSS bbaasshh creates temporary files for the shell's use. aauuttoo__rreessuummee This variable controls how the shell interacts with the user and - 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 most recently accessed job 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. + job control. If this variable is set, simple commands consist- + ing of only a single word, without redirections, are treated as + candidates for resumption of an existing stopped job. There is + no ambiguity allowed; if there is more than one job beginning + with or containing the word, this selects the most recently ac- + cessed job. The _n_a_m_e of a stopped job, in this context, is the + command line used to start it, as displayed by jjoobbss. If set to + the value _e_x_a_c_t, the word must match the name of a stopped job + exactly; if set to _s_u_b_s_t_r_i_n_g, the word needs to match a sub- + string of the name of a stopped job. The _s_u_b_s_t_r_i_n_g value pro- + vides functionality analogous to the %%?? job identifier (see JJOOBB + CCOONNTTRROOLL below). If set to any other value (e.g., _p_r_e_f_i_x), the + word 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 tokenization (see HHIISSTTOORRYY EEXXPPAANNSSIIOONN below). The first character @@ -1788,7 +1788,7 @@ EEXXPPAANNSSIIOONN displayed by the ddiirrss builtin invoked with the characters following the tilde in the tilde-prefix as an argument. If the characters following the tilde in the tilde-prefix consist of a number without a leading "+" - or "-", "+" is assumed. + or "-", tilde expansion assumes "+". The results of tilde expansion are treated as if they were quoted, so the replacement is not subject to word splitting and pathname expan- @@ -1864,12 +1864,12 @@ EEXXPPAANNSSIIOONN ${_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 - it is not interactive, exits with a non-zero status. An inter- - active shell does not exit, but does not execute the command as- - sociated with the expansion. Otherwise, the value of _p_a_r_a_m_e_t_e_r - is substituted. + the shell writes the expansion of _w_o_r_d (or a message to that ef- + fect if _w_o_r_d is not present) to the standard error and, if it is + not interactive, exits with a non-zero status. An interactive + shell does not exit, but does not execute the command associated + with the expansion. Otherwise, the value of _p_a_r_a_m_e_t_e_r is sub- + stituted. ${_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 @@ -2673,15 +2673,17 @@ AALLIIAASSEESS commands on that line or the compound command. 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 shell reads the next line of input. The commands fol- - lowing 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- - mand. As a consequence, aliases defined in a function are not avail- - able until after that function is executed. To be safe, always put - alias definitions on a separate line, and do not use aalliiaass in compound - commands. + effect until the shell reads the next line of input, and an alias defi- + nition in a compound command does not take effect until the shell + parses and executes the entire compound command. The commands follow- + ing the alias definition on that line, or in the rest of a compound + command, are not affected by the new alias. This behavior is also an + issue when functions are executed. Aliases are expanded when a func- + tion definition is read, not when the function is executed, because a + function definition is itself a command. As a consequence, aliases de- + fined in a function are not available until after that function is exe- + cuted. To be safe, always put alias definitions on a separate line, + and do not use aalliiaass in compound commands. For almost every purpose, shell functions are preferable to aliases. @@ -3277,82 +3279,99 @@ JJOOBB CCOONNTTRROOLL ver 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 - line that looks like: + currently executing jobs, which the jjoobbss command will display. Each + job has a _j_o_b _n_u_m_b_e_r, which jjoobbss displays between brackets. Job num- + bers start at 1. 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, - 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 - differs from the terminal's; such processes are immune to keyboard-gen- - erated signals. Only foreground processes are allowed to read from or, - if the user so specifies with "stty tostop", write to the terminal. - Background processes which attempt to read from (write to when "tostop" - is in effect) the terminal are sent a SSIIGGTTTTIINN ((SSIIGGTTTTOOUU)) signal by the - kernel's terminal driver, which, unless caught, suspends the process. + To facilitate the implementation of the user interface to job control, + each process has a _p_r_o_c_e_s_s _g_r_o_u_p _I_D, and 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. Processes that have + the same process group ID are said to be part of the same _p_r_o_c_e_s_s + _g_r_o_u_p. Members of the _f_o_r_e_g_r_o_u_n_d process group (processes whose + process group ID is equal to the current terminal process group ID) re- + ceive keyboard-generated signals such as SSIIGGIINNTT. Processes in the + foreground process group are said to be _f_o_r_e_g_r_o_u_n_d processes. _B_a_c_k_- + _g_r_o_u_n_d processes are those whose process group ID differs from the ter- + minal's; such processes are immune to keyboard-generated signals. Only + foreground processes are allowed to read from or, if the user so speci- + fies with "stty tostop", write to the terminal. Background processes + which attempt to read from (write to when "tostop" is in effect) the + terminal are sent a SSIIGGTTTTIINN ((SSIIGGTTTTOOUU)) signal by the kernel's terminal + driver, which, unless caught, suspends the process. 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 re- - turned 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 specification (_j_o_b_s_p_e_c). 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 example, %%ccee refers to a stopped job whose command name be- - gins with ccee. If a prefix matches more than one 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 background. The _p_r_e_v_i_o_u_s _j_o_b may - be referenced using %%--. If there is only a single job, %%++ and %%-- can - both be used to refer to that job. In output pertaining 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 job. - - Simply naming a job can be used to bring it into the foreground: %%11 is - a synonym for "fg %1", bringing job 1 from the background into the + ically ^^ZZ, Control-Z) while a process is running stops that process and + returns control to bbaasshh. Typing the _d_e_l_a_y_e_d _s_u_s_p_e_n_d character (typi- + cally ^^YY, Control-Y) causes the process stop when it attempts to read + input from the terminal, and returns control to bbaasshh. The user then + manipulates 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. The suspend character takes effect imme- + diately, and has the additional side effect of discarding any pending + output and typeahead. To force a background process to stop, or stop a + process that's not associated with the current terminal session, send + it the SSIIGGSSTTOOPP signal using kkiillll. + + There are a number of ways to refer to a job in the shell. The %% char- + acter introduces a job specification (jobspec). + + 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 example, %%ccee refers to a job whose + command name begins with ccee. Using %%??ccee, on the other hand, refers to + any job containing the string ccee in its command line. If the prefix or + 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. + A single % (with no accompanying job specification) also refers to the + current job. %%-- refers to the _p_r_e_v_i_o_u_s _j_o_b. When a job starts in the + background, a job stops while in the foreground, or a job is resumed in + the background, it becomes the current job. The job that was the cur- + rent job becomes the previous job. When the current job terminates, + the previous job becomes the current job. If there is only a single + job, %%++ and %%-- can both be used to refer to that job. In output per- + taining to jobs (e.g., the output of the jjoobbss command), the current job + is always marked with a ++, and the previous job with a --. + + Simply naming a job can be used to bring it into the foreground: %%11 is + a synonym for "fg %1", bringing job 1 from the background into the foreground. Similarly, "%1 &" resumes job 1 in the background, equiva- lent to "bg %1". - 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, though it - will notify of changes in a job's status after a foreground command in - a list completes, before executing the next command. If the --bb option - to the sseett builtin command is enabled, bbaasshh reports such changes imme- - diately. Any trap on SSIIGGCCHHLLDD is executed for each child that exits. - - If an attempt to exit bbaasshh is made while jobs are stopped (or, if the + The shell learns immediately whenever a job changes state. Normally, + bbaasshh waits until it is about to print a prompt before notifying the + user about changes in a job's status so as to not interrupt any other + output, though it will notify of changes in a job's status after a + foreground command in a list completes, before executing the next com- + mand in the list. If the --bb option to the sseett builtin command is en- + abled, bbaasshh reports such changes immediately. BBaasshh executes any trap + on SSIIGGCCHHLLDD for each child that terminates. + + When a job terminates and bbaasshh notifies the user about it, bbaasshh removes + the job from the table. It will not appear in jjoobbss output, but wwaaiitt + will report its exit status, as long as it's supplied the process ID + associated with the job as an argument. When the table is empty, job + numbers start over at 1. + + If a user attempts to exit bbaasshh while jobs are stopped (or, if the cchheecckkjjoobbss shell option has been enabled using the sshhoopptt builtin, run- ning), the shell prints a warning message, and, if the cchheecckkjjoobbss option is enabled, lists the jobs and their statuses. The jjoobbss command may - then be used to inspect their status. If a second attempt to exit is - made without an intervening command, the shell does not print another - warning, and any stopped jobs are terminated. + then be used to inspect their status. If the user immediately attempts + to exit again, without an intervening command, bbaasshh does not print an- + other warning, and terminates any stopped jobs. - When the shell is waiting for a job or process using the wwaaiitt builtin, - and job control is enabled, wwaaiitt will return when the job changes + When the shell is waiting for a job or process using the wwaaiitt builtin, + and job control is enabled, wwaaiitt will return when the job changes state. The --ff option causes wwaaiitt to wait until the job or process ter- minates before returning. @@ -3499,21 +3518,22 @@ RREEAADDLLIINNEE _s_a_l_-_a_r_g_u_m_e_n_t. Key bindings may contain the following symbolic character names: _D_E_L, - _E_S_C, _E_S_C_A_P_E, _L_F_D, _N_E_W_L_I_N_E, _R_E_T, _R_E_T_U_R_N, _R_U_B_O_U_T, _S_P_A_C_E, _S_P_C, and _T_A_B. + _E_S_C, _E_S_C_A_P_E, _L_F_D, _N_E_W_L_I_N_E, _R_E_T, _R_E_T_U_R_N, _R_U_B_O_U_T(a_d_e_s_t_r_u_c_t_i_v_ebackspace), + _S_P_A_C_E, _S_P_C, 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). The differ- - ence between a macro and a command is that a macro is enclosed in sin- + ence between a macro and a command is that a macro is enclosed in sin- gle or double quotes. 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 key sequence may - be specified 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 composed of one or - more characters enclosed in double quotes. The key sequence and name - are separated by a colon. There can be no whitespace between the name + 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 key sequence may + be specified 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 composed of one or + more characters enclosed in double quotes. The key sequence and name + are separated by a colon. There can be no whitespace between the name and the colon. When using the form kkeeyynnaammee:_f_u_n_c_t_i_o_n_-_n_a_m_e or _m_a_c_r_o, _k_e_y_n_a_m_e is the name @@ -3523,15 +3543,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 none of the symbolic character names are recognized. "\C-u": universal-argument @@ -3539,21 +3559,21 @@ 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 available when speci- + The full set of GNU Emacs style escape sequences available when speci- fying key sequences is \\CC-- A control prefix. - \\MM-- Adding the meta prefix or converting the following char- - acter to a meta character, as described below under + \\MM-- Adding the meta prefix or converting the following char- + acter to a meta character, as described below under ffoorrccee--mmeettaa--pprreeffiixx. \\ee An escape character. \\\\ Backslash. \\"" Literal ", a double quote. \\'' Literal ', a single quote. - 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 @@ -3563,20 +3583,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. Tthe backslash escapes described above are expanded in the - macro body. Backslash will quote any other character in the macro + tion name. Tthe backslash escapes described above are expanded in the + macro body. Backslash will quote any other character in the macro text, including " and '. - BBaasshh will display or modify the current readline key bindings with the + BBaasshh will display or modify the current readline key bindings with the bbiinndd builtin command. The --oo eemmaaccss or --oo vvii options to the sseett builtin - (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) will change the editing mode during + (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) will change the editing mode during interactive use. RReeaaddlliinnee VVaarriiaabblleess @@ -3587,359 +3607,359 @@ RREEAADDLLIINNEE sseett _v_a_r_i_a_b_l_e_-_n_a_m_e _v_a_l_u_e or using the bbiinndd builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). - Except where noted, readline variables can take the values OOnn or OOffff - (without regard to case). Unrecognized variable names are ignored. + Except where noted, readline variables can take the values OOnn or OOffff + (without regard to case). Unrecognized variable names are ignored. When readline reads a variable value, empty or null values, "on" (case- - insensitive), and "1" are equivalent to OOnn. All other values are + insensitive), and "1" are equivalent to OOnn. All other values are equivalent to OOffff. - The bbiinndd --VV command lists the current readline variable names and val- + The bbiinndd --VV command lists the current readline variable names and val- ues (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). The variables and their default values are: aaccttiivvee--rreeggiioonn--ssttaarrtt--ccoolloorr - A string variable that controls the text color and background - when displaying the text in the active region (see the descrip- - tion of eennaabbllee--aaccttiivvee--rreeggiioonn below). This string must not take + A string variable that controls the text color and background + when displaying the text in the active region (see the descrip- + tion of eennaabbllee--aaccttiivvee--rreeggiioonn below). This string must not take up any physical character positions on the display, so it should - consist only of terminal escape sequences. It is output to the - terminal before displaying the text in the active region. This - variable is reset to the default value whenever the terminal - type changes. The default value is the string that puts the - terminal in standout mode, as obtained from the terminal's ter- + consist only of terminal escape sequences. It is output to the + terminal before displaying the text in the active region. This + variable is reset to the default value whenever the terminal + type changes. The default value is the string that puts the + terminal in standout mode, as obtained from the terminal's ter- minfo description. A sample value might be "\e[01;33m". aaccttiivvee--rreeggiioonn--eenndd--ccoolloorr - A string variable that "undoes" the effects of aaccttiivvee--rree-- - ggiioonn--ssttaarrtt--ccoolloorr and restores "normal" terminal display appear- - ance after displaying text in the active region. This string - must not take up any physical character positions on the dis- - play, so it should consist only of terminal escape sequences. - It is output to the terminal after displaying the text in the - active region. This variable is reset to the default value - whenever the terminal type changes. The default value is the - string that restores the terminal from standout mode, as ob- + A string variable that "undoes" the effects of aaccttiivvee--rree-- + ggiioonn--ssttaarrtt--ccoolloorr and restores "normal" terminal display appear- + ance after displaying text in the active region. This string + must not take up any physical character positions on the dis- + play, so it should consist only of terminal escape sequences. + It is output to the terminal after displaying the text in the + active region. This variable is reset to the default value + whenever the terminal type changes. The default value is the + string that restores the terminal from standout mode, as ob- tained from the terminal's terminfo description. A sample value might be "\e[0m". 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 - that are treated specially by the kernel's terminal driver to + If set to OOnn, readline attempts to bind the control characters + that are treated specially by the kernel's terminal driver to their readline equivalents. These override the default readline bindings described here. Type "stty -a" at a bbaasshh prompt to see - your current terminal settings, including the special control + your current terminal settings, including the special control characters (usually cccchhaarrss). bblliinnkk--mmaattcchhiinngg--ppaarreenn ((OOffff)) If set to OOnn, readline attempts to briefly move the cursor to an opening parenthesis when a closing parenthesis is inserted. ccoolloorreedd--ccoommpplleettiioonn--pprreeffiixx ((OOffff)) - If set to OOnn, when listing completions, readline displays the + If set to OOnn, when listing completions, readline displays the common prefix of the set of possible completions using a differ- - ent color. The color definitions are taken from the value of + ent color. The color definitions are taken from the value of the LLSS__CCOOLLOORRSS environment variable. If there is a color defini- - tion in $$LLSS__CCOOLLOORRSS for the custom suffix "readline-colored-com- - pletion-prefix", readline uses this color for the common prefix + tion in $$LLSS__CCOOLLOORRSS for the custom suffix "readline-colored-com- + pletion-prefix", readline uses this color for the common prefix instead of its default. ccoolloorreedd--ssttaattss ((OOffff)) - If set to OOnn, readline displays possible completions using dif- - ferent colors to indicate their file type. The color defini- - tions are taken from the value of the LLSS__CCOOLLOORRSS environment + If set to OOnn, readline displays possible completions using dif- + ferent colors to indicate their file type. The color defini- + tions are taken from the value of the LLSS__CCOOLLOORRSS environment variable. ccoommmmeenntt--bbeeggiinn (("##")) - The string that the readline iinnsseerrtt--ccoommmmeenntt command inserts. - This command is bound to MM--## in emacs mode and to ## in vi com- + The string that the readline iinnsseerrtt--ccoommmmeenntt command inserts. + This command is bound to MM--## in emacs mode and to ## in vi com- mand mode. ccoommpplleettiioonn--ddiissppllaayy--wwiiddtthh ((--11)) - The number of screen columns used to display possible matches - when performing completion. The value is ignored if it is less - than 0 or greater than the terminal screen width. A value of 0 - will cause matches to be displayed one per line. The default + The number of screen columns used to display possible matches + when performing completion. The value is ignored if it is less + than 0 or greater than the terminal screen width. A value of 0 + will cause matches to be displayed one per line. The default value is -1. ccoommpplleettiioonn--iiggnnoorree--ccaassee ((OOffff)) If set to OOnn, readline performs filename matching and completion in a case-insensitive fashion. ccoommpplleettiioonn--mmaapp--ccaassee ((OOffff)) - If set to OOnn, and ccoommpplleettiioonn--iiggnnoorree--ccaassee is enabled, readline - treats hyphens (_-) and underscores (__) as equivalent when per- + If set to OOnn, and ccoommpplleettiioonn--iiggnnoorree--ccaassee is enabled, readline + treats hyphens (_-) and underscores (__) as equivalent when per- forming case-insensitive filename matching and completion. ccoommpplleettiioonn--pprreeffiixx--ddiissppllaayy--lleennggtthh ((00)) - The maximum length in characters of the common prefix of a list - of possible completions that is displayed without modification. - When set to a value greater than zero, readline replaces common + The maximum length in characters of the common prefix of a list + of possible completions that is displayed without modification. + When set to a value greater than zero, readline replaces common prefixes longer than this value with an ellipsis when displaying possible completions. 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 - greater than or equal to the value of this variable, readline - will ask whether or not the user wishes to view them; otherwise - readline simply lists them on the terminal. A zero value means + 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, readline + will ask whether or not the user wishes to view them; otherwise + readline simply lists them on the terminal. A zero value means readline should never ask; negative values are treated as zero. ccoonnvveerrtt--mmeettaa ((OOnn)) - If set to OOnn, readline will convert characters it reads that + If set to OOnn, readline will convert characters it reads that have the eighth bit set to an ASCII key sequence by clearing the eighth bit and prefixing it with an escape character (converting - the character to have the _m_e_t_a _p_r_e_f_i_x). The default is _O_n, but - readline will set it to _O_f_f if the locale contains characters + the character to have the _m_e_t_a _p_r_e_f_i_x). The default is _O_n, but + readline will set it to _O_f_f if the locale contains characters whose encodings may include bytes with the eighth bit set. This - variable is dependent on the LLCC__CCTTYYPPEE locale category, and may - change if the locale changes. This variable also affects key + variable is dependent on the LLCC__CCTTYYPPEE locale category, and may + change if the locale changes. This variable also affects key bindings; see the description of ffoorrccee--mmeettaa--pprreeffiixx below. 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. eecchhoo--ccoonnttrrooll--cchhaarraacctteerrss ((OOnn)) - When set to OOnn, on operating systems that indicate they support + When set to OOnn, on operating systems that indicate they support it, readline echoes a character corresponding to a signal gener- ated from the keyboard. eeddiittiinngg--mmooddee ((eemmaaccss)) - Controls whether readline uses a set of key bindings similar to + Controls whether readline uses a set of key bindings similar to _E_m_a_c_s or _v_i. eeddiittiinngg--mmooddee can be set to either eemmaaccss or vvii. eemmaaccss--mmooddee--ssttrriinngg ((@@)) - If the _s_h_o_w_-_m_o_d_e_-_i_n_-_p_r_o_m_p_t variable is enabled, this string is + If the _s_h_o_w_-_m_o_d_e_-_i_n_-_p_r_o_m_p_t variable is enabled, this string is displayed immediately before the last line of the primary prompt when emacs editing mode is active. The value is expanded like a - key binding, so the standard set of meta- and control- prefixes - and backslash escape sequences is available. The \1 and \2 es- - capes begin and end sequences of non-printing characters, which - can be used to embed a terminal control sequence into the mode + key binding, so the standard set of meta- and control- prefixes + and backslash escape sequences is available. The \1 and \2 es- + capes begin and end sequences of non-printing characters, which + can be used to embed a terminal control sequence into the mode string. eennaabbllee--aaccttiivvee--rreeggiioonn ((OOnn)) - The _p_o_i_n_t is the current cursor position, and _m_a_r_k refers to a - saved cursor position. The text between the point and mark is - referred to as the _r_e_g_i_o_n. When this variable is set to _O_n, - readline allows certain commands to designate the region as _a_c_- - _t_i_v_e. When the region is active, readline highlights the text - in the region using the value of the aaccttiivvee--rreeggiioonn--ssttaarrtt--ccoolloorr, - which defaults to the string that enables the terminal's stand- - out mode. The active region shows the text inserted by brack- - eted-paste and any matching text found by incremental and non- + The _p_o_i_n_t is the current cursor position, and _m_a_r_k refers to a + saved cursor position. The text between the point and mark is + referred to as the _r_e_g_i_o_n. When this variable is set to _O_n, + readline allows certain commands to designate the region as _a_c_- + _t_i_v_e. When the region is active, readline highlights the text + in the region using the value of the aaccttiivvee--rreeggiioonn--ssttaarrtt--ccoolloorr, + which defaults to the string that enables the terminal's stand- + out mode. The active region shows the text inserted by brack- + eted-paste and any matching text found by incremental and non- incremental history searches. eennaabbllee--bbrraacckkeetteedd--ppaassttee ((OOnn)) - When set to OOnn, readline configures the terminal to insert each - paste into the editing buffer as a single string of characters, - instead of treating each character as if it had been read from - the keyboard. This is called _b_r_a_c_k_e_t_e_d_-_p_a_s_t_e _m_o_d_e; it prevents - readline from executing any editing commands bound to key se- + When set to OOnn, readline configures the terminal to insert each + paste into the editing buffer as a single string of characters, + instead of treating each character as if it had been read from + the keyboard. This is called _b_r_a_c_k_e_t_e_d_-_p_a_s_t_e _m_o_d_e; it prevents + readline from executing any editing commands bound to key se- quences appearing in the pasted text. 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 ar- row keys. eennaabbllee--mmeettaa--kkeeyy ((OOnn)) - When set to OOnn, readline will try to enable any meta modifier + When set to OOnn, readline will try to enable any meta modifier key the terminal claims to support. On many terminals, the Meta - key is used to send eight-bit characters; this variable checks - for the terminal capability that indicates the terminal can en- - able and disable a mode that sets the eighth bit of a character - (0200) if the Meta key is held down when the character is typed + key is used to send eight-bit characters; this variable checks + for the terminal capability that indicates the terminal can en- + able and disable a mode that sets the eighth bit of a character + (0200) if the Meta key is held down when the character is typed (a meta character). eexxppaanndd--ttiillddee ((OOffff)) If set to OOnn, readline performs tilde expansion when it attempts word completion. ffoorrccee--mmeettaa--pprreeffiixx ((OOffff)) - If set to OOnn, readline modifies its behavior when binding key - sequences containing \M- or Meta- (see KKeeyy BBiinnddiinnggss above) by + If set to OOnn, readline modifies its behavior when binding key + sequences containing \M- or Meta- (see KKeeyy BBiinnddiinnggss above) by converting a key sequence of the form \M-_C or Meta-_C to the two- - character sequence EESSCC_C (adding the _m_e_t_a _p_r_e_f_i_x). If + character sequence EESSCC_C (adding the _m_e_t_a _p_r_e_f_i_x). If ffoorrccee--mmeettaa--pprreeffiixx is set to OOffff (the default), readline uses the - value of the ccoonnvveerrtt--mmeettaa variable to determine whether to per- - form this conversion: if ccoonnvveerrtt--mmeettaa is OOnn, readline performs - the conversion described above; if it is OOffff, readline converts + value of the ccoonnvveerrtt--mmeettaa variable to determine whether to per- + form this conversion: if ccoonnvveerrtt--mmeettaa is OOnn, readline performs + the conversion described above; if it is OOffff, readline converts _C to a meta character by setting the eighth bit (0200). hhiissttoorryy--pprreesseerrvvee--ppooiinntt ((OOffff)) - 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. hhiissttoorryy--ssiizzee ((uunnsseett)) - Set the maximum number of history entries saved in the history - list. If set to zero, any existing history entries are deleted + Set the maximum number of history entries saved in the history + list. If set to zero, any existing history entries are deleted and no new entries are saved. If set to a value less than zero, - the number of history entries is not limited. By default, bbaasshh - sets the the maximum number of history entries to the value of - the HHIISSTTSSIIZZEE shell variable. Setting _h_i_s_t_o_r_y_-_s_i_z_e to a non-nu- - meric value will set the maximum number of history entries to + the number of history entries is not limited. By default, bbaasshh + sets the the maximum number of history entries to the value of + the HHIISSTTSSIIZZEE shell variable. Setting _h_i_s_t_o_r_y_-_s_i_z_e to a non-nu- + meric value will set the maximum number of history entries to 500. hhoorriizzoonnttaall--ssccrroollll--mmooddee ((OOffff)) Setting this variable 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 new line. This setting is automatically enabled + display, scrolling the input horizontally on a single screen + line when it becomes longer than the screen width rather than + wrapping to a new line. This setting is automatically enabled for terminals of height 1. iinnppuutt--mmeettaa ((OOffff)) - If set to OOnn, readline will enable eight-bit input (that is, it - will not clear the eighth bit in the characters it reads), re- - gardless of what the terminal claims it can support. The de- - fault is _O_f_f, but readline will set it to _O_n if the locale con- - tains characters whose encodings may include bytes with the - eighth bit set. This variable is dependent on the LLCC__CCTTYYPPEE lo- - cale category, and its value may change if the locale changes. + If set to OOnn, readline will enable eight-bit input (that is, it + will not clear the eighth bit in the characters it reads), re- + gardless of what the terminal claims it can support. The de- + fault is _O_f_f, but readline will set it to _O_n if the locale con- + tains characters whose encodings may include bytes with the + eighth bit set. This variable is dependent on the LLCC__CCTTYYPPEE lo- + cale category, and its value may change if the locale changes. The name mmeettaa--ffllaagg is a synonym for iinnppuutt--mmeettaa. 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. kkeeyysseeqq--ttiimmeeoouutt ((550000)) - Specifies the duration _r_e_a_d_l_i_n_e will wait for a character when - reading an ambiguous key sequence (one that can form a complete + Specifies the duration _r_e_a_d_l_i_n_e will wait for a character when + reading an ambiguous key sequence (one that can form a complete key sequence using the input read so far, or can take additional - input to complete a longer key sequence). If readline does not - receive any input within the timeout, it will use the shorter - but complete key sequence. The value is specified in millisec- - onds, so a value of 1000 means that readline will wait one sec- - ond for additional input. If this variable is set to a value - less than or equal to zero, or to a non-numeric value, readline - will wait until another key is pressed to decide which key se- + input to complete a longer key sequence). If readline does not + receive any input within the timeout, it will use the shorter + but complete key sequence. The value is specified in millisec- + onds, so a value of 1000 means that readline will wait one sec- + ond for additional input. If this variable is set to a value + less than or equal to zero, or to a non-numeric value, readline + will wait until another key is pressed to decide which key se- quence to complete. mmaarrkk--ddiirreeccttoorriieess ((OOnn)) If set to OOnn, completed directory names have a slash appended. mmaarrkk--mmooddiiffiieedd--lliinneess ((OOffff)) - If set to OOnn, readline displays history lines that have been + If set to OOnn, readline displays history lines that have been modified 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 mmaarrkk--ddii-- + tories have a slash appended, subject to the value of mmaarrkk--ddii-- rreeccttoorriieess. mmaattcchh--hhiiddddeenn--ffiilleess ((OOnn)) - This variable, when set to OOnn, forces readline to match files - whose names begin with a "." (hidden files) when performing - filename completion. If set to OOffff, the user must include the + This variable, when set to OOnn, forces readline to match files + whose names begin with a "." (hidden files) when performing + filename completion. If set to OOffff, the user must include the leading "." in the filename to be completed. mmeennuu--ccoommpplleettee--ddiissppllaayy--pprreeffiixx ((OOffff)) - If set to OOnn, menu completion displays the common prefix of the + If set to OOnn, menu completion displays the common prefix of the list of possible completions (which may be empty) before cycling through the list. 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. The default is _O_f_f, but readline will set it to _O_n if the locale - contains characters whose encodings may include bytes with the - eighth bit set. This variable is dependent on the LLCC__CCTTYYPPEE lo- + contains characters whose encodings may include bytes with the + eighth bit set. This variable is dependent on the LLCC__CCTTYYPPEE lo- cale category, and its value may change if the locale changes. 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. pprreeffeerr--vviissiibbllee--bbeellll See bbeellll--ssttyyllee. 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. rreevveerrtt--aallll--aatt--nneewwlliinnee ((OOffff)) - If set to OOnn, readline will undo all changes to history lines - before returning when executing aacccceepptt--lliinnee. By default, his- - tory lines may be modified and retain individual undo lists + If set to OOnn, readline will undo all changes to history lines + before returning when executing aacccceepptt--lliinnee. By default, his- + tory lines may be modified and retain individual undo lists across calls to rreeaaddlliinnee. sseeaarrcchh--iiggnnoorree--ccaassee ((OOffff)) - If set to OOnn, readline performs incremental and non-incremental + If set to OOnn, readline performs incremental and non-incremental history list searches in a case-insensitive fashion. 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 in- + 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 in- stead of ringing the bell. sshhooww--mmooddee--iinn--pprroommpptt ((OOffff)) - If set to OOnn, add a string to the beginning of the prompt indi- - cating the editing mode: emacs, vi command, or vi insertion. + If set to OOnn, add a string to the beginning of the prompt indi- + cating the editing mode: emacs, vi command, or vi insertion. The mode strings are user-settable (e.g., _e_m_a_c_s_-_m_o_d_e_-_s_t_r_i_n_g). sskkiipp--ccoommpplleetteedd--tteexxtt ((OOffff)) - If set to OOnn, this alters the default completion behavior when - inserting a single match into the line. It's only active when - performing completion in the middle of a word. If enabled, - readline does not insert characters from the completion that - match characters after point in the word being completed, so + If set to OOnn, this alters the default completion behavior when + inserting a single match into the line. It's only active when + performing completion in the middle of a word. If enabled, + readline does not insert characters from the completion that + match characters after point in the word being completed, so portions of the word following the cursor are not duplicated. vvii--ccmmdd--mmooddee--ssttrriinngg ((((ccmmdd)))) - If the _s_h_o_w_-_m_o_d_e_-_i_n_-_p_r_o_m_p_t variable is enabled, this string is + If the _s_h_o_w_-_m_o_d_e_-_i_n_-_p_r_o_m_p_t variable is enabled, this string is displayed immediately before the last line of the primary prompt - when vi editing mode is active and in command mode. The value + when vi editing mode is active and in command mode. The value is expanded like a key binding, so the standard set of meta- and - control- prefixes and backslash escape sequences is available. - The \1 and \2 escapes begin and end sequences of non-printing - characters, which can be used to embed a terminal control se- + control- prefixes and backslash escape sequences is available. + The \1 and \2 escapes begin and end sequences of non-printing + characters, which can be used to embed a terminal control se- quence into the mode string. vvii--iinnss--mmooddee--ssttrriinngg ((((iinnss)))) - If the _s_h_o_w_-_m_o_d_e_-_i_n_-_p_r_o_m_p_t variable is enabled, this string is + If the _s_h_o_w_-_m_o_d_e_-_i_n_-_p_r_o_m_p_t variable is enabled, this string is displayed immediately before the last line of the primary prompt when vi editing mode is active and in insertion mode. The value is expanded like a key binding, so the standard set of meta- and - control- prefixes and backslash escape sequences is available. - The \1 and \2 escapes begin and end sequences of non-printing - characters, which can be used to embed a terminal control se- + control- prefixes and backslash escape sequences is available. + The \1 and \2 escapes begin and end sequences of non-printing + characters, which can be used to embed a terminal control se- quence into the mode string. 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 available. - $$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, after any comparison operator, + $$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, after any comparison operator, extends to the end of the line; unless otherwise noted, no char- acters 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 in- - stance, 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 in- + stance, 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 both the full name of the ter- - minal and the portion of the terminal name before the - first --. This allows _x_t_e_r_m to match both _x_t_e_r_m and + minal and the portion of the terminal name before the + first --. This allows _x_t_e_r_m to match both _x_t_e_r_m and _x_t_e_r_m_-_2_5_6_c_o_l_o_r, for instance. vveerrssiioonn - The vveerrssiioonn test may be used to perform comparisons - against specific readline versions. The vveerrssiioonn expands - to the current readline version. The set of comparison - operators includes ==, (and ====), !!==, <<==, >>==, <<, and >>. - The version number supplied on the right side of the op- - erator consists of a major version number, an optional + The vveerrssiioonn test may be used to perform comparisons + against specific readline versions. The vveerrssiioonn expands + to the current readline version. The set of comparison + operators includes ==, (and ====), !!==, <<==, >>==, <<, and >>. + The version number supplied on the right side of the op- + erator consists of a major version number, an optional decimal point, and an optional minor version (e.g., 77..11). - If the minor version is omitted, it defaults to 00. The - operator may be separated from the string vveerrssiioonn and + If the minor version is omitted, it defaults to 00. The + operator may be separated from the string vveerrssiioonn and from the version number argument by whitespace. _a_p_p_l_i_c_a_t_i_o_n The _a_p_p_l_i_c_a_t_i_o_n construct is used to include application- - specific settings. Each program using the readline li- - brary sets the _a_p_p_l_i_c_a_t_i_o_n _n_a_m_e, and an initialization + specific settings. Each program using the readline li- + brary 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 bbaasshh: $$iiff Bash @@ -3949,12 +3969,12 @@ RREEAADDLLIINNEE _v_a_r_i_a_b_l_e The _v_a_r_i_a_b_l_e construct provides simple equality tests for - readline variables and values. The permitted comparison - operators are _=, _=_=, and _!_=. The variable name must be + readline variables and values. The permitted comparison + operators are _=, _=_=, and _!_=. The variable name must be separated from the comparison operator by whitespace; the - operator may be separated from the value on the right - hand side by whitespace. String and boolean variables - may be tested. Boolean variables must be tested against + operator may be separated from the value on the right + hand side by whitespace. String and boolean variables + may be tested. Boolean variables must be tested against the values _o_n and _o_f_f. $$eellssee Commands in this branch of the $$iiff directive are executed if the @@ -3964,67 +3984,67 @@ RREEAADDLLIINNEE command. $$iinncclluuddee - This directive takes a single filename as an argument and reads + This directive takes a single filename as an argument and reads commands and key bindings from that file. For example, the fol- lowing 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. When using emacs editing - mode, type CC--rr to search backward in the history for a particular - string. Typing CC--ss searches forward through the history. The charac- - ters present in the value of the iisseeaarrcchh--tteerrmmiinnaattoorrss variable are used - to terminate an incremental search. If that variable has not been as- - signed a value, _E_S_C and _C_-_J will terminate an incremental search. _C_-_g - will abort an incremental search and restore the original line. When - the search is terminated, the history entry containing the search + so far. An incremental search requires only as many characters as + needed to find the desired history entry. When using emacs editing + mode, type CC--rr to search backward in the history for a particular + string. Typing CC--ss searches forward through the history. The charac- + ters present in the value of the iisseeaarrcchh--tteerrmmiinnaattoorrss variable are used + to terminate an incremental search. If that variable has not been as- + signed a value, _E_S_C and _C_-_J will terminate an incremental search. _C_-_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 CC--rr or CC--ss 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 + To find other matching entries in the history list, type CC--rr or CC--ss 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 exe- - cute that command. For instance, a newline will terminate the search - and accept the line, thereby executing the command from the history + cute that command. For instance, a newline will terminate the search + and accept the line, thereby executing the command from the history list. A movement command will terminate the search, make the last line found the current line, and begin editing. Readline remembers the last incremental search string. If two CC--rrs are - typed without any intervening characters defining a new search string, + typed without any intervening characters defining a new search string, readline uses any remembered search string. - Non-incremental searches read the entire search string before starting + Non-incremental searches read the entire search string before starting to search for matching history entries. 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 descriptions, _p_o_i_n_t refers to the current cursor posi- - tion, and _m_a_r_k refers to a cursor position saved by the sseett--mmaarrkk com- - mand. The text between the point and mark is referred to as the _r_e_- + tion, and _m_a_r_k refers to a cursor position saved by the sseett--mmaarrkk com- + mand. The text between the point and mark is referred to as the _r_e_- _g_i_o_n. Readline has the concept of an _a_c_t_i_v_e _r_e_g_i_o_n: when the region is - active, readline redisplay uses the value of the aaccttiivvee--rree-- - ggiioonn--ssttaarrtt--ccoolloorr vvaarriiaabbllee ttoo ddeennoottee tthhee rreeggiioonn.. SSeevveerraall ccoommmmaannddss sseett + active, readline redisplay uses the value of the aaccttiivvee--rree-- + ggiioonn--ssttaarrtt--ccoolloorr vvaarriiaabbllee ttoo ddeennoottee tthhee rreeggiioonn.. SSeevveerraall ccoommmmaannddss sseett tthhee rreeggiioonn ttoo aaccttiivvee;; tthhoossee aarree nnootteedd bbeellooww.. CCoommmmaannddss ffoorr MMoovviinngg bbeeggiinnnniinngg--ooff--lliinnee ((CC--aa)) - Move to the start of the current line. This may also be bound + Move to the start of the current line. This may also be bound to the Home key on some keyboards. eenndd--ooff--lliinnee ((CC--ee)) - Move to the end of the line. This may also be bound to the End + Move to the end of the line. This may also be bound to the End key on some keyboards. ffoorrwwaarrdd--cchhaarr ((CC--ff)) Move forward a character. @@ -4034,33 +4054,33 @@ 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). sshheellll--ffoorrwwaarrdd--wwoorrdd - Move forward to the end of the next word. Words are delimited + Move forward to the end of the next word. Words are delimited by non-quoted shell metacharacters. sshheellll--bbaacckkwwaarrdd--wwoorrdd - 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 delimited by non-quoted shell metacharacters. pprreevviioouuss--ssccrreeeenn--lliinnee - Attempt to move point to the same physical screen column on the - previous physical screen line. This will not have the desired - effect if the current readline line does not take up more than - one physical line or if point is not greater than the length of + Attempt to move point to the same physical screen column on the + previous physical screen line. This will not have the desired + effect if the current readline line does not take up more than + one physical line or if point is not greater than the length of the prompt plus the screen width. nneexxtt--ssccrreeeenn--lliinnee - Attempt to move point to the same physical screen column on the - next physical screen line. This will not have the desired ef- + Attempt to move point to the same physical screen column on the + next physical screen line. This will not have the desired ef- fect if the current readline line does not take up more than one - physical line or if the length of the current readline line is + physical line or if the length of the current readline line is not greater than the length of the prompt plus the screen width. cclleeaarr--ddiissppllaayy ((MM--CC--ll)) - Clear the screen and, if possible, the terminal's scrollback - buffer, then redraw the current line, leaving the current line + Clear the screen and, if possible, the terminal's scrollback + buffer, then redraw the current line, leaving the current line at the top of the screen. cclleeaarr--ssccrreeeenn ((CC--ll)) Clear the screen, then redraw the current line, leaving the cur- - rent line at the top of the screen. With an argument, refresh + rent 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. @@ -4068,46 +4088,46 @@ 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 and HHIISSTTIIGGNNOORREE variables. If the line is a - modified history line, restore the history line to its original + is non-empty, add it to the history list according to the state + of the HHIISSTTCCOONNTTRROOLL and HHIISSTTIIGGNNOORREE variables. If the line is a + modified history line, 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. ooppeerraattee--aanndd--ggeett--nneexxtt ((CC--oo)) - Accept the current line for execution as if a newline had been - entered, and fetch the next line relative to the current line - from the history for editing. A numeric argument, if supplied, + Accept the current line for execution as if a newline had been + entered, and fetch the next line relative to the current line + from the history for editing. A numeric argument, if supplied, specifies the history entry to use instead of the current line. ffeettcchh--hhiissttoorryy - With a numeric argument, fetch that entry from the history list + With a numeric argument, fetch that entry from the history list and make it the current line. Without an argument, move back to the first entry in the history list. 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. This command sets the region to the matched text and - activates the region. - ffoorrwwaarrdd--sseeaarrcchh--hhiissttoorryy ((CC--ss)) - Search forward starting at the current line and moving "down" + Search backward starting at the current line and moving "up" through the history as necessary. This is an incremental search. This command sets the region to the matched text and activates the region. + 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. This command sets the region to the matched text and + activates the region. 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. The search string may match anywhere in a history line. 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. The search string may match anywhere in a history line. hhiissttoorryy--sseeaarrcchh--bbaacckkwwaarrdd @@ -4117,247 +4137,248 @@ RREEAADDLLIINNEE non-incremental search. This may be bound to the Page Up key on some keyboards. hhiissttoorryy--sseeaarrcchh--ffoorrwwaarrdd - Search forward through the history for the string of characters + Search forward through the history for the string of characters between the start of the current line and the point. The search string must match at the beginning of a history line. This is a - non-incremental search. This may be bound to the Page Down key + non-incremental search. This may be bound to the Page Down key on some keyboards. hhiissttoorryy--ssuubbssttrriinngg--sseeaarrcchh--bbaacckkwwaarrdd Search backward through the history for the string of characters between the start of the current line and the point. The search - string may match anywhere in a history line. This is a non-in- + string may match anywhere in a history line. This is a non-in- cremental search. hhiissttoorryy--ssuubbssttrriinngg--sseeaarrcchh--ffoorrwwaarrdd - Search forward through the history for the string of characters + Search forward through the history for the string of characters between the start of the current line and the point. The search - string may match anywhere in a history line. This is a non-in- + string may match anywhere in a history line. This is a non-in- cremental 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 in- - serts the _nth word from the end of the previous command. Once - the argument _n is computed, this uses the history expansion fa- - cilities to extract the _nth word, as if the "!_n" history expan- + insert the _nth word from the previous command (the words in the + previous command begin with word 0). A negative argument in- + serts the _nth word from the end of the previous command. Once + the argument _n is computed, this uses the history expansion fa- + cilities to extract the _nth word, as if the "!_n" history expan- sion had been specified. yyaannkk--llaasstt--aarrgg ((MM--..,, MM--__)) - Insert the last argument to the previous command (the last word + Insert the last argument to the previous command (the last word of the previous history entry). With a numeric argument, behave - exactly like yyaannkk--nntthh--aarrgg. Successive calls to yyaannkk--llaasstt--aarrgg - move back through the history list, inserting the last word (or - the word specified by the argument to the first call) of each + exactly like yyaannkk--nntthh--aarrgg. Successive calls to yyaannkk--llaasstt--aarrgg + move back through the history list, inserting the last word (or + the word specified by the argument to the first call) of each line in turn. Any numeric argument supplied to these successive - calls determines the direction to move through the history. A - negative argument switches the direction through the history - (back or forward). This uses the history expansion facilities - to extract the last word, as if the "!$" history expansion had + calls determines the direction to move through the history. A + negative argument switches the direction through the history + (back or forward). This uses the history expansion facilities + to extract the last word, as if the "!$" history expansion had been specified. sshheellll--eexxppaanndd--lliinnee ((MM--CC--ee)) - Expand the line by performing shell word expansions. This per- + Expand the line by performing shell word expansions. This per- forms alias and history expansion, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quot- - ing, tilde expansion, parameter and variable expansion, arith- - metic expansion, command and process substitution, word split- - ting, and quote removal. An explicit argument suppresses com- - mand and process substitution. See HHIISSTTOORRYY EEXXPPAANNSSIIOONN below for + ing, tilde expansion, parameter and variable expansion, arith- + metic expansion, command and process substitution, word split- + ting, and quote removal. An explicit argument suppresses com- + mand and process substitution. See HHIISSTTOORRYY EEXXPPAANNSSIIOONN below for a description of history expansion. hhiissttoorryy--eexxppaanndd--lliinnee ((MM--^^)) - Perform history expansion on the current line. See HHIISSTTOORRYY EEXX-- + Perform history expansion on the current line. See HHIISSTTOORRYY EEXX-- PPAANNSSIIOONN 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. eeddiitt--aanndd--eexxeeccuuttee--ccoommmmaanndd ((CC--xx CC--ee)) - Invoke an editor on the current command line, and execute the + Invoke an editor on the current command line, and execute the result as shell commands. BBaasshh attempts to invoke $$VVIISSUUAALL, $$EEDD-- IITTOORR, and _e_m_a_c_s as the editor, in that order. CCoommmmaannddss ffoorr CChhaannggiinngg TTeexxtt _e_n_d_-_o_f_-_f_i_l_e ((uussuuaallllyy CC--dd)) - The character indicating end-of-file as set, for example, by + The character indicating end-of-file as set, for example, by _s_t_t_y(1). If this character is read when there are no characters on the line, and point is at the beginning of the line, readline interprets it as the end of input and returns EEOOFF. ddeelleettee--cchhaarr ((CC--dd)) Delete the character at point. If this function is bound to the same character as the tty EEOOFF character, as CC--dd commonly is, see - above for the effects. + above for the effects. This may also be bound to the Delete key + on some keyboards. 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. bbrraacckkeetteedd--ppaassttee--bbeeggiinn - This function is intended to be bound to the "bracketed paste" - escape sequence sent by some terminals, and such a binding is - assigned by default. It allows readline to insert the pasted - text as a single unit without treating each character as if it - had been read from the keyboard. The pasted characters are in- - serted as if each one was bound to sseellff--iinnsseerrtt instead of exe- + This function is intended to be bound to the "bracketed paste" + escape sequence sent by some terminals, and such a binding is + assigned by default. It allows readline to insert the pasted + text as a single unit without treating each character as if it + had been read from the keyboard. The pasted characters are in- + serted as if each one was bound to sseellff--iinnsseerrtt instead of exe- cuting any editing commands. - Bracketed paste sets the region to the inserted text and acti- + Bracketed paste sets the region to the inserted text and acti- vates the region. 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. sshheellll--ttrraannssppoossee--wwoorrddss ((MM--CC--tt)) - Drag the word before point past the word after point, moving - point past that word as well. If the insertion point is at the + Drag the word before point past the word after point, moving + point past that word as well. If the insertion point is at the end of the line, this transposes the last two words on the line. - Word boundaries are the same as sshheellll--ffoorrwwaarrdd--wwoorrdd and + Word boundaries are the same as sshheellll--ffoorrwwaarrdd--wwoorrdd and sshheellll--bbaacckkwwaarrdd--wwoorrdd. uuppccaassee--wwoorrdd ((MM--uu)) - Uppercase the current (or following) word. With a negative ar- + Uppercase the current (or following) word. With a negative ar- gument, uppercase the previous word, but do not move point. ddoowwnnccaassee--wwoorrdd ((MM--ll)) - Lowercase the current (or following) word. With a negative ar- + Lowercase the current (or following) word. With a negative ar- gument, lowercase the previous word, but do not move point. ccaappiittaalliizzee--wwoorrdd ((MM--cc)) Capitalize the current (or following) word. With a negative ar- gument, 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, characters bound to sseellff--iinnsseerrtt replace the - text at point rather than pushing the text to the right. Char- - acters bound to bbaacckkwwaarrdd--ddeelleettee--cchhaarr replace the character be- - fore point with a space. By default, this command is unbound, + In overwrite mode, characters bound to sseellff--iinnsseerrtt replace the + text at point rather than pushing the text to the right. Char- + acters bound to bbaacckkwwaarrdd--ddeelleettee--cchhaarr replace the character be- + fore point with a space. By default, this command is unbound, but may be bound to the Insert key on some keyboards. KKiilllliinngg aanndd YYaannkkiinngg kkiillll--lliinnee ((CC--kk)) Kill the text from point to the end of the current line. With a - negative numeric argument, kill backward from the cursor to the + negative numeric argument, kill backward from the cursor to the beginning of the line. bbaacckkwwaarrdd--kkiillll--lliinnee ((CC--xx RRuubboouutt)) Kill backward to the beginning of the current line. With a neg- - ative numeric argument, kill forward from the cursor to the end + ative numeric argument, kill forward from the cursor to the end of the line. uunniixx--lliinnee--ddiissccaarrdd ((CC--uu)) - Kill backward from point to the beginning of the line, saving + Kill backward from point to the beginning of the line, saving the killed text 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. sshheellll--kkiillll--wwoorrdd ((MM--CC--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 sshheellll--ffoorrwwaarrdd--wwoorrdd. sshheellll--bbaacckkwwaarrdd--kkiillll--wwoorrdd - 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 sshheellll--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, saving the killed text on the kill-ring. uunniixx--ffiilleennaammee--rruubboouutt - Kill the word behind point, using white space and the slash - character as the word boundaries, saving the killed text on the + Kill the word behind point, using white space and the slash + character as the word boundaries, saving the killed text on the kill-ring. ddeelleettee--hhoorriizzoonnttaall--ssppaaccee ((MM--\\)) Delete all spaces and tabs around point. kkiillll--rreeggiioonn Kill the text in the current region. ccooppyy--rreeggiioonn--aass--kkiillll - Copy the text in the region to the kill buffer, so it can be + Copy the text in the region to the kill buffer, so it can be yanked immediately. 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- + 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 nu- meric argument, but is otherwise ignored. As a special case, if this command is immediately followed by a character that is nei- - ther a digit nor 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- + ther a digit nor 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 - attempts completion by first checking for any programmable com- - pletions for the command word (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn be- + Attempt to perform completion on the text before point. BBaasshh + attempts completion by first checking for any programmable com- + pletions for the command word (see PPrrooggrraammmmaabbllee CCoommpplleettiioonn be- low), otherwise treating the text as a variable (if the text be- gins with $$), username (if the text begins with ~~), hostname (if - the text begins with @@), or command (including aliases, func- - tions, and builtins) in turn. If none of these produces a + the text begins with @@), or command (including aliases, func- + tions, and builtins) in turn. If none of these produces a match, it falls back to filename completion. ppoossssiibbllee--ccoommpplleettiioonnss ((MM--??)) - List the possible completions of the text before point. When + List the possible completions of the text before point. When displaying completions, readline sets the number of columns used - for display to the value of ccoommpplleettiioonn--ddiissppllaayy--wwiiddtthh, the value - of the shell variable CCOOLLUUMMNNSS, or the screen width, in that or- + for display to the value of ccoommpplleettiioonn--ddiissppllaayy--wwiiddtthh, the value + of the shell variable CCOOLLUUMMNNSS, or the screen width, in that or- der. 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, separated by a space. mmeennuu--ccoommpplleettee - Similar to ccoommpplleettee, but replaces the word to be completed with - a single match from the list of possible completions. Repeat- - edly executing mmeennuu--ccoommpplleettee steps through the list of possible - completions, inserting each match in turn. At the end of the - list of completions, mmeennuu--ccoommpplleettee rings the bell (subject to - the setting of bbeellll--ssttyyllee) and restores the original text. An - argument of _n moves _n positions forward in the list of matches; - a negative argument moves backward through the list. This com- + Similar to ccoommpplleettee, but replaces the word to be completed with + a single match from the list of possible completions. Repeat- + edly executing mmeennuu--ccoommpplleettee steps through the list of possible + completions, inserting each match in turn. At the end of the + list of completions, mmeennuu--ccoommpplleettee rings the bell (subject to + the setting of bbeellll--ssttyyllee) and restores the original text. An + argument of _n moves _n positions forward in the list of matches; + a negative argument moves backward through the list. This com- mand is intended to be bound to TTAABB, but is unbound by default. mmeennuu--ccoommpplleettee--bbaacckkwwaarrdd - Identical to mmeennuu--ccoommpplleettee, but moves backward through the list - of possible completions, as if mmeennuu--ccoommpplleettee had been given a + Identical to mmeennuu--ccoommpplleettee, but moves backward through the list + of possible completions, as if mmeennuu--ccoommpplleettee had been given a negative argument. This command 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). At the end of the line, + Deletes the character under the cursor if not at the beginning + or end of the line (like ddeelleettee--cchhaarr). At the end of the line, it behaves identically to ppoossssiibbllee--ccoommpplleettiioonnss. This command is unbound by default. ccoommpplleettee--ffiilleennaammee ((MM--//)) @@ -4366,66 +4387,66 @@ 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 + Attempt completion on the text before point, comparing the text against history list entries for possible completion matches. ddaabbbbrreevv--eexxppaanndd - Attempt menu completion on the text before point, comparing the + Attempt menu 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. pprriinntt--llaasstt--kkbbdd--mmaaccrroo (()) - Print the last keyboard macro defined in a format suitable for + Print the last keyboard macro defined in a format suitable for the _i_n_p_u_t_r_c file. 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--lloowweerrccaassee--vveerrssiioonn ((MM--AA,, MM--BB,, MM--_x,, ...)) - If the metafied character _x is uppercase, run the command that + If the metafied character _x is uppercase, run the command that is bound to the corresponding metafied lowercase character. The behavior is undefined if _x is already lowercase. pprreeffiixx--mmeettaa ((EESSCC)) @@ -4433,210 +4454,210 @@ RREEAADDLLIINNEE 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, set the mark to that position. eexxcchhaannggee--ppooiinntt--aanndd--mmaarrkk ((CC--xx CC--xx)) - Swap the point with the mark. Set the current cursor position + Swap the point with the mark. Set the current cursor position to the saved position, then set the mark to the old cursor posi- tion. cchhaarraacctteerr--sseeaarrcchh ((CC--]])) - Read a character and move point to the next occurrence of that - character. A negative argument searches for previous occur- + Read a character and move point to the next occurrence of that + character. A negative argument searches for previous occur- rences. cchhaarraacctteerr--sseeaarrcchh--bbaacckkwwaarrdd ((MM--CC--]])) - Read a character and move point to the previous occurrence of + Read a character and move point to the previous occurrence of that character. A negative argument searches for subsequent oc- currences. sskkiipp--ccssii--sseeqquueennccee - Read enough characters to consume a multi-key sequence such as - those defined for keys like Home and End. CSI sequences begin + Read enough characters to consume a multi-key sequence such as + those defined for keys like Home and End. CSI sequences begin with a Control Sequence Indicator (CSI), usually ESC-[. If this - sequence is bound to "\e[", keys producing CSI sequences will - have no effect unless explicitly bound to a readline command, - instead of inserting stray characters into the editing buffer. + sequence is bound to "\e[", keys producing CSI sequences will + have no effect unless explicitly bound to a readline command, + instead of inserting stray characters into the editing buffer. This is unbound by default, but usually bound to ESC-[. iinnsseerrtt--ccoommmmeenntt ((MM--##)) - Without a numeric argument, insert the value of the readline + Without a numeric argument, insert the value of the readline ccoommmmeenntt--bbeeggiinn variable 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, insert the value; otherwise delete the - characters in ccoommmmeenntt--bbeeggiinn from the beginning 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 + 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, insert the value; otherwise delete the + characters in ccoommmmeenntt--bbeeggiinn from the beginning 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 ex- ecuted by the shell. ssppeellll--ccoorrrreecctt--wwoorrdd ((CC--xx ss)) - Perform spelling correction on the current word, treating it as - a directory or filename, in the same way as the ccddssppeellll shell - option. Word boundaries are the same as those used by + Perform spelling correction on the current word, treating it as + a directory or filename, in the same way as the ccddssppeellll shell + option. Word boundaries are the same as those used by sshheellll--ffoorrwwaarrdd--wwoorrdd. gglloobb--ccoommpplleettee--wwoorrdd ((MM--gg)) Treat the word before point as a pattern for pathname expansion, - with an asterisk implicitly appended, then use the pattern to + with an asterisk implicitly appended, then use the pattern to generate a list of matching file names for possible completions. gglloobb--eexxppaanndd--wwoorrdd ((CC--xx **)) Treat the word before point as a pattern for pathname expansion, - and insert the list of matching file names, replacing the word. - If a numeric argument is supplied, append a ** before pathname + and insert the list of matching file names, replacing the word. + If a numeric argument is supplied, append a ** before pathname expansion. gglloobb--lliisstt--eexxppaannssiioonnss ((CC--xx gg)) Display the list of expansions that would have been generated by - gglloobb--eexxppaanndd--wwoorrdd and redisplay the line. If a numeric argument + gglloobb--eexxppaanndd--wwoorrdd and redisplay the line. If a numeric argument is supplied, append a ** 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 + Print all of the readline key sequences bound to macros and the strings they output 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 of an _i_n_p_u_t_r_c file. eexxeeccuuttee--nnaammeedd--ccoommmmaanndd ((MM--xx)) Read a bindable readline command name from the input and execute - the function to which it's bound, as if the key sequence to - which it was bound appeared in the input. If this function is + the function to which it's bound, as if the key sequence to + which it was bound appeared in the input. If this function is supplied with a numeric argument, it passes that argument to the function it executes. ddiissppllaayy--sshheellll--vveerrssiioonn ((CC--xx CC--vv)) Display version information about the current instance of bbaasshh. PPrrooggrraammmmaabbllee CCoommpplleettiioonn - When a user attempts word completion 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), rreeaaddlliinnee in- + When a user attempts word completion 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), rreeaaddlliinnee in- vokes the programmable completion facilities. - First, bbaasshh identifies the command name. If a compspec has been de- - fined for that command, the compspec is used to generate the list of - possible completions for the word. If the command word is the empty - string (completion attempted at the beginning of an empty line), bbaasshh - uses any compspec defined with the --EE option to ccoommpplleettee. If the com- + First, bbaasshh identifies the command name. If a compspec has been de- + fined for that command, the compspec is used to generate the list of + possible completions for the word. If the command word is the empty + string (completion attempted at the beginning of an empty line), bbaasshh + uses any compspec defined with the --EE option to ccoommpplleettee. If the com- mand word is a full pathname, bbaasshh searches for a compspec for the full - pathname first. If there is no compspec for the full pathname, bbaasshh - attempts to find a compspec for the portion following the final slash. - If those searches do not result in a compspec, any compspec defined - with the --DD option to ccoommpplleettee is used as the default. If there is no - default compspec, bbaasshh attempts alias expansion on the command word as - a final resort, and attempts to find a compspec for the command word + pathname first. If there is no compspec for the full pathname, bbaasshh + attempts to find a compspec for the portion following the final slash. + If those searches do not result in a compspec, any compspec defined + with the --DD option to ccoommpplleettee is used as the default. If there is no + default compspec, bbaasshh attempts alias expansion on the command word as + a final resort, and attempts to find a compspec for the command word from any successful expansion. If a compspec is not found, bbaasshh performs its default completion as de- - scribed above under CCoommpplleettiinngg. Otherwise, once a compspec has been + scribed above under CCoommpplleettiinngg. Otherwise, once a compspec has been found, bbaasshh uses it to generate the list of matching words. - First, bbaasshh performs the _a_c_t_i_o_n_s specified by the compspec. Only - matches which are prefixed by the word being completed are returned. + First, bbaasshh performs the _a_c_t_i_o_n_s specified by the compspec. 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 comple- tion, bbaasshh uses the shell variable FFIIGGNNOORREE to filter the matches. Any completions specified by a pathname expansion pattern to the --GG op- - tion are generated next. The words generated by the pattern need not + tion are generated next. The words generated by the pattern need not match the word being completed. BBaasshh uses the FFIIGGNNOORREE variable to fil- ter the matches, but does not use the GGLLOOBBIIGGNNOORREE shell variable. - Next, completion considers the string specified as the argument to the - --WW option. The string is first split using the characters in the IIFFSS - special 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, completion considers the string specified as the argument to the + --WW option. The string is first split using the characters in the IIFFSS + special 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 possible completions. - After these matches have been generated, bbaasshh executes any shell func- + After these matches have been generated, bbaasshh executes any shell func- tion or command specified with the --FF and --CC options. When the command - or function is invoked, the CCOOMMPP__LLIINNEE, CCOOMMPP__PPOOIINNTT, CCOOMMPP__KKEEYY, and - CCOOMMPP__TTYYPPEE variables are assigned values as described above under SShheellll - VVaarriiaabblleess. If a shell function is being invoked, the CCOOMMPP__WWOORRDDSS and + or function is invoked, the CCOOMMPP__LLIINNEE, CCOOMMPP__PPOOIINNTT, CCOOMMPP__KKEEYY, and + CCOOMMPP__TTYYPPEE 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 in- - voked, the first argument ($$11) is the name of the command whose argu- - ments are being completed, the second argument ($$22) is the word being - completed, and the third argument ($$33) is the word preceding the word - being completed on the current command line. There is no filtering of - the generated completions against the word being completed; the func- + voked, the first argument ($$11) is the name of the command whose argu- + ments are being completed, the second argument ($$22) is the word being + completed, and the third argument ($$33) is the word preceding the word + being completed on the current command line. There is no filtering of + the generated completions against the word being completed; the func- tion or command has complete freedom in generating the matches. - Any function specified with --FF is invoked first. The function may use + Any function specified with --FF is invoked first. The function may use any of the shell facilities, including the ccoommppggeenn and ccoommppoopptt builtins - described below, to generate the matches. It must put the possible + described below, to generate the matches. It must put the possible completions in the CCOOMMPPRREEPPLLYY array variable, one per array element. - 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. These are added to the set of + 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. These are added to the set of possible completions. - 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. If the nnooccaasseemmaattcchh shell option is - enabled, the match is performed without regard to the case of alpha- + ing the pattern will be removed. If the nnooccaasseemmaattcchh shell option is + enabled, the match is performed without regard to the case of alpha- betic characters. Finally, any prefix and suffix specified with the --PP and --SS options are added to each member of the completion list, and the result is returned to rreeaaddlliinnee 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 de- + If the previously-applied actions do not generate any matches, and the + --oo ddiirrnnaammeess option was supplied to ccoommpplleettee when the compspec was de- fined, bbaasshh attempts directory name completion. - If the --oo pplluussddiirrss option was supplied to ccoommpplleettee when the compspec - was defined, bbaasshh attempts directory name completion and adds any + If the --oo pplluussddiirrss option was supplied to ccoommpplleettee when the compspec + was defined, bbaasshh attempts directory name completion and adds any matches to the set of possible completions. - 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 and the rreeaaddlliinnee default of filename comple- - tion are disabled. If the --oo bbaasshhddeeffaauulltt option was supplied to ccoomm-- - pplleettee when the compspec was defined, if the compspec generates no - matches, bbaasshh attempts its default completions. If the --oo ddeeffaauulltt op- + 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 and the rreeaaddlliinnee default of filename comple- + tion are disabled. If the --oo bbaasshhddeeffaauulltt option was supplied to ccoomm-- + pplleettee when the compspec was defined, if the compspec generates no + matches, bbaasshh attempts its default completions. If the --oo ddeeffaauulltt op- tion was supplied to ccoommpplleettee when the compspec was defined, programma- - ble completion will perform readline's default completion if the comp- - spec (and, if attempted, the default bbaasshh completions) generate no + ble completion will perform readline's default completion if the comp- + spec (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. - There is some support for dynamically modifying completions. This is - most useful when used in combination with a default completion speci- - fied with ccoommpplleettee --DD. It's possible for shell functions executed as - completion functions to indicate that completion should be retried by - returning an exit status of 124. If a shell function returns 124, and + There is some support for dynamically modifying completions. This is + most useful when used in combination with a default completion speci- + fied with ccoommpplleettee --DD. It's possible for shell functions executed as + completion functions to indicate that completion should be retried by + returning an exit status of 124. If a shell function returns 124, and changes the compspec associated with the command on which completion is - being attempted (supplied as the first argument when the function is + being attempted (supplied as the first argument when the function is executed), programmable completion restarts from the beginning, with an - attempt to find a new compspec for that command. This allows a set of - completions to be built dynamically as completion is attempted, rather + attempt to find a new compspec for that command. This allows a set of + completions to be built dynamically as completion is attempted, rather than being loaded all at once. - For instance, assuming that there is a library of compspecs, each kept - in a file corresponding to the name of the command, the following de- + For instance, assuming that there is a library of compspecs, each kept + in a file corresponding to the name of the command, the following de- fault completion function would load completions dynamically: _completion_loader() { @@ -4647,162 +4668,162 @@ RREEAADDLLIINNEE -o bashdefault -o default 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 - commands to save in a history list: the shell saves the text of the + typed. The value of the HHIISSTTSSIIZZEE variable is used as the number of + commands to save in a history list: the shell saves the text of the last HHIISSTTSSIIZZEE commands (default 500). The shell stores each command in - the history list prior to parameter and variable expansion (see EEXXPPAANN-- - SSIIOONN above) but after history expansion is performed, subject to the + the history list prior to parameter and variable expansion (see EEXXPPAANN-- + SSIIOONN above) but after history expansion is performed, subject to the values of the shell variables HHIISSTTIIGGNNOORREE and HHIISSTTCCOONNTTRROOLL. - On startup, bbaasshh initializes the history list by reading history en- - tries from the the file named by the HHIISSTTFFIILLEE variable (default - _~_/_._b_a_s_h___h_i_s_t_o_r_y). That file is referred to as the _h_i_s_t_o_r_y _f_i_l_e. The - history file is truncated, if necessary, to contain no more than the - number of history entries specified by the value of the HHIISSTTFFIILLEESSIIZZEE - variable. If HHIISSTTFFIILLEESSIIZZEE is unset, or set to null, a non-numeric + On startup, bbaasshh initializes the history list by reading history en- + tries from the the file named by the HHIISSTTFFIILLEE variable (default + _~_/_._b_a_s_h___h_i_s_t_o_r_y). That file is referred to as the _h_i_s_t_o_r_y _f_i_l_e. The + history file is truncated, if necessary, to contain no more than the + number of history entries specified by the value of the HHIISSTTFFIILLEESSIIZZEE + variable. If HHIISSTTFFIILLEESSIIZZEE is unset, or set to null, a non-numeric value, or a numeric value less than zero, the history file is not trun- cated. When the history file is read, lines beginning with the history comment character followed immediately by a digit are interpreted as timestamps - for the following history line. These timestamps are optionally dis- - played depending on the value of the HHIISSTTTTIIMMEEFFOORRMMAATT variable. When - present, history timestamps delimit history entries, making multi-line + for the following history line. These timestamps are optionally dis- + played depending on the value of the HHIISSTTTTIIMMEEFFOORRMMAATT variable. When + present, history timestamps delimit history entries, making multi-line entries possible. When a shell with history enabled exits, bbaasshh copies the last $$HHIISSTTSSIIZZEE - entries from the history list to $$HHIISSTTFFIILLEE. If the hhiissttaappppeenndd shell - option is enabled (see the description of sshhoopptt under SSHHEELLLL BBUUIILLTTIINN - CCOOMMMMAANNDDSS below), bbaasshh appends the entries to the history file, other- - wise it overwrites the history file. If HHIISSTTFFIILLEE is unset or null, or - if the history file is unwritable, the history is not saved. After - saving the history, bbaasshh truncates the history file to contain no more + entries from the history list to $$HHIISSTTFFIILLEE. If the hhiissttaappppeenndd shell + option is enabled (see the description of sshhoopptt under SSHHEELLLL BBUUIILLTTIINN + CCOOMMMMAANNDDSS below), bbaasshh appends the entries to the history file, other- + wise it overwrites the history file. If HHIISSTTFFIILLEE is unset or null, or + if the history file is unwritable, the history is not saved. After + saving the history, bbaasshh truncates the history file to contain no more than HHIISSTTFFIILLEESSIIZZEE lines as described above. - If the HHIISSTTTTIIMMEEFFOORRMMAATT variable is set, the shell writes the timestamp - information associated with each history entry to the history file, - marked with the history comment character, so timestamps are preserved + If the HHIISSTTTTIIMMEEFFOORRMMAATT variable is set, the shell writes the timestamp + information associated with each history entry to the history file, + marked with the history comment character, so timestamps are preserved across shell sessions. This uses the history comment character to dis- - tinguish timestamps from other history lines. As above, when using + tinguish timestamps from other history lines. As above, when using HHIISSTTTTIIMMEEFFOORRMMAATT, the timestamps delimit multi-line history entries. - The ffcc builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) will list or + The ffcc builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below) will list or edit and re-execute a portion of the history list. The hhiissttoorryy builtin can display or modify the history list and manipulate the history file. - When using command-line editing, search commands are available in each + 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 are used to save only a - subset of the commands entered. If the ccmmddhhiisstt shell option is en- - abled, the shell attempts 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 modifies ccmmddhhiisstt by - saving the command with embedded newlines instead of semicolons. See + subset of the commands entered. If the ccmmddhhiisstt shell option is en- + abled, the shell attempts 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 modifies ccmmddhhiisstt by + saving 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 + The shell supports a history expansion feature that is similar to the + history expansion in ccsshh. This section describes what syntax features are available. History expansion is enabled by default for interactive shells, and can - be disabled using the ++HH option to the sseett builtin command (see SSHHEELLLL + be disabled using the ++HH option to the sseett builtin command (see SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS below). Non-interactive shells do not perform history expansion by default, but it can be enabled with "set -H". 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, and is performed on each - line individually. The shell attempts to inform the history expansion + History expansion is performed immediately after a complete line is + read, before the shell breaks it into words, and is performed on each + line individually. The shell attempts to inform the history expansion functions about quoting still in effect from previous lines. - It takes place in two parts. The first is to determine which history - list entry to use during substitution. The second is to select por- + It takes place in two parts. The first is to determine which history + list entry to use during substitution. The second is to select por- tions of that entry to include into the current one. - The entry selected from the history is the _e_v_e_n_t, and the portions of + The entry selected from the history is the _e_v_e_n_t, and the portions of that entry that are acted upon are _w_o_r_d_s. Various _m_o_d_i_f_i_e_r_s are avail- - able to manipulate the selected words. The entry is split into words - in the same fashion as when reading 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. The - _e_v_e_n_t _d_e_s_i_g_n_a_t_o_r selects the event, the optional _w_o_r_d _d_e_s_i_g_n_a_t_o_r se- - lects words from the event, and various optional _m_o_d_i_f_i_e_r_s are avail- + able to manipulate the selected words. The entry is split into words + in the same fashion as when reading 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. The + _e_v_e_n_t _d_e_s_i_g_n_a_t_o_r selects the event, the optional _w_o_r_d _d_e_s_i_g_n_a_t_o_r se- + lects words from the event, and various optional _m_o_d_i_f_i_e_r_s are avail- able to manipulate the selected words. - History expansions are introduced by the appearance of the history ex- - pansion character, which is !! by default. History expansions may ap- + History expansions are introduced by the appearance of the history ex- + pansion character, which is !! by default. History expansions may ap- pear anywhere in the input, but do not nest. - Only backslash (\\) and single quotes can quote the history expansion - character, but the history expansion character is also treated as + Only backslash (\\) and single quotes can quote the history expansion + character, but the history expansion character is also treated as quoted if it immediately precedes the closing double quote in a double- quoted string. - 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 the other shell metacharacters + 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 the other shell metacharacters defined above. There is a special abbreviation for substitution, active when the _q_u_i_c_k - _s_u_b_s_t_i_t_u_t_i_o_n character (described above under hhiissttcchhaarrss) is the first + _s_u_b_s_t_i_t_u_t_i_o_n character (described above under hhiissttcchhaarrss) is the first character on the line. It selects the previous history list entry, us- - ing an event designator equivalent to !!!!, and substitutes one string - for another in that entry. It is described below under EEvveenntt DDeessiiggnnaa-- - ttoorrss. This is the only history expansion that does not begin with the + ing an event designator equivalent to !!!!, and substitutes one string + for another in that entry. It is described below under EEvveenntt DDeessiiggnnaa-- + ttoorrss. This is the only history expansion that does not begin with the history expansion character. - Several shell options settable with the sshhoopptt builtin will modify his- - tory expansion behavior (see the description of the sshhoopptt builtin be- + Several shell options settable with the sshhoopptt builtin will modify his- + tory expansion behavior (see the description of the sshhoopptt builtin be- low).and If the hhiissttvveerriiffyy shell option is enabled, and rreeaaddlliinnee is be- ing used, history substitutions are not immediately passed to the shell parser. Instead, the expanded line is reloaded into the rreeaaddlliinnee edit- - ing buffer for further modification. If rreeaaddlliinnee is being used, and - the hhiissttrreeeeddiitt shell option is enabled, a failed history substitution + ing buffer for further modification. If rreeaaddlliinnee is being used, and + the hhiissttrreeeeddiitt shell option is enabled, a failed history substitution is reloaded into the rreeaaddlliinnee editing buffer for correction. - The --pp option to the hhiissttoorryy builtin command shows what a history ex- - pansion will do before using it. The --ss option to the hhiissttoorryy builtin - will add commands to the end of the history list without actually exe- + The --pp option to the hhiissttoorryy builtin command shows what a history ex- + pansion will do before using it. The --ss option to the hhiissttoorryy builtin + will add commands to the end of the history list without actually exe- cuting them, so that they are available for subsequent recall. - The shell allows control of the various characters used by the history + The shell allows control of the various characters used by the history expansion mechanism (see the description of hhiissttcchhaarrss above under SShheellll - VVaarriiaabblleess). The shell uses the history comment character to mark his- + VVaarriiaabblleess). The shell uses the history comment character to mark his- tory timestamps when writing the history file. EEvveenntt DDeessiiggnnaattoorrss - An event designator is a reference to an entry in the history list. + An event designator is a reference to an entry in the history list. The event designator consists of the portion of the word beginning with - the history expansion character and ending with the word designator if - present, or the end of the word. Unless the reference is absolute, + the history expansion character and ending with the word designator if + present, or the end of the word. Unless the reference is absolute, events are relative to the current position in the history 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 history list entry _n. !!--_n Refer to the current entry minus _n. !!!! Refer to the previous entry. This is a synonym for "!-1". !!_s_t_r_i_n_g - Refer to the most recent command preceding the current position + Refer to the most recent command preceding the current position in the history list starting with _s_t_r_i_n_g. !!??_s_t_r_i_n_g[[??]] - Refer to the most recent command preceding the current position - in the history list containing _s_t_r_i_n_g. The trailing ?? may be - omitted if _s_t_r_i_n_g is followed immediately by a newline. If - _s_t_r_i_n_g is missing, this uses the string from the most recent + Refer to the most recent command preceding the current position + in the history list containing _s_t_r_i_n_g. The trailing ?? may be + omitted if _s_t_r_i_n_g is followed immediately by a newline. If + _s_t_r_i_n_g is missing, this uses the string from the most recent search; it is an error if there is no previous search string. ^^_s_t_r_i_n_g_1^^_s_t_r_i_n_g_2^^ - Quick substitution. Repeat the previous 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^" + Quick substitution. Repeat the previous 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 MMooddiiffiieerrss below). !!## The entire command line typed so far. @@ -4810,37 +4831,37 @@ HHIISSTTOORRYY EEXXPPAANNSSIIOONN Word designators are used to select desired words from the event. They are optional; if the word designator isn't supplied, the history expan- sion uses the entire 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 in- + 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 in- serted into the current line separated by single spaces. 00 ((zzeerroo)) The zeroth word. For the shell, this is the command word. _n The _nth word. ^^ The first argument: word 1. - $$ The last word. This is usually the last argument, but will ex- + $$ The last word. This is usually the last argument, but will ex- pand to the zeroth word if there is only one word in the line. %% The first word matched by the most recent "?_s_t_r_i_n_g?" search, if - the search string begins with a character that is part of a - word. By default, searches begin at the end of each line and - proceed to the beginning, so the first word matched is the one + the search string begins with a character that is part of a + word. By default, searches begin at the end of each line and + proceed to the beginning, so the first word matched is the one closest to the end of the line. _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; it expands to the empty string in that case. xx** Abbreviates _x_-_$. xx-- Abbreviates _x_-_$ like xx**, but omits the last word. If xx is miss- ing, it defaults to 0. - 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, equivalent to !!!!. MMooddiiffiieerrss - After the optional word designator, the expansion may include a se- - quence of one or more of the following modifiers, each preceded by a - ":". These modify, or edit, the word or words selected from the his- + After the optional word designator, the expansion may include a se- + quence of one or more of the following modifiers, each preceded by a + ":". These modify, or edit, the word or words selected from the his- tory event. hh Remove a trailing pathname component, leaving only the head. @@ -4849,24 +4870,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 - bbllaannkkss and newlines. The qq and xx modifiers are mutually exclu- + xx Quote the substituted words as with qq, but break into words at + bbllaannkkss and newlines. The qq and xx modifiers are mutually exclu- sive; expansion uses the last one supplied. ss//_o_l_d//_n_e_w// - Substitute _n_e_w for the first occurrence of _o_l_d in the event + Substitute _n_e_w for the first occurrence of _o_l_d in the event line. Any character may be used as the delimiter in place of /. - The final delimiter is optional if it is the last character of - the event line. A single backslash will quote the delimiter in - _o_l_d and _n_e_w. If & appears in _n_e_w, it is replaced with _o_l_d. A + The final delimiter is optional if it is the last character of + the event line. A single backslash will quote the delimiter in + _o_l_d and _n_e_w. If & appears in _n_e_w, it is replaced with _o_l_d. A single 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. If + 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. If _n_e_w is null, each matching _o_l_d is deleted. && 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" or "&&" modifier once to each word in the event line. @@ -4875,64 +4896,64 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS Unless otherwise noted, each builtin command documented in this section as accepting options preceded by -- accepts ---- to signify the end of the options. The ::, ttrruuee, ffaallssee, and tteesstt/[[ builtins do not accept options - and do not treat ---- specially. The eexxiitt, llooggoouutt, rreettuurrnn, bbrreeaakk, ccoonn-- - ttiinnuuee, lleett, and sshhiifftt builtins accept and process arguments beginning - with -- without requiring ----. Other builtins that accept arguments but - are not specified as accepting options interpret arguments beginning - with -- as invalid options and require ---- to prevent this interpreta- + and do not treat ---- specially. The eexxiitt, llooggoouutt, rreettuurrnn, bbrreeaakk, ccoonn-- + ttiinnuuee, lleett, and sshhiifftt builtins accept and process arguments beginning + with -- without requiring ----. Other builtins that accept arguments but + are not specified as accepting options interpret arguments beginning + with -- as invalid options and require ---- to prevent this interpreta- tion. :: [_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 + No effect; the command does nothing beyond expanding _a_r_g_u_m_e_n_t_s and performing any specified redirections. The return status is zero. - .. [--pp _p_a_t_h] _f_i_l_e_n_a_m_e [_a_r_g_u_m_e_n_t_s] + .. [--pp _p_a_t_h] _f_i_l_e_n_a_m_e [_a_r_g_u_m_e_n_t_s] ssoouurrccee [--pp _p_a_t_h] _f_i_l_e_n_a_m_e [_a_r_g_u_m_e_n_t_s] - The .. command (ssoouurrccee) reads and execute commands from _f_i_l_e_n_a_m_e + The .. command (ssoouurrccee) reads and execute commands from _f_i_l_e_n_a_m_e in the current shell environment and returns the exit status of the last command executed from _f_i_l_e_n_a_m_e. - If _f_i_l_e_n_a_m_e does not contain a slash, .. searchs for it. If the - --pp option is supplied, .. treats _p_a_t_h as a colon-separated list - of directories in which to find _f_i_l_e_n_a_m_e; otherwise, .. uses the - entries in PPAATTHH to find the directory containing _f_i_l_e_n_a_m_e. - _f_i_l_e_n_a_m_e does not need to be executable. When bbaasshh is not in + If _f_i_l_e_n_a_m_e does not contain a slash, .. searches for it. If the + --pp option is supplied, .. treats _p_a_t_h as a colon-separated list + of directories in which to find _f_i_l_e_n_a_m_e; otherwise, .. uses the + entries in PPAATTHH to find the directory containing _f_i_l_e_n_a_m_e. + _f_i_l_e_n_a_m_e does not need to be executable. When bbaasshh is not in _p_o_s_i_x _m_o_d_e, it searches the current directory if _f_i_l_e_n_a_m_e is not - found in PPAATTHH, but does not search the current directory if --pp + found in PPAATTHH, but does not search the current directory if --pp is supplied. If the ssoouurrcceeppaatthh option to the sshhoopptt builtin com- - mand is turned off, .. does not search PPAATTHH. + mand is turned off, .. does not search PPAATTHH. - If any _a_r_g_u_m_e_n_t_s are supplied, they become the positional para- - meters when _f_i_l_e_n_a_m_e is executed. Otherwise the positional pa- + If any _a_r_g_u_m_e_n_t_s are supplied, they become the positional para- + meters when _f_i_l_e_n_a_m_e is executed. Otherwise the positional pa- rameters are unchanged. If the --TT option is enabled, .. inherits any trap on DDEEBBUUGG; if it - is not, any DDEEBBUUGG trap string is saved and restored around the + is not, any DDEEBBUUGG trap string is saved and restored around the call to .., and .. unsets the DDEEBBUUGG trap while it executes. If --TT is not set, and the sourced file changes the DDEEBBUUGG trap, the new value persists after .. completes. The return status is the sta- tus of the last command executed from _f_i_l_e_n_a_m_e (0 if no commands - are executed), and non-zero if _f_i_l_e_n_a_m_e is not found or cannot + are executed), and non-zero 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] ...] With no arguments or with the --pp option,aalliiaass 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, define an alias 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 - during command parsing. For each _n_a_m_e in the argument list for - which no _v_a_l_u_e is supplied, print the name and value of the - alias _n_a_m_e. aalliiaass returns true unless a _n_a_m_e is given (without + aliases in the form aalliiaass _n_a_m_e=_v_a_l_u_e on standard output. When + arguments are supplied, define an alias 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 + during command parsing. For each _n_a_m_e in the argument list for + which no _v_a_l_u_e is supplied, print the name and value of the + alias _n_a_m_e. aalliiaass returns true unless a _n_a_m_e is given (without a corresponding =_v_a_l_u_e) 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 - 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, any specified _j_o_b_s_p_e_c was not found or was started + 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 + uses its notion of the _c_u_r_r_e_n_t _j_o_b. bbgg _j_o_b_s_p_e_c returns 0 unless + run when job control is disabled or, when run with job control + enabled, any specified _j_o_b_s_p_e_c was not found or was started without job control. bbiinndd [--mm _k_e_y_m_a_p] [--llssvvSSVVXX] @@ -4943,187 +4964,187 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS bbiinndd [--mm _k_e_y_m_a_p] --pp|--PP [_r_e_a_d_l_i_n_e_-_c_o_m_m_a_n_d] bbiinndd [--mm _k_e_y_m_a_p] _k_e_y_s_e_q:_r_e_a_d_l_i_n_e_-_c_o_m_m_a_n_d bbiinndd _r_e_a_d_l_i_n_e_-_c_o_m_m_a_n_d_-_l_i_n_e - Display current rreeaaddlliinnee key and function bindings, bind a key - sequence to a rreeaaddlliinnee function or macro or to a shell command, - or set a rreeaaddlliinnee variable. Each non-option argument is a key - binding or command as it would appear in a rreeaaddlliinnee initializa- - tion file such as _._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'. In the following descriptions, output - available to be re-read is formatted as commands that would ap- + Display current rreeaaddlliinnee key and function bindings, bind a key + sequence to a rreeaaddlliinnee function or macro or to a shell command, + or set a rreeaaddlliinnee variable. Each non-option argument is a key + binding or command as it would appear in a rreeaaddlliinnee initializa- + tion file such as _._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'. In the following descriptions, output + available to be re-read is formatted as commands that would ap- pear in a rreeaaddlliinnee initialization file or that would be supplied - as individual arguments to a bbiinndd command. Options, if sup- + as individual arguments to a bbiinndd command. Options, if sup- plied, 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 (_v_i_-_m_o_v_e - is also a synonym); _e_m_a_c_s is equivalent to _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 (_v_i_-_m_o_v_e + is also a synonym); _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 - way that they can be used as an argument to a subsequent - bbiinndd command or in a rreeaaddlliinnee initialization file. If - arguments remain after option processing, bbiinndd treats - them as readline command names and restricts output to - those names. - --PP List current rreeaaddlliinnee function names and bindings. If + --pp Display rreeaaddlliinnee function names and bindings in such a + way that they can be used as an argument to a subsequent + bbiinndd command or in a rreeaaddlliinnee initialization file. If arguments remain after option processing, bbiinndd treats them as readline command names and restricts output to those names. - --ss Display rreeaaddlliinnee key sequences bound to macros and the - strings they output in such a way that they can be used + --PP List current rreeaaddlliinnee function names and bindings. If + arguments remain after option processing, bbiinndd treats + them as readline command names and restricts output to + those names. + --ss Display rreeaaddlliinnee key sequences bound to macros and the + strings they output in such a way that they can be used as an argument to a subsequent bbiinndd command or in a rreeaadd-- lliinnee initialization file. - --SS Display rreeaaddlliinnee key sequences bound to macros and the + --SS Display rreeaaddlliinnee key sequences bound to macros and the strings they output. - --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 used as an argument to a subsequent bbiinndd command or in a rreeaaddlliinnee initialization file. --VV List current rreeaaddlliinnee variable names and values. --ff _f_i_l_e_n_a_m_e Read key bindings from _f_i_l_e_n_a_m_e. --qq _f_u_n_c_t_i_o_n - Display key sequences that invoke the named rreeaaddlliinnee + Display key sequences that invoke the named rreeaaddlliinnee _f_u_n_c_t_i_o_n. --uu _f_u_n_c_t_i_o_n - Unbind all key sequences bound to the named rreeaaddlliinnee + Unbind all key sequences bound to the named rreeaaddlliinnee _f_u_n_c_t_i_o_n. --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 en- tered. The separator between _k_e_y_s_e_q and _s_h_e_l_l_-_c_o_m_m_a_n_d is - either whitespace or a colon optionally followed by - whitespace. If the separator is whitespace, _s_h_e_l_l_-_c_o_m_- - _m_a_n_d must be enclosed in double quotes and rreeaaddlliinnee ex- - pands any of its special backslash-escapes in _s_h_e_l_l_-_c_o_m_- - _m_a_n_d before saving it. If the separator is a colon, any - enclosing double quotes are optional, and rreeaaddlliinnee does - not expand the command string before saving it. Since - the entire key binding expression must be a single argu- - ment, it should be enclosed in single quotes. When - _s_h_e_l_l_-_c_o_m_m_a_n_d is executed, the shell sets the RREEAADD-- - LLIINNEE__LLIINNEE variable to the contents of the rreeaaddlliinnee line + either whitespace or a colon optionally followed by + whitespace. If the separator is whitespace, _s_h_e_l_l_-_c_o_m_- + _m_a_n_d must be enclosed in double quotes and rreeaaddlliinnee ex- + pands any of its special backslash-escapes in _s_h_e_l_l_-_c_o_m_- + _m_a_n_d before saving it. If the separator is a colon, any + enclosing double quotes are optional, and rreeaaddlliinnee does + not expand the command string before saving it. Since + the entire key binding expression must be a single argu- + ment, it should be enclosed in single quotes. When + _s_h_e_l_l_-_c_o_m_m_a_n_d is executed, the shell sets the RREEAADD-- + LLIINNEE__LLIINNEE variable to the contents of the rreeaaddlliinnee line buffer and the RREEAADDLLIINNEE__PPOOIINNTT and RREEAADDLLIINNEE__MMAARRKK variables - to the current location of the insertion point and the - saved insertion point (the mark), respectively. The - shell assigns any numeric argument the user supplied to - the RREEAADDLLIINNEE__AARRGGUUMMEENNTT variable. If there was no argu- - ment, that variable is not set. If the executed command - changes the value of any of RREEAADDLLIINNEE__LLIINNEE, RREEAADD-- - LLIINNEE__PPOOIINNTT, or RREEAADDLLIINNEE__MMAARRKK, those new values will be + to the current location of the insertion point and the + saved insertion point (the mark), respectively. The + shell assigns any numeric argument the user supplied to + the RREEAADDLLIINNEE__AARRGGUUMMEENNTT variable. If there was no argu- + ment, that variable is not set. If the executed command + changes the value of any of RREEAADDLLIINNEE__LLIINNEE, RREEAADD-- + LLIINNEE__PPOOIINNTT, or RREEAADDLLIINNEE__MMAARRKK, those new values will be reflected in the editing state. - --XX List all key sequences bound to shell commands and the - associated commands in a format that can be reused as an + --XX List all key sequences bound to shell commands and the + associated commands in a format that can be reused as an argument to a subsequent @code{bind} command. - The return value is 0 unless an unrecognized option is supplied + The return value is 0 unless an unrecognized option is supplied or an error occurred. bbrreeaakk [_n] - Exit from within a ffoorr, wwhhiillee, uunnttiill, or sseelleecctt loop. If _n is + Exit from within a ffoorr, wwhhiillee, uunnttiill, or sseelleecctt loop. If _n is specified, bbrreeaakk exits _n enclosing loops. _n must be >= 1. If _n - is greater than the number of enclosing loops, all enclosing + is greater than the number of enclosing loops, all enclosing loops are exited. The return value is 0 unless _n is not greater than or equal to 1. 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 _s_h_e_l_l_-_b_u_i_l_t_i_n, 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 functionality of the builtin within the function. - The ccdd builtin is commonly redefined this way. The return sta- + Execute the specified shell builtin _s_h_e_l_l_-_b_u_i_l_t_i_n, 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 functionality of the builtin within the function. + The ccdd builtin is commonly redefined this way. The return sta- tus is false if _s_h_e_l_l_-_b_u_i_l_t_i_n is not a shell builtin command. 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). - Without _e_x_p_r, ccaalllleerr displays the line number and source file- - name of the current subroutine call. If a non-negative integer + Without _e_x_p_r, ccaalllleerr displays the line number and source file- + name of the current subroutine call. If a non-negative integer is supplied as _e_x_p_r, ccaalllleerr displays the line number, subroutine name, and source file corresponding to that position in the cur- - rent execution call stack. This extra information may be used, + rent 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 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. ccdd [--LL|[--PP [--ee]]] [-@] [_d_i_r] - Change the current directory to _d_i_r. if _d_i_r is not supplied, - the value of the HHOOMMEE shell variable is used as _d_i_r. The vari- - able CCDDPPAATTHH exists, ccdd uses it as a search path: the shell + Change the current directory to _d_i_r. if _d_i_r is not supplied, + the value of the HHOOMMEE shell variable is used as _d_i_r. The vari- + able CCDDPPAATTHH exists, ccdd uses it as a search path: the shell searches each directory name in CCDDPPAATTHH for _d_i_r. Alternative di- - rectory 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 + rectory 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 causes ccdd to use the physical directory structure + The --PP option causes ccdd to use the physical directory structure by resolving symbolic links while traversing _d_i_r and before pro- - cessing instances of _._. in _d_i_r (see also the --PP option to the + cessing instances of _._. in _d_i_r (see also the --PP option to the sseett builtin command). - The --LL option forces symbolic links to be followed by resolving + The --LL option forces symbolic links to be followed by resolving the link after processing instances of _._. in _d_i_r. If _._. appears - in _d_i_r, it is processed by removing the immediately previous + in _d_i_r, it is processed by removing the immediately previous pathname component from _d_i_r, back to a slash or the beginning of _d_i_r. - If the --ee option is supplied with --PP, and the current working - directory cannot be successfully determined after a successful + If the --ee option is supplied with --PP, and the current working + directory cannot be successfully determined after a successful directory change, ccdd will return a non-zero status. - On systems that support it, the --@@ option presents the extended + On systems that support it, the --@@ option presents the extended attributes associated with a file as a directory. - An argument of -- is converted to $$OOLLDDPPWWDD before attempting the + An argument of -- is converted to $$OOLLDDPPWWDD before attempting the directory change. - If ccdd uses a non-empty directory name from CCDDPPAATTHH,, or if -- is - the first argument, and the directory change is successful, ccdd + If ccdd uses a non-empty directory name from CCDDPPAATTHH,, or if -- is + the first argument, and the directory change is successful, ccdd writes the absolute pathname of the new working directory to the standard output. - If the directory change is successful, ccdd sets the value of the + If the directory change is successful, ccdd sets the value of the PPWWDD environment variable to the new directory name, and sets the - OOLLDDPPWWDD environment variable to the value of the current working + OOLLDDPPWWDD environment variable to the value of the current working directory before the change. - The return value is true if the directory was successfully + The return value is true if the directory was successfully changed; false otherwise. ccoommmmaanndd [--ppVVvv] _c_o_m_m_a_n_d [_a_r_g ...] - The ccoommmmaanndd builtin runs _c_o_m_m_a_n_d with _a_r_g_s suppressing the nor- + The ccoommmmaanndd builtin runs _c_o_m_m_a_n_d with _a_r_g_s suppressing the nor- mal shell function lookup for _c_o_m_m_a_n_d. Only builtin commands or - commands found in the PPAATTHH named _c_o_m_m_a_n_d are executed. If the + commands found in the PPAATTHH named _c_o_m_m_a_n_d are executed. If the --pp option is supplied, 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 + a default value for PPAATTHH that is guaranteed to find all of the standard utilities. - If either the --VV or --vv option is supplied, ccoommmmaanndd prints a de- - scription of _c_o_m_m_a_n_d. The --vv option displays a single word in- - dicating the command or filename used to invoke _c_o_m_m_a_n_d; the --VV + If either the --VV or --vv option is supplied, ccoommmmaanndd prints a de- + scription of _c_o_m_m_a_n_d. The --vv option displays a single word in- + dicating the command or filename used to invoke _c_o_m_m_a_n_d; the --VV option produces a more verbose description. - If the --VV or --vv option is supplied, the exit status is zero if - _c_o_m_m_a_n_d was found, and non-zero if not. If neither option is - supplied and an error occurred or _c_o_m_m_a_n_d cannot be found, the - exit status is 127. Otherwise, the exit status of the ccoommmmaanndd + If the --VV or --vv option is supplied, the exit status is zero if + _c_o_m_m_a_n_d was found, and non-zero if not. If neither option is + supplied and an error occurred or _c_o_m_m_a_n_d cannot be found, the + exit status is 127. Otherwise, the exit status of the ccoommmmaanndd builtin is the exit status of _c_o_m_m_a_n_d. ccoommppggeenn [--VV _v_a_r_n_a_m_e] [_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 + 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 exceptions of --pp, --rr, --DD, --EE, and --II, and write the matches to the standard output. - If the --VV option is supplied, ccoommppggeenn stores the generated com- - pletions into the indexed array variable _v_a_r_n_a_m_e instead of + If the --VV option is supplied, ccoommppggeenn stores the generated com- + pletions into the indexed array variable _v_a_r_n_a_m_e instead of writing them to the standard output. When using the --FF or --CC options, the various shell variables set @@ -5132,11 +5153,11 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS The matches will be generated in the same way as if the program- mable completion code had generated them directly from a comple- - tion specification with the same flags. If _w_o_r_d is specified, - only those completions matching _w_o_r_d will be displayed or + tion specification with the same flags. If _w_o_r_d is specified, + only those completions matching _w_o_r_d will be displayed or stored. - 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] [--DDEEII] [--AA _a_c_t_i_o_n] @@ -5146,78 +5167,78 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS Specify how arguments to each _n_a_m_e should be completed. If the --pp option is supplied, or if no options or _n_a_m_es are sup- - plied, print existing completion specifications in a way that + plied, print existing completion specifications in a way that allows them to be reused as input. The --rr option removes a com- - pletion specification for each _n_a_m_e, or, if no _n_a_m_es are sup- + pletion specification for each _n_a_m_e, or, if no _n_a_m_es are sup- plied, all completion specifications. - The --DD option indicates that other supplied options and actions - should apply to the "default" command completion; that is, com- - pletion attempted on a command for which no completion has pre- - viously been defined. The --EE option indicates that other sup- - plied options and actions should apply to "empty" command com- - pletion; that is, completion attempted on a blank line. The --II - option indicates that other supplied options and actions should - apply to completion on the initial non-assignment word on the + The --DD option indicates that other supplied options and actions + should apply to the "default" command completion; that is, com- + pletion attempted on a command for which no completion has pre- + viously been defined. The --EE option indicates that other sup- + plied options and actions should apply to "empty" command com- + pletion; that is, completion attempted on a blank line. The --II + option indicates that other supplied options and actions should + apply to completion on the initial non-assignment word on the line, or after a command delimiter such as ;; or ||, which is usu- ally command name completion. If multiple options are supplied, the --DD option takes precedence over --EE, and both take precedence - over --II. If any of --DD, --EE, or --II are supplied, any other _n_a_m_e - arguments are ignored; these completions only apply to the case + over --II. If any of --DD, --EE, or --II are supplied, any other _n_a_m_e + arguments are ignored; these completions only apply to the case specified by the option. The process of applying these completion specifications when at- - tempting word completion is described above under PPrrooggrraammmmaabbllee + tempting word completion is described above under PPrrooggrraammmmaabbllee 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 rreeaaddlliinnee's default filename completion if + ddeeffaauulltt Use rreeaaddlliinnee'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 rreeaaddlliinnee that the compspec generates file- - names, so it can perform any filename-specific - processing (such as adding a slash to directory - names, quoting special characters, or suppress- - ing trailing spaces). This is intended to be + Tell rreeaaddlliinnee that the compspec generates file- + names, so it can perform any filename-specific + processing (such as adding a slash to directory + names, quoting special characters, or suppress- + ing trailing spaces). This is intended to be used with shell functions. ffuullllqquuoottee - Tell rreeaaddlliinnee to quote all the completed words + Tell rreeaaddlliinnee to quote all the completed words even if they are not filenames. - nnooqquuoottee Tell rreeaaddlliinnee not to quote the completed words - if they are filenames (quoting filenames is the + nnooqquuoottee Tell rreeaaddlliinnee not to quote the completed words + if they are filenames (quoting filenames is the default). - nnoossoorrtt Tell rreeaaddlliinnee not to sort the list of possible + nnoossoorrtt Tell rreeaaddlliinnee not to sort the list of possible completions alphabetically. - nnoossppaaccee Tell rreeaaddlliinnee not to append a space (the de- - fault) to words completed at the end of the + nnoossppaaccee Tell rreeaaddlliinnee not to append a space (the de- + fault) to words completed at the end of the line. pplluussddiirrss - After generating any matches defined by the - compspec, attempt directory name completion and - add any matches to the results of the other ac- + After generating any matches defined by the + compspec, attempt directory name completion and + add any matches to the results of the other ac- tions. --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 @@ -5225,7 +5246,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 @@ -5234,17 +5255,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. @@ -5253,218 +5274,219 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS Names of all shell variables. May also be spec- ified as --vv. --CC _c_o_m_m_a_n_d - _c_o_m_m_a_n_d is executed in a subshell environment, and its - output is used as the possible completions. Arguments + _c_o_m_m_a_n_d is executed in a subshell environment, and its + output is used as the possible completions. Arguments are passed as with the --FF option. --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 the function is executed, the + The shell function _f_u_n_c_t_i_o_n is executed in the current + shell environment. When the function is executed, the first argument ($$11) is the name of the command whose ar- guments are being completed, the second argument ($$22) is the word being completed, and the third argument ($$33) is - the word preceding the word being completed on the cur- + the word preceding the word being completed on the cur- rent command line. When _f_u_n_c_t_i_o_n finishes, programmable - completion retrieves the possible completions from the + completion retrieves the possible completions from the value of the CCOOMMPPRREEPPLLYY array variable. --GG _g_l_o_b_p_a_t - Expand the pathname expansion pattern _g_l_o_b_p_a_t to gener- + Expand the pathname expansion pattern _g_l_o_b_p_a_t to gener- ate the possible completions. --PP _p_r_e_f_i_x - Add _p_r_e_f_i_x to the beginning of each possible completion + Add _p_r_e_f_i_x to the beginning of each possible completion after all other options have been applied. --SS _s_u_f_f_i_x - Append _s_u_f_f_i_x to each possible completion after all + Append _s_u_f_f_i_x to each possible completion after all other options have been applied. --WW _w_o_r_d_l_i_s_t - Split the _w_o_r_d_l_i_s_t using the characters in the IIFFSS spe- - cial variable as delimiters, and expand each resulting - word. Shell quoting is honored within _w_o_r_d_l_i_s_t, in or- - der to provide a mechanism for the words to contain - shell metacharacters or characters in the value of IIFFSS. - The possible completions are the members of the resul- - tant list which match a prefix of the word being com- + Split the _w_o_r_d_l_i_s_t using the characters in the IIFFSS spe- + cial variable as delimiters, and expand each resulting + word. Shell quoting is honored within _w_o_r_d_l_i_s_t, in or- + der to provide a mechanism for the words to contain + shell metacharacters or characters in the value of IIFFSS. + The possible completions are the members of the resul- + tant list which match a prefix of the word being com- pleted. --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 pathname expansion. + _f_i_l_t_e_r_p_a_t is a pattern as used for pathname 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 + 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. - The return value is true unless an invalid option is supplied, + The return value is true unless an invalid option is supplied, an option other than --pp, --rr, --DD, --EE, or --II is supplied without a - _n_a_m_e argument, an attempt is made to remove a completion speci- + _n_a_m_e argument, an attempt is made to remove a completion speci- fication for a _n_a_m_e for which no specification exists, or an er- ror occurs adding a completion specification. ccoommppoopptt [--oo _o_p_t_i_o_n] [--DDEEII] [++oo _o_p_t_i_o_n] [_n_a_m_e] - Modify completion options for each _n_a_m_e according to the _o_p_- + Modify completion options for each _n_a_m_e according to the _o_p_- _t_i_o_ns, or for the currently-executing completion if no _n_a_m_es are - supplied. If no _o_p_t_i_o_ns are supplied, display the completion - options for each _n_a_m_e or the current completion. The possible - values of _o_p_t_i_o_n are those valid for the ccoommpplleettee builtin de- + supplied. If no _o_p_t_i_o_ns are supplied, display the completion + options for each _n_a_m_e or the current completion. The possible + values of _o_p_t_i_o_n are those valid for the ccoommpplleettee builtin de- scribed above. The --DD option indicates that other supplied options should apply - to the "default" command completion; the --EE option indicates + to the "default" command completion; the --EE option indicates that other supplied options should apply to "empty" command com- pletion; and the --II option indicates that other supplied options - should apply to completion on the initial word on the line. + should apply to completion on the initial word on the line. These are determined in the same way as the ccoommpplleettee builtin. If multiple options are supplied, the --DD option takes precedence over --EE, and both take precedence over --II. - The return value is true unless an invalid option is supplied, + The return value is true unless an invalid option is supplied, an attempt is made to modify the options for a _n_a_m_e for which no completion specification exists, or an output error occurs. ccoonnttiinnuuee [_n] ccoonnttiinnuuee resumes the next iteration of the enclosing ffoorr, wwhhiillee, - uunnttiill, or sseelleecctt loop. If _n is specified, bbaasshh resumes the _nth - enclosing loop. _n must be >= 1. If _n is greater than the num- - ber of enclosing loops, the shell resumes the last enclosing - loop (the "top-level" loop). The return value is 0 unless _n is + uunnttiill, or sseelleecctt loop. If _n is specified, bbaasshh resumes the _nth + enclosing loop. _n must be >= 1. If _n is greater than the num- + ber of enclosing loops, the shell resumes the last enclosing + loop (the "top-level" loop). The return value is 0 unless _n is not greater than or equal to 1. ddeeccllaarree [--aaAAffFFggiiIIllnnrrttuuxx] [--pp] [_n_a_m_e[=_v_a_l_u_e] ...] ttyyppeesseett [--aaAAffFFggiiIIllnnrrttuuxx] [--pp] [_n_a_m_e[=_v_a_l_u_e] ...] - Declare variables and/or give them attributes. If no _n_a_m_es are + Declare variables and/or give them attributes. If no _n_a_m_es are given then display the values of variables or functions. The --pp - option will display the attributes and values of each _n_a_m_e. - When --pp is used with _n_a_m_e arguments, additional options, other + option will display the attributes and values of each _n_a_m_e. + When --pp is used with _n_a_m_e arguments, additional options, other than --ff and --FF, are ignored. When --pp is supplied without _n_a_m_e arguments, ddeeccllaarree will display the attributes and values of all variables having the attributes - specified by the additional options. If no other options are + specified by the additional options. If no other options are supplied with --pp, ddeeccllaarree will display the attributes and values - of all shell variables. The --ff option restricts the display to + of all shell variables. The --ff option restricts the display to shell functions. 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 each _n_a_m_e is defined are displayed as well. + the function name and attributes are printed. If the eexxttddeebbuugg + shell option is enabled using sshhoopptt, the source file name and + line number where each _n_a_m_e is defined are displayed as well. The --FF option implies --ff. - The --gg option forces variables to be created or modified at the + The --gg option forces variables to be created or modified at the global scope, even when ddeeccllaarree is executed in a shell function. It is ignored when ddeeccllaarree is not executed in a shell function. - The --II option causes local variables to inherit the attributes - (except the _n_a_m_e_r_e_f attribute) and value of any existing vari- - able with the same _n_a_m_e at a surrounding scope. If there is no + The --II option causes local variables to inherit the attributes + (except the _n_a_m_e_r_e_f attribute) and value of any existing vari- + able with the same _n_a_m_e at a surrounding scope. If there is no existing variable, the local variable is initially unset. - The following options can be used to restrict output to vari- - ables with the specified attribute or to give variables attrib- + The following options can be used to restrict output to vari- + ables with the specified attribute or to give variables attrib- utes: - --aa Each _n_a_m_e is an indexed array variable (see AArrrraayyss + --aa Each _n_a_m_e is an indexed array variable (see AArrrraayyss above). - --AA Each _n_a_m_e is an associative array variable (see AArrrraayyss + --AA Each _n_a_m_e is an associative array variable (see AArrrraayyss above). --ff Each _n_a_m_e refers to a shell function. --ii The variable is treated as an integer; arithmetic evalua- - tion (see AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN above) is performed when + tion (see AARRIITTHHMMEETTIICC EEVVAALLUUAATTIIOONN above) is performed when the variable is assigned a value. - --ll When the variable is assigned a value, all upper-case - characters are converted to lower-case. The upper-case + --ll When the variable is assigned a value, all upper-case + characters are converted to lower-case. The upper-case attribute is disabled. - --nn Give each _n_a_m_e the _n_a_m_e_r_e_f attribute, making it a name - reference to another variable. That other variable is - defined by the value of _n_a_m_e. All references, assign- - ments, and attribute modifications to _n_a_m_e, except those - using or changing the --nn attribute itself, are performed - on the variable referenced by _n_a_m_e's value. The nameref + --nn Give each _n_a_m_e the _n_a_m_e_r_e_f attribute, making it a name + reference to another variable. That other variable is + defined by the value of _n_a_m_e. All references, assign- + ments, and attribute modifications to _n_a_m_e, except those + using or changing the --nn attribute itself, are performed + on the variable referenced by _n_a_m_e's value. The nameref attribute cannot be applied to array variables. --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 in- - herit the DDEEBBUUGG and RREETTUURRNN traps from the calling shell. + herit the DDEEBBUUGG and RREETTUURRNN traps from the calling shell. The trace attribute has no special meaning for variables. - --uu When the variable is assigned a value, all lower-case - characters are converted to upper-case. The lower-case + --uu When the variable is assigned a value, all lower-case + characters are converted to upper-case. The lower-case attribute is disabled. - --xx Mark each _n_a_m_e for export to subsequent commands via the + --xx Mark each _n_a_m_e for export to subsequent commands via the environment. - Using "+" instead of "-" turns off the specified attribute in- + Using "+" instead of "-" turns off the specified attribute in- stead, with the exceptions that ++aa and ++AA may not be used to de- - stroy array variables and ++rr will not remove the readonly at- + stroy array variables and ++rr will not remove the readonly at- tribute. - When used in a function, ddeeccllaarree and ttyyppeesseett make each _n_a_m_e lo- - cal, as with the llooccaall command, unless the --gg option is sup- - plied. 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. When using --aa or --AA and the com- - pound assignment syntax to create array variables, additional + When used in a function, ddeeccllaarree and ttyyppeesseett make each _n_a_m_e lo- + cal, as with the llooccaall command, unless the --gg option is sup- + plied. 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. When using --aa or --AA and the com- + pound assignment syntax to create array variables, additional attributes do not take effect until subsequent assignments. - The return value is 0 unless an invalid option is encountered, - an attempt is made to define a function using "-f foo=bar". an + 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 at- tempt is made to assign a value to an array variable without us- - ing the compound assignment syntax (see AArrrraayyss above), one of + ing 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 readonly status for a readonly variable, an attempt - is made to turn off array status for an array variable, or an + to turn off readonly 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, display the list of currently remembered direc- - tories. 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. The current directory is always the first directory + tories. 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. The current directory is always the first directory in the stack. Options, if supplied, have the following meanings: - --cc Clears the directory stack by deleting all of the en- + --cc Clears the directory stack by deleting all of the en- tries. - --ll Produces a listing using full pathnames; the default + --ll Produces a listing using full pathnames; 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. ++_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. - 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] [_i_d ...] - Without options, remove each _i_d from the table of active jobs. - Each _i_d may be a job specification _j_o_b_s_p_e_c or a process ID _p_i_d; - if _i_d is a _p_i_d, ddiissoowwnn uses the job containing _p_i_d as _j_o_b_s_p_e_c. - If _i_d is not present, and neither the --aa nor the --rr option is - supplied, ddiissoowwnn removes the _c_u_r_r_e_n_t _j_o_b. If the --hh option is - supplied, the job corresponding to each _i_d 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 _i_d is supplied, the --aa option means to remove or mark all - jobs; the --rr option without an _i_d argument restricts operation - to running jobs. + Without options, remove each _i_d from the table of active jobs. + Each _i_d may be a job specification _j_o_b_s_p_e_c or a process ID _p_i_d; + if _i_d is a _p_i_d, ddiissoowwnn uses the job containing _p_i_d as _j_o_b_s_p_e_c. + + If the --hh option is supplied, ddiissoowwnn does not remove the jobs + corresponding to each _i_d from the jobs table, but rather marks + them so the shell does not send SSIIGGHHUUPP to the job if the shell + receives a SSIIGGHHUUPP. + + If no _i_d is supplied, the --aa option means to remove or mark all + jobs; the --rr option without an _i_d argument removes or marks run- + ning jobs. If no _i_d is supplied, and neither the --aa nor the --rr + option is supplied, ddiissoowwnn removes or marks the current job. The return value is 0 unless an _i_d does not specify a valid job. eecchhoo [--nneeEE] [_a_r_g ...] - Output the _a_r_gs, separated by spaces, followed by a newline. - The return status is 0 unless a write error occurs. If --nn is + Output the _a_r_gs, separated by spaces, followed by a newline. + The return status is 0 unless a write error occurs. If --nn is specified, the trailing newline is not printed. - If the --ee option is given, eecchhoo interprets the following back- + If the --ee option is given, eecchhoo interprets the following back- slash-escaped characters. The --EE option disables interpretation - of these escape characters, even on systems where they are in- - terpreted by default. The xxppgg__eecchhoo shell option determines + of these escape characters, even on systems where they are in- + terpreted by default. The xxppgg__eecchhoo shell option determines whether or not eecchhoo interprets any options and expands these es- - cape characters. eecchhoo does not interpret ---- to mean the end of + cape characters. eecchhoo does not interpret ---- to mean the end of options. eecchhoo interprets the following escape sequences: @@ -5479,101 +5501,101 @@ 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). - \\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). - \\uu_H_H_H_H The Unicode (ISO/IEC 10646) character whose value is the + \\uu_H_H_H_H The Unicode (ISO/IEC 10646) character whose value is the hexadecimal value _H_H_H_H (one to four hex digits). \\UU_H_H_H_H_H_H_H_H - The Unicode (ISO/IEC 10646) character whose value is the + The Unicode (ISO/IEC 10646) character whose value is the hexadecimal value _H_H_H_H_H_H_H_H (one to eight hex digits). - eecchhoo writes any unrecognized backslash-escaped characters un- + eecchhoo writes any unrecognized backslash-escaped characters un- changed. eennaabbllee [--aa] [--ddnnppss] [--ff _f_i_l_e_n_a_m_e] [_n_a_m_e ...] - Enable and disable builtin shell commands. Disabling a builtin - allows an executable file which has the same name as a shell - builtin to be executed without specifying a full pathname, even + Enable and disable builtin shell commands. Disabling a builtin + allows an executable file 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 files. - If --nn is supplied, each _n_a_m_e is disabled; otherwise, _n_a_m_es are - enabled. For example, to use the tteesstt binary found usin g PPAATTHH + If --nn is supplied, each _n_a_m_e is disabled; otherwise, _n_a_m_es are + enabled. For example, to use the tteesstt binary found usin g PPAATTHH instead of the shell builtin version, run "enable -n test". - If no _n_a_m_e arguments are supplied, or if the --pp option is sup- + If no _n_a_m_e arguments are supplied, or if the --pp option is sup- plied, print a list of shell builtins. With no other option ar- guments, the list consists of all enabled shell builtins. If --nn - is supplied, print only disabled builtins. If --aa is supplied, - the list printed includes all builtins, with an indication of + is supplied, print only disabled builtins. If --aa is supplied, + the list printed includes all builtins, with an indication of whether or not each is enabled. The --ss option means to restrict the output to the POSIX _s_p_e_c_i_a_l builtins. - The --ff option means to load the new builtin command _n_a_m_e from + 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. If _f_i_l_e_n_a_m_e does not contain a slash, BBaasshh will use the value of - the BBAASSHH__LLOOAADDAABBLLEESS__PPAATTHH variable as a colon-separated list of - directories in which to search for _f_i_l_e_n_a_m_e. The default for - BBAASSHH__LLOOAADDAABBLLEESS__PPAATTHH is system-dependent, and may include "." to - force a search of the current directory. The --dd option will - delete a builtin previously loaded with --ff. If _-_s is used with + the BBAASSHH__LLOOAADDAABBLLEESS__PPAATTHH variable as a colon-separated list of + directories in which to search for _f_i_l_e_n_a_m_e. The default for + BBAASSHH__LLOOAADDAABBLLEESS__PPAATTHH is system-dependent, and may include "." to + force a search of the current directory. The --dd option will + delete a builtin previously loaded with --ff. If _-_s is used with _-_f, the new builtin becomes a POSIX special builtin. - If no options are supplied and a _n_a_m_e is not a shell builtin, - eennaabbllee will attempt to load _n_a_m_e from a shared object named + If no options are supplied and a _n_a_m_e is not a shell builtin, + eennaabbllee will attempt to load _n_a_m_e from a shared object named _n_a_m_e, as if the command were "enable -f _n_a_m_e _n_a_m_e". - The return value is 0 unless a _n_a_m_e is not a shell builtin or + 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 ...] - Concatenate the _a_r_gs together into a single command, separating + Concatenate the _a_r_gs together into a single command, separating them with spaces. BBaasshh then reads and execute this command, and - returns its exit status as the return status of eevvaall. If there + returns its exit status as the return status 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 without creating - a new process. _c_o_m_m_a_n_d cannot be a shell builtin or function. + If _c_o_m_m_a_n_d is specified, it replaces the shell without creating + a new process. _c_o_m_m_a_n_d cannot be a shell builtin or function. 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 beginning of the ze- - roth argument 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 envi- + roth argument 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 envi- ronment. 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 eexxeeccffaaiill shell option is enabled. In - that case, it returns a non-zero status. An interactive shell - returns a non-zero status if the file cannot be executed. A + shell exits, unless the eexxeeccffaaiill shell option is enabled. In + that case, it returns a non-zero status. An interactive shell + returns a non-zero status if the file cannot be executed. A subshell exits unconditionally if eexxeecc fails. 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 redi- + current shell, and the return status is 0. If there is a redi- rection error, the return status is 1. eexxiitt [_n] - Cause the shell to exit with a status of _n. If _n is omitted, - the exit status is that of the last command executed. Any trap + Cause the shell to exit with a status of _n. If _n is omitted, + the exit status is that of the last command executed. Any trap on EEXXIITT is executed before the shell terminates. eexxppoorrtt [--ffnn] [_n_a_m_e[=_v_a_l_u_e]] ... 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 + 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. - The --nn option unexports, or removes the export attribute, from - each _n_a_m_e. If no _n_a_m_e_s are given, or if the --pp option is sup- - plied, eexxppoorrtt prints a list of names of all exported variables + The --nn option unexports, or removes the export attribute, from + each _n_a_m_e. If no _n_a_m_e_s are given, or if the --pp option is sup- + plied, eexxppoorrtt prints a list of names of all exported variables on the standard output. - eexxppoorrtt allows the value of a variable to be set when it is ex- + eexxppoorrtt allows the value of a variable to be set when it is ex- ported or unexported by following the variable name with =_v_a_l_u_e. This sets the value of the variable to _v_a_l_u_e while modifying the - export attribute. 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 + export attribute. 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 function. @@ -5581,57 +5603,57 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS ffcc [--ee _e_n_a_m_e] [--llnnrr] [_f_i_r_s_t] [_l_a_s_t] ffcc --ss [_p_a_t=_r_e_p] [_c_m_d] - The first form selects a range of commands from _f_i_r_s_t to _l_a_s_t - from the history list and displays or edits and re-executes - them. _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 + The first form selects a range of commands from _f_i_r_s_t to _l_a_s_t + from the history list and displays or edits and re-executes + them. _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 current command number). When listing, a _f_i_r_s_t or _l_a_s_t of 0 is equivalent to -1 and -0 is equivalent to the current command (usually the ffcc command); oth- - erwise 0 is equivalent to -1 and -0 is invalid. If _l_a_s_t is not + erwise 0 is equivalent to -1 and -0 is invalid. If _l_a_s_t is not specified, it is set to 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 specified, it is set to the previous command for editing and -16 for listing. - If the --ll option is supplied, the commands are listed on the - standard output. The --nn option suppresses the command numbers + If the --ll option is supplied, the commands are listed on the + standard output. The --nn option suppresses the command numbers when listing. The --rr option reverses the order of the commands. - Otherwise, ffcc invokes the editor named by _e_n_a_m_e on a file con- - taining those commands. If _e_n_a_m_e is not supplied, ffcc uses the - value of the FFCCEEDDIITT variable, and the value of EEDDIITTOORR if FFCCEEDDIITT - is not set. If neither variable is set, ffcc uses _v_i_. When edit- - ing is complete, ffcc reads the file containing the edited com- + Otherwise, ffcc invokes the editor named by _e_n_a_m_e on a file con- + taining those commands. If _e_n_a_m_e is not supplied, ffcc uses the + value of the FFCCEEDDIITT variable, and the value of EEDDIITTOORR if FFCCEEDDIITT + is not set. If neither variable is set, ffcc uses _v_i_. When edit- + ing is complete, ffcc reads the file containing the edited com- mands and echoes and executes them. - In the second form, ffcc re-executes _c_o_m_m_a_n_d after replacing each - instance of _p_a_t with _r_e_p. _C_o_m_m_a_n_d is interpreted the same as + In the second form, ffcc re-executes _c_o_m_m_a_n_d after replacing each + instance of _p_a_t with _r_e_p. _C_o_m_m_a_n_d is interpreted the same as _f_i_r_s_t above. - A useful alias to use with ffcc is "r="fc -s"", so that typing "r + A useful alias to use with ffcc is "r="fc -s"", so that typing "r cc" runs the last command beginning with "cc" and typing "r" re- executes the last command. - If the first form is used, the return value is zero unless an - invalid option is encountered or _f_i_r_s_t or _l_a_s_t specify history - lines out of range. When editing and re-executing a file of + If the first form is used, the return value is zero unless an + invalid option is encountered or _f_i_r_s_t or _l_a_s_t specify history + lines out of range. When editing and re-executing a file of commands, the return value is the value of the last command exe- cuted or failure if an error occurs with the temporary file. If the second form is used, the return status is that of the re-ex- - ecuted command, unless _c_m_d does not specify a valid history en- + ecuted command, unless _c_m_d does not specify a valid history en- try, in which case ffcc returns a non-zero status. 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. - If _j_o_b_s_p_e_c is not present, use the shell's notion of the _c_u_r_r_e_n_t - _j_o_b. 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 specify a - valid job or _j_o_b_s_p_e_c specifies a job that was started without - job control. + 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, ffgg uses the shell's notion of the + _c_u_r_r_e_n_t _j_o_b. The return value is that of the command placed + into the foreground, or failure if run when job control is dis- + abled or, when run with job control enabled, if _j_o_b_s_p_e_c does not + specify 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 ...] ggeettooppttss is used by shell scripts and functions to parse posi- @@ -5811,20 +5833,24 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS _c_o_m_m_a_n_d or _a_r_g_s with the corresponding process group ID, and ex- ecutes _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 [--ss _s_i_g_s_p_e_c | --nn _s_i_g_n_u_m | --_s_i_g_s_p_e_c] _i_d [ ... ] kkiillll --ll|--LL [_s_i_g_s_p_e_c | _e_x_i_t___s_t_a_t_u_s] Send the signal specified 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 - supplied, then kkiillll sends SSIIGGTTEERRMM. - - An argument of --ll lists the signal names. If any arguments are - supplied when --ll is given, kkiillll lists the names of the signals - corresponding to the arguments, 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 sig- - nal number or the exit status of a process terminated by a sig- - nal. The --LL option is equivalent to --ll. + named by each _i_d. Each _i_d may be a job specification _j_o_b_s_p_e_c or + a process ID _p_i_d. _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 sig- + nal number; _s_i_g_n_u_m is a signal number. If _s_i_g_s_p_e_c is not sup- + plied, then kkiillll sends SSIIGGTTEERRMM. + + The --ll option lists the signal names. If any arguments are sup- + plied when --ll is given, kkiillll lists the names of the signals cor- + responding to the arguments, 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 sig- + nal number or the exit status of a process terminated by a sig- + nal; if it is supplied, kkiillll prints the name of the signal that + caused the process to terminate. kkiillll assumes that process exit + statuses are greater than 128; anything less than that is a sig- + nal number. The --LL option is equivalent to --ll. kkiillll returns true if at least one signal was successfully sent, or false if an error occurs or an invalid option is encountered. @@ -6262,7 +6288,7 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS iiggnnoorreeeeooff The effect is as if the shell command "IGNOREEOF=10" had been executed (see SShheellll - VVaarriiaabblleess above). + VVaarriiaabblleess << above). kkeeyywwoorrdd Same as --kk. mmoonniittoorr Same as --mm. nnoocclloobbbbeerr @@ -6966,83 +6992,84 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS wwaaiitt [--ffnn] [--pp _v_a_r_n_a_m_e] [_i_d ...] Wait for each specified child process _i_d and return the termina- - tion status of the last _i_d. Each _i_d may be a process ID or a - job specification; if a job spec is supplied, wwaaiitt waits for all - processes in the job. + tion status of the last _i_d. Each _i_d may be a process ID _p_i_d or + a job specification _j_o_b_s_p_e_c; if a jobspec is supplied, wwaaiitt + waits for all processes in the job. - If no options or _i_ds are supplied, wwaaiitt waits for all running - background jobs and the last-executed process substitution, if + If no options or _i_ds are supplied, wwaaiitt waits for all running + background jobs and the last-executed process substitution, if its process id is the same as $$!!, and the return status is zero. - If the --nn option is supplied, wwaaiitt waits for any one of the + If the --nn option is supplied, wwaaiitt waits for any one of the given _i_ds or, if no _i_ds are supplied, any job or process substi- tution, to complete and returns its exit status. If none of the - supplied _i_ds is a child of the shell, or if no _i_ds are supplied - and the shell has no unwaited-for children, the exit status is + supplied _i_ds is a child of the shell, or if no _i_ds are supplied + and the shell has no unwaited-for children, the exit status is 127. - If the --pp option is supplied, the process or job identifier of - the job for which the exit status is returned is assigned to the - variable _v_a_r_n_a_m_e named by the option argument. The variable, - which cannot be readonly, will be unset initially, before any - assignment. This is useful only when the --nn option is supplied. + If the --pp option is supplied, wwaaiitt assigns the process or job + identifier of the job for which the exit status is returned to + the variable _v_a_r_n_a_m_e named by the option argument. The vari- + able, which cannot be readonly, will be unset initially, before + any assignment. This is useful only when used with the --nn op- + tion. - Supplying the --ff option, when job control is enabled, forces - wwaaiitt to wait for each _i_d to terminate before returning its sta- + Supplying the --ff option, when job control is enabled, forces + wwaaiitt to wait for each _i_d to terminate before returning its sta- tus, instead of returning when it changes status. - If none of the _i_ds specify one of the shell's active child - processes, the return status is 127. If wwaaiitt is interrupted by - a signal, any _v_a_r_n_a_m_e will remain unset, and the return status - will be greater than 128, as described under SSIIGGNNAALLSS above. + If none of the _i_ds specify one of the shell's active child + processes, the return status is 127. If wwaaiitt is interrupted by + a signal, any _v_a_r_n_a_m_e will remain unset, and the return status + will be greater than 128, as described under SSIIGGNNAALLSS above. Otherwise, the return status is the exit status of the last _i_d. SSHHEELLLL CCOOMMPPAATTIIBBIILLIITTYY MMOODDEE - Bash-4.0 introduced the concept of a _s_h_e_l_l _c_o_m_p_a_t_i_b_i_l_i_t_y _l_e_v_e_l, speci- + Bash-4.0 introduced the concept of a _s_h_e_l_l _c_o_m_p_a_t_i_b_i_l_i_t_y _l_e_v_e_l, speci- fied as a set of options to the shopt builtin (ccoommppaatt3311, ccoommppaatt3322, ccoomm-- - ppaatt4400, ccoommppaatt4411, and so on). There is only one current compatibility + ppaatt4400, ccoommppaatt4411, and so on). There is only one current compatibility level -- each option is mutually exclusive. The compatibility level is - intended to allow users to select behavior from previous versions that - is incompatible with newer versions while they migrate scripts to use - current features and behavior. It's intended to be a temporary solu- + intended to allow users to select behavior from previous versions that + is incompatible with newer versions while they migrate scripts to use + current features and behavior. It's intended to be a temporary solu- tion. - This section does not mention behavior that is standard for a particu- - lar version (e.g., setting ccoommppaatt3322 means that quoting the right hand - side of the regexp matching operator quotes special regexp characters - in the word, which is default behavior in bash-3.2 and subsequent ver- + This section does not mention behavior that is standard for a particu- + lar version (e.g., setting ccoommppaatt3322 means that quoting the right hand + side of the regexp matching operator quotes special regexp characters + in the word, which is default behavior in bash-3.2 and subsequent ver- sions). - If a user enables, say, ccoommppaatt3322, it may affect the behavior of other - compatibility levels up to and including the current compatibility - level. The idea is that each compatibility level controls behavior - that changed in that version of bbaasshh, but that behavior may have been - present in earlier versions. For instance, the change to use locale- - based comparisons with the [[[[ command came in bash-4.1, and earlier + If a user enables, say, ccoommppaatt3322, it may affect the behavior of other + compatibility levels up to and including the current compatibility + level. The idea is that each compatibility level controls behavior + that changed in that version of bbaasshh, but that behavior may have been + present in earlier versions. For instance, the change to use locale- + based comparisons with the [[[[ command came in bash-4.1, and earlier versions used ASCII-based comparisons, so enabling ccoommppaatt3322 will enable - ASCII-based comparisons as well. That granularity may not be suffi- - cient for all uses, and as a result users should employ compatibility - levels carefully. Read the documentation for a particular feature to + ASCII-based comparisons as well. That granularity may not be suffi- + cient for all uses, and as a result users should employ compatibility + levels carefully. Read the documentation for a particular feature to find out the current behavior. - Bash-4.3 introduced a new shell variable: BBAASSHH__CCOOMMPPAATT. The value as- + Bash-4.3 introduced a new shell variable: BBAASSHH__CCOOMMPPAATT. The value as- signed to this variable (a decimal version number like 4.2, or an inte- - ger corresponding to the ccoommppaatt_N_N option, like 42) determines the com- + ger corresponding to the ccoommppaatt_N_N option, like 42) determines the com- patibility level. Starting with bash-4.4, bbaasshh began deprecating older compatibility lev- els. Eventually, the options will be removed in favor of BBAASSHH__CCOOMMPPAATT. - Bash-5.0 was the final version for which there was an individual shopt - option for the previous version. BBAASSHH__CCOOMMPPAATT is the only mechanism to + Bash-5.0 was the final version for which there was an individual shopt + option for the previous version. BBAASSHH__CCOOMMPPAATT is the only mechanism to control the compatibility level in versions newer than bash-5.0. - The following table describes the behavior changes controlled by each + The following table describes the behavior changes controlled by each compatibility level setting. The ccoommppaatt_N_N tag is used as shorthand for setting the compatibility level to _N_N using one of the following mecha- - nisms. For versions prior to bash-5.0, the compatibility level may be - set using the corresponding ccoommppaatt_N_N shopt option. For bash-4.3 and - later versions, the BBAASSHH__CCOOMMPPAATT variable is preferred, and it is re- + nisms. For versions prior to bash-5.0, the compatibility level may be + set using the corresponding ccoommppaatt_N_N shopt option. For bash-4.3 and + later versions, the BBAASSHH__CCOOMMPPAATT variable is preferred, and it is re- quired for bash-5.1 and later versions. ccoommppaatt3311 @@ -7050,173 +7077,173 @@ SSHHEELLLL CCOOMMPPAATTIIBBIILLIITTYY MMOODDEE ator (=~) has no special effect. ccoommppaatt3322 - +o The << and >> operators to the [[[[ command do not consider + +o The << and >> operators to the [[[[ command do not consider the current locale when comparing strings; they use ASCII ordering. ccoommppaatt4400 - +o The << and >> operators to the [[[[ command do not consider + +o The << and >> operators to the [[[[ command do not consider the current locale when comparing strings; they use ASCII ordering. BBaasshh versions prior to bash-4.1 use ASCII col- - lation and _s_t_r_c_m_p(3); bash-4.1 and later use the current + lation and _s_t_r_c_m_p(3); bash-4.1 and later use the current locale's collation sequence and _s_t_r_c_o_l_l(3). ccoommppaatt4411 - +o In _p_o_s_i_x mode, ttiimmee may be followed by options and still + +o In _p_o_s_i_x mode, ttiimmee may be followed by options and still be recognized as a reserved word (this is POSIX interpre- tation 267). +o In _p_o_s_i_x mode, the parser requires that an even number of - single quotes occur in the _w_o_r_d portion of a double- - quoted parameter expansion and treats them specially, so - that characters within the single quotes are considered + single quotes occur in the _w_o_r_d portion of a double- + quoted parameter expansion and treats them specially, so + that characters within the single quotes are considered quoted (this is POSIX interpretation 221). ccoommppaatt4422 +o The replacement string in double-quoted pattern substitu- - tion does not undergo quote removal, as it does in ver- + tion does not undergo quote removal, as it does in ver- sions after bash-4.2. - +o In posix mode, single quotes are considered special when - expanding the _w_o_r_d portion of a double-quoted parameter - expansion and can be used to quote a closing brace or - other special character (this is part of POSIX interpre- - tation 221); in later versions, single quotes are not + +o In posix mode, single quotes are considered special when + expanding the _w_o_r_d portion of a double-quoted parameter + expansion and can be used to quote a closing brace or + other special character (this is part of POSIX interpre- + tation 221); in later versions, single quotes are not special within double-quoted word expansions. ccoommppaatt4433 - +o Word expansion errors are considered non-fatal errors - that cause the current command to fail, even in posix - mode (the default behavior is to make them fatal errors + +o Word expansion errors are considered non-fatal errors + that cause the current command to fail, even in posix + mode (the default behavior is to make them fatal errors that cause the shell to exit). - +o When executing a shell function, the loop state + +o When executing a shell function, the loop state (while/until/etc.) is not reset, so bbrreeaakk or ccoonnttiinnuuee in that function will break or continue loops in the calling context. Bash-4.4 and later reset the loop state to pre- vent this. ccoommppaatt4444 - +o The shell sets up the values used by BBAASSHH__AARRGGVV and - BBAASSHH__AARRGGCC so they can expand to the shell's positional - parameters even if extended debugging mode is not en- + +o The shell sets up the values used by BBAASSHH__AARRGGVV and + BBAASSHH__AARRGGCC so they can expand to the shell's positional + parameters even if extended debugging mode is not en- abled. - +o A subshell inherits loops from its parent context, so - bbrreeaakk or ccoonnttiinnuuee will cause the subshell to exit. - Bash-5.0 and later reset the loop state to prevent the + +o A subshell inherits loops from its parent context, so + bbrreeaakk or ccoonnttiinnuuee will cause the subshell to exit. + Bash-5.0 and later reset the loop state to prevent the exit - +o Variable assignments preceding builtins like eexxppoorrtt and + +o Variable assignments preceding builtins like eexxppoorrtt and rreeaaddoonnllyy that set attributes continue to affect variables with the same name in the calling environment even if the shell is not in posix mode. ccoommppaatt5500 - +o Bash-5.1 changed the way $$RRAANNDDOOMM is generated to intro- - duce slightly more randomness. If the shell compatibil- + +o Bash-5.1 changed the way $$RRAANNDDOOMM is generated to intro- + duce slightly more randomness. If the shell compatibil- ity level is set to 50 or lower, it reverts to the method - from bash-5.0 and previous versions, so seeding the ran- - dom number generator by assigning a value to RRAANNDDOOMM will + from bash-5.0 and previous versions, so seeding the ran- + dom number generator by assigning a value to RRAANNDDOOMM will produce the same sequence as in bash-5.0. - +o If the command hash table is empty, bash versions prior - to bash-5.1 printed an informational message to that ef- - fect, even when producing output that can be reused as - input. Bash-5.1 suppresses that message when the --ll op- + +o If the command hash table is empty, bash versions prior + to bash-5.1 printed an informational message to that ef- + fect, even when producing output that can be reused as + input. Bash-5.1 suppresses that message when the --ll op- tion is supplied. ccoommppaatt5511 - +o The uunnsseett builtin treats attempts to unset array sub- - scripts @@ and ** differently depending on whether the ar- - ray is indexed or associative, and differently than in + +o The uunnsseett builtin treats attempts to unset array sub- + scripts @@ and ** differently depending on whether the ar- + ray is indexed or associative, and differently than in previous versions. +o Arithmetic commands ( ((((...)))) ) and the expressions in an arithmetic for statement can be expanded more than once. - +o Expressions used as arguments to arithmetic operators in - the [[[[ conditional command can be expanded more than + +o Expressions used as arguments to arithmetic operators in + the [[[[ conditional command can be expanded more than once. - +o The expressions in substring parameter brace expansion + +o The expressions in substring parameter brace expansion can be expanded more than once. +o The expressions in the $$((((...)))) word expansion can be ex- panded more than once. - +o Arithmetic expressions used as indexed array subscripts + +o Arithmetic expressions used as indexed array subscripts can be expanded more than once. - +o tteesstt --vv, when given an argument of AA[[@@]], where AA is an + +o tteesstt --vv, when given an argument of AA[[@@]], where AA is an existing associative array, will return true if the array - has any set elements. Bash-5.2 will look for and report + has any set elements. Bash-5.2 will look for and report on a key named @@. +o The ${_p_a_r_a_m_e_t_e_r[[::]]==_v_a_l_u_e} word expansion will return - _v_a_l_u_e, before any variable-specific transformations have + _v_a_l_u_e, before any variable-specific transformations have been performed (e.g., converting to lowercase). Bash-5.2 will return the final value assigned to the variable. - +o Parsing command substitutions will behave as if extended + +o Parsing command substitutions will behave as if extended globbing (see the description of the sshhoopptt builtin above) - is enabled, so that parsing a command substitution con- + is enabled, so that parsing a command substitution con- taining an extglob pattern (say, as part of a shell func- - tion) will not fail. This assumes the intent is to en- - able extglob before the command is executed and word ex- - pansions are performed. It will fail at word expansion - time if extglob hasn't been enabled by the time the com- + tion) will not fail. This assumes the intent is to en- + able extglob before the command is executed and word ex- + pansions are performed. It will fail at word expansion + time if extglob hasn't been enabled by the time the com- mand is executed. ccoommppaatt5522 - +o The tteesstt builtin uses its historical algorithm to parse - parenthesized subexpressions when given five or more ar- + +o The tteesstt builtin uses its historical algorithm to parse + parenthesized subexpressions when given five or more ar- guments. - +o If the --pp or --PP option is supplied to the bbiinndd builtin, + +o If the --pp or --PP option is supplied to the bbiinndd builtin, bbiinndd treats any arguments remaining after option process- - ing as bindable command names, and displays any key se- - quences bound to those commands, instead of treating the + ing as bindable command names, and displays any key se- + quences bound to those commands, instead of treating the arguments as key sequences to bind. RREESSTTRRIICCTTEEDD SSHHEELLLL If bbaasshh is started with the name rrbbaasshh, or the --rr option is supplied at - invocation, the shell becomes _r_e_s_t_r_i_c_t_e_d. A restricted shell is used - to set up an environment more controlled than the standard shell. It - behaves identically to bbaasshh with the exception that the following are + invocation, the shell becomes _r_e_s_t_r_i_c_t_e_d. A restricted shell is used + to set up an environment more controlled than the standard shell. It + behaves identically to bbaasshh with the exception that the following are disallowed or not performed: +o Changing directories with ccdd. - +o Setting or unsetting the values of SSHHEELLLL, PPAATTHH, HHIISSTTFFIILLEE, EENNVV, + +o Setting or unsetting the values of SSHHEELLLL, PPAATTHH, HHIISSTTFFIILLEE, EENNVV, or BBAASSHH__EENNVV. +o Specifying command names containing //. - +o Specifying a filename containing a // as an argument to the .. + +o Specifying a filename containing a // as an argument to the .. builtin command. - +o Using the --pp option to the .. builtin command to specify a + +o Using the --pp option to the .. builtin command to specify a search path. - +o Specifying a filename containing a slash as an argument to the + +o Specifying a filename containing a slash as an argument to the hhiissttoorryy builtin command. - +o Specifying a filename containing a slash as an argument to the + +o Specifying a filename containing a slash as an argument to the --pp option to the hhaasshh builtin command. - +o Importing function definitions from the shell environment at + +o Importing function definitions from the shell environment at startup. - +o Parsing the value of SSHHEELLLLOOPPTTSS from the shell environment at + +o Parsing the value of SSHHEELLLLOOPPTTSS from the shell environment at startup. - +o Redirecting output using the >, >|, <>, >&, &>, and >> redirec- + +o Redirecting output using the >, >|, <>, >&, &>, and >> redirec- tion operators. +o Using the eexxeecc builtin command to replace the shell with another command. - +o Adding or deleting builtin commands with the --ff and --dd options + +o Adding or deleting builtin commands with the --ff and --dd options to the eennaabbllee builtin command. - +o Using the eennaabbllee builtin command to enable disabled shell + +o Using the eennaabbllee builtin command to enable disabled shell builtins. +o Specifying the --pp option to the ccoommmmaanndd builtin command. - +o Turning off restricted mode with sseett ++rr or sshhoopptt --uu rree-- + +o Turning off restricted mode with sseett ++rr or sshhoopptt --uu rree-- ssttrriicctteedd__sshheellll. These restrictions are enforced after any startup files are read. When a command that is found to be a shell script is executed (see CCOOMM-- - MMAANNDD EEXXEECCUUTTIIOONN above), rrbbaasshh turns off any restrictions in the shell + MMAANNDD EEXXEECCUUTTIIOONN above), rrbbaasshh turns off any restrictions in the shell spawned to execute the script. SSEEEE AALLSSOO @@ -7241,10 +7268,10 @@ FFIILLEESS _~_/_._b_a_s_h_r_c The individual per-interactive-shell startup file _~_/_._b_a_s_h___l_o_g_o_u_t - The individual login shell cleanup file, executed when a login + The individual login shell cleanup file, executed when a login shell exits _~_/_._b_a_s_h___h_i_s_t_o_r_y - The default value of HHIISSTTFFIILLEE, the file in which bash saves the + The default value of HHIISSTTFFIILLEE, the file in which bash saves the command history _~_/_._i_n_p_u_t_r_c Individual _r_e_a_d_l_i_n_e initialization file @@ -7258,15 +7285,15 @@ AAUUTTHHOORRSS BBUUGG RREEPPOORRTTSS If you find a bug in bbaasshh, you should report it. But first, you should - make sure that it really is a bug, and that it appears in the latest - version of bbaasshh. The latest version is always available from + make sure that it really is a bug, and that it appears in the latest + version of bbaasshh. The latest version is always available from _f_t_p_:_/_/_f_t_p_._g_n_u_._o_r_g_/_p_u_b_/_g_n_u_/_b_a_s_h_/ and _h_t_t_p_:_/_/_g_i_t_._s_a_v_a_n_- _n_a_h_._g_n_u_._o_r_g_/_c_g_i_t_/_b_a_s_h_._g_i_t_/_s_n_a_p_s_h_o_t_/_b_a_s_h_-_m_a_s_t_e_r_._t_a_r_._g_z. - Once you have determined that a bug actually exists, use the _b_a_s_h_b_u_g - command to submit a bug report. If you have a fix, you are encouraged + Once you have determined that a bug actually exists, use the _b_a_s_h_b_u_g + command to submit a bug report. If you have a fix, you are encouraged to mail that as well! You may send suggestions and "philosophical" bug - reports to _b_u_g_-_b_a_s_h_@_g_n_u_._o_r_g or post them to the Usenet newsgroup + reports to _b_u_g_-_b_a_s_h_@_g_n_u_._o_r_g or post them to the Usenet newsgroup ggnnuu..bbaasshh..bbuugg. ALL bug reports should include: @@ -7277,7 +7304,7 @@ BBUUGG RREEPPOORRTTSS A description of the bug behaviour A short script or "recipe" which exercises the bug - _b_a_s_h_b_u_g inserts the first three items automatically into the template + _b_a_s_h_b_u_g inserts the first three items automatically into the template it provides for filing a bug report. Comments and bug reports concerning this manual page should be directed @@ -7294,13 +7321,13 @@ BBUUGGSS Shell builtin commands and functions are not stoppable/restartable. Compound commands and command sequences of the form "a ; b ; c" are not - handled gracefully when process suspension is attempted. When a - process is stopped, the shell immediately executes the next command in - the sequence. It suffices to place the sequence of commands between - parentheses to force it into a subshell, which may be stopped as a - unit, or to start the command in the background and immediately bring + handled gracefully when process suspension is attempted. When a + process is stopped, the shell immediately executes the next command in + the sequence. It suffices to place the sequence of commands between + parentheses to force it into a subshell, which may be stopped as a + unit, or to start the command in the background and immediately bring it into the foreground. Array variables may not (yet) be exported. -GNU Bash 5.3 2024 October 10 _B_A_S_H(1) +GNU Bash 5.3 2024 October 14 _B_A_S_H(1) diff --git a/doc/bash.1 b/doc/bash.1 index 526e05b8..a6ab2c80 100644 --- a/doc/bash.1 +++ b/doc/bash.1 @@ -5,14 +5,14 @@ .\" Case Western Reserve University .\" chet.ramey@case.edu .\" -.\" Last Change: Thu Oct 10 16:33:40 EDT 2024 +.\" Last Change: Mon Oct 14 11:41:21 EDT 2024 .\" .\" bash_builtins, strip all but Built-Ins section .\" avoid a warning about an undefined register .\" .if !rzY .nr zY 0 .if \n(zZ=1 .ig zZ .if \n(zY=1 .ig zY -.TH BASH 1 "2024 October 10" "GNU Bash 5.3" +.TH BASH 1 "2024 October 14" "GNU Bash 5.3" .\" .ie \n(.g \{\ .ds ' \(aq @@ -498,7 +498,7 @@ One of the following: .if n \fB| & ; ( ) < > space tab newline\fP .RE .TP -.B control operator +.B "control operator" A \fItoken\fP that performs a control function. It is one of the following symbols: .RS @@ -616,7 +616,7 @@ is executed in a \fIsubshell\fP, which is a separate process. See .SM -\fBCOMMAND EXECUTION ENVIRONMENT\fP +.B "COMMAND EXECUTION ENVIRONMENT" for a description of subshells and a subshell environment. If the \fBlastpipe\fP option is enabled using the \fBshopt\fP builtin (see the description of \fBshopt\fP below), @@ -698,7 +698,7 @@ newline in place of a semicolon. (\fIlist\fP) \fIlist\fP is executed in a subshell (see .SM -\fBCOMMAND EXECUTION ENVIRONMENT\fP +.B "COMMAND EXECUTION ENVIRONMENT" below for a description of a subshell environment). Variable assignments and builtin commands that affect the shell's environment do not remain in effect @@ -932,7 +932,7 @@ it against each \fIpattern\fP in turn, proceeding from first to last, using the matching rules described under -.B Pattern Matching +.B "Pattern Matching" below. A pattern list is a set of one or more patterns separated by \|, and the ) operator terminates the pattern list. @@ -1140,7 +1140,7 @@ represent itself. When the command history expansion facilities are being used (see .SM -.B HISTORY EXPANSION +.B "HISTORY EXPANSION" below), the \fIhistory expansion\fP character, usually \fB!\fP, must be quoted to prevent history expansion. @@ -2710,7 +2710,7 @@ The search path for commands. It is a colon-separated list of directories in which the shell looks for commands (see .SM -.B COMMAND EXECUTION +.B "COMMAND EXECUTION" below). A zero-length (null) directory name in the value of .SM @@ -2781,7 +2781,7 @@ The value of this parameter is used as the prompt for the .B select command (see .SM -.B SHELL GRAMMAR +.B "SHELL GRAMMAR" above). .TP .B PS4 @@ -2877,38 +2877,41 @@ If set, \fBbash\fP uses its value as the name of a directory in which .B auto_resume This variable controls how the shell interacts with the user and job control. -If this variable is set, single-word simple -commands without redirections are treated as candidates for resumption +If this variable is set, simple commands +consisting of only a single word, +without redirections, are treated as candidates for resumption of an existing stopped job. There is no ambiguity allowed; if there is more than one job -beginning with the string typed, the most recently accessed job -is selected. +beginning with or containing +the word, this selects the most recently accessed job. The .I name of a stopped job, in this context, is the command line used to -start it. +start it, as displayed by \fBjobs\fP. If set to the value .IR exact , -the string supplied must match the name of a stopped job exactly; +the word must match the name of a stopped job exactly; if set to .IR substring , -the string supplied needs to match a substring of the name of a -stopped job. The +the word needs to match a substring of the name of a stopped job. +The .I substring value provides functionality analogous to the .B %? job identifier (see .SM -.B JOB CONTROL -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 \fB%\fP\fIstring\fP job identifier. +.B "JOB CONTROL" +below). +If set to any other value (e.g., +.IR prefix ), +the word must be a prefix of a stopped job's name; +this provides functionality analogous to the \fB%\fP\fIstring\fP job identifier. .TP .B histchars The two or three characters which control history expansion and tokenization (see .SM -.B HISTORY EXPANSION +.B "HISTORY EXPANSION" below). The first character is the \fIhistory expansion\fP character, the character which signals the start of a history @@ -3043,7 +3046,7 @@ part of the expansion of the original word. This is analogous to the expansion of the special parameters \fB*\fP and \fB@\fP (see -.B Special Parameters +.B "Special Parameters" above). .PP ${#\fIname\fP[\fIsubscript\fP]} expands to the length of @@ -3326,8 +3329,8 @@ number without a leading .Q + or .Q \- , -.Q + -is assumed. +tilde expansion assumes +.Q + . .PP The results of tilde expansion are treated as if they were quoted, so the replacement is not subject to word splitting and pathname expansion. @@ -3447,10 +3450,11 @@ ${\fIparameter\fP\fB:?\fP\fIword\fP} \fBDisplay Error if Null or Unset\fP. If .I parameter -is null or unset, the expansion of \fIword\fP (or a message to that effect +is null or unset, the shell writes +the expansion of \fIword\fP (or a message to that effect if .I word -is not present) is written to the standard error and the shell, if it +is not present) to the standard error and, if it is not interactive, exits with a non-zero status. An interactive shell does not exit, but does not execute the command associated with the expansion. @@ -3583,7 +3587,7 @@ is expanded to produce a pattern just as in pathname expansion, and matched against the expanded value of .I parameter using the rules described under -.B Pattern Matching +.B "Pattern Matching" below. If the pattern matches the beginning of the value of @@ -3622,7 +3626,7 @@ The \fIword\fP is expanded to produce a pattern just as in pathname expansion, and matched against the expanded value of .I parameter using the rules described under -.B Pattern Matching +.B "Pattern Matching" below. If the pattern matches a trailing portion of the expanded value of .IR parameter , @@ -3664,7 +3668,7 @@ The \fIpattern\fP is expanded to produce a pattern just as in pathname expansion and matched against the expanded value of \fIparameter\fP using the rules described under -.B Pattern Matching +.B "Pattern Matching" below. The longest match of \fIpattern\fP in the expanded value is replaced with \fIstring\fP. @@ -4877,9 +4881,13 @@ before executing any of the commands on that line or the compound command. 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 shell reads the next line of input. +command does not take effect until the shell reads the next line of input, +and an alias definition in a compound command does not take +effect until the shell parses and executes the entire compound command. The commands following the alias definition -on that line are not affected by the new alias. +on that line, +or in the rest of a compound command, +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 @@ -5495,7 +5503,7 @@ 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 the command arguments, if any. -.SH COMMAND EXECUTION ENVIRONMENT +.SH "COMMAND EXECUTION ENVIRONMENT" The shell has an \fIexecution environment\fP, which consists of the following: .IP \(bu @@ -5846,17 +5854,22 @@ complete, for compatibility. .I Job control refers to the ability to selectively stop (\fIsuspend\fP) the execution of processes and continue (\fIresume\fP) -their execution at a later point. A user typically employs +their execution at a later point. +A user typically employs this facility via an interactive interface supplied jointly by the operating system kernel's terminal driver and .BR bash . .PP The shell associates a .I job -with each pipeline. It keeps a table of currently executing -jobs, which may be listed with the +with each pipeline. +It keeps a table of currently executing +jobs, which the .B jobs -command. When +command will display. +Each job has a \fIjob number\fP, which \fBjobs\fP displays between brackets. +Job numbers start at 1. +When .B bash starts a job asynchronously (in the .IR background ), @@ -5874,15 +5887,20 @@ uses the .I job abstraction as the basis for job control. .PP -To facilitate the implementation of the user interface to job -control, the operating system maintains the notion of a \fIcurrent terminal -process group ID\fP. Members of this process group (processes whose +To facilitate the implementation of the user interface to job control, +each process has a \fIprocess group ID\fP, and +the operating system maintains the notion of a \fIcurrent terminal +process group ID\fP. +Processes that have the same process group ID are said to be part of +the same \fIprocess group\fP. +Members of the \fIforeground\fP process group (processes whose process group ID is equal to the current terminal process group ID) receive keyboard-generated signals such as .SM .BR SIGINT . -These processes are said to be in the -.IR foreground . +Processes in the foreground process group are said to be +.I foreground +processes. .I Background processes are those whose process group ID differs from the terminal's; such processes are immune to keyboard-generated signals. @@ -5894,7 +5912,7 @@ Background processes which attempt to read from (write to when .Q tostop is in effect) the terminal are sent a .SM -.B SIGTTIN (SIGTTOU) +.B "SIGTTIN (SIGTTOU)" signal by the kernel's terminal driver, which, unless caught, suspends the process. .PP @@ -5909,31 +5927,38 @@ Typing the character (typically .BR \*^Z , Control-Z) while a process is running -causes that process to be stopped and returns control to +stops that process and returns control to .BR bash . Typing the .I "delayed suspend" character (typically .BR \*^Y , -Control-Y) causes the process to be stopped when it -attempts to read input from the terminal, and control to -be returned to +Control-Y) causes the process stop when it +attempts to read input from the terminal, and returns control to .BR bash . -The user may then manipulate the state of this job, using the +The user then manipulates the state of this job, using the .B bg command to continue it in the background, the .B fg -command to continue it in the foreground, or -the +command to continue it in the foreground, or the .B kill -command to kill it. A \fB\*^Z\fP takes effect immediately, -and has the additional side effect of causing pending output -and typeahead to be discarded. +command to kill it. +The suspend character takes effect immediately, +and has the additional side effect of discarding any pending output +and typeahead. +To force a background process to stop, or stop a process +that's not associated with the current terminal session, +send it the +.SM +.B SIGSTOP +signal using \fBkill\fP. .PP There are a number of ways to refer to a job in the shell. -The character +The .B % -introduces a job specification (\fIjobspec\fP). Job number +character introduces a job specification (jobspec). +.PP +Job number .I n may be referred to as .BR %n . @@ -5941,42 +5966,45 @@ 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 example, .B %ce -refers to a stopped -job whose command name begins with +refers to a job whose command name begins with .BR ce . -If a prefix matches more than one job, -.B bash -reports an error. Using +Using .BR %?ce , on the other hand, refers to any job containing the string .B ce -in its command line. If the substring matches more than one job, +in its command line. +If the prefix or substring matches more than one job, .B bash -reports an error. The symbols +reports an error. +.PP +The symbols .B %% and .B %+ refer to the shell's notion of the -.IR "current job" , -which is the last job stopped while it was in -the foreground or started in the background. -The -.I "previous job" -may be referenced using -.BR %\- . +.IR "current job" . +A single % (with no accompanying job specification) also refers to the +current job. +.B %\- +refers to the +.IR "previous job" . +When a job starts in the background, +a job stops while in the foreground, +or a job is resumed in the background, +it becomes the current job. +The job that was the current job becomes the previous job. +When the current job terminates, the previous job becomes the +current job. If there is only a single job, \fB%+\fP and \fB%\-\fP can both be used to refer to that job. In output pertaining to jobs (e.g., the output of the .B jobs -command), the current job is always flagged with a +command), the current job is always marked with a .BR + , and the previous job with a .BR \- . -A single % (with no accompanying job specification) also refers to the -current job. .PP -Simply naming a job can be used to bring it into the -foreground: +Simply naming a job can be used to bring it into the foreground: .B %1 is a synonym for .Q "fg %1" , @@ -5989,12 +6017,13 @@ resumes job 1 in the background, equivalent to The shell learns immediately whenever a job changes state. Normally, .B bash -waits until it is about to print a prompt before reporting +waits until it is about to print a prompt before +notifying the user about changes in a job's status so as to not interrupt any other output, though it will notify of changes in a job's status after a foreground command in -a list completes, before executing the next command. +a list completes, before executing the next command in the list. If the .B \-b option to the @@ -6003,27 +6032,36 @@ builtin command is enabled, .B bash reports such changes immediately. -Any trap on +\fBBash\fP executes any trap on .SM .B SIGCHLD -is executed for each child that exits. +for each child that terminates. +.PP +When a job terminates and \fBbash\fP notifies the user about it, +\fBbash\fP removes the job from the table. +It will not appear in \fBjobs\fP output, but \fBwait\fP will +report its exit status, as long as it's supplied the process ID +associated with the job as an argument. +When the table is empty, job numbers start over at 1. .PP -If an attempt to exit +If a user attempts to exit .B bash -is made while jobs are stopped (or, if the \fBcheckjobs\fP shell option has +while jobs are stopped (or, if the \fBcheckjobs\fP shell option has been enabled using the \fBshopt\fP builtin, running), the shell prints a warning message, and, if the \fBcheckjobs\fP option is enabled, lists the jobs and their statuses. The .B jobs command may then be used to inspect their status. -If a second attempt to exit is made without an intervening command, -the shell does not print another warning, and any stopped -jobs are terminated. +If the user immediately attempts to exit again, +without an intervening command, +\fBbash\fP does not print another warning, and +terminates any stopped jobs. .PP When the shell is waiting for a job or process using the \fBwait\fP builtin, and job control is enabled, \fBwait\fP will return when the -job changes state. The \fB\-f\fP option causes \fBwait\fP to wait +job changes state. +The \fB\-f\fP option causes \fBwait\fP to wait until the job or process terminates before returning. .SH PROMPTING When executing interactively, @@ -6323,7 +6361,7 @@ Key bindings may contain the following symbolic character names: .IR NEWLINE , .IR RET , .IR RETURN , -.IR RUBOUT , +.IR RUBOUT (a destructive backspace), .IR SPACE , .IR SPC , and @@ -7364,6 +7402,7 @@ Delete the character at point. If this function is bound to the same character as the tty \fBEOF\fP character, as \fBC\-d\fP commonly is, see above for the effects. +This may also be bound to the Delete key on some keyboards. .TP .B backward\-delete\-char (Rubout) Delete the character behind the cursor. @@ -7659,7 +7698,7 @@ completion matches. .B complete\-into\-braces (M\-{) Perform filename completion and insert the list of possible completions enclosed within braces so the list is available to the shell (see -.B Brace Expansion +.B "Brace Expansion" above). .PD .SS "Keyboard Macros" @@ -8529,21 +8568,21 @@ and performing any specified redirections. The return status is zero. .TP -\fB\&.\| \fP [\fB\-p\fP \fIpath\fP] \fIfilename\fP [\fIarguments\fP] +\fB\&.\&\fP [\fB\-p\fP \fIpath\fP] \fIfilename\fP [\fIarguments\fP] .PD 0 .TP \fBsource\fP [\fB\-p\fP \fIpath\fP] \fIfilename\fP [\fIarguments\fP] .PD -The \fB\&.\| \fP command (\fBsource\fP) reads and execute commands from +The \fB\&.\&\fP command (\fBsource\fP) reads and execute commands from .I filename in the current shell environment and returns the exit status of the last command executed from .IR filename . .IP -If \fIfilename\fP does not contain a slash, \fB\&.\| \fP searchs for it. -If the \fB\-p\fP option is supplied, \fB\&.\| \fP treats \fIpath\fP +If \fIfilename\fP does not contain a slash, \fB\&.\&\fP searches for it. +If the \fB\-p\fP option is supplied, \fB\&.\&\fP treats \fIpath\fP as a colon-separated list of directories in which to find \fIfilename\fP; -otherwise, \fB\&.\| \fP uses the entries in +otherwise, \fB\&.\&\fP uses the entries in .SM .B PATH to find the directory containing @@ -8558,7 +8597,7 @@ If the .B sourcepath option to the .B shopt -builtin command is turned off, \fB\&.\| \fP does not search +builtin command is turned off, \fB\&.\&\fP does not search .SM .BR PATH . .IP @@ -8599,7 +8638,7 @@ had been started with .BR & . If .I jobspec -is not present, the shell's notion of the \fIcurrent job\fP is used. +is not present, the shell uses its notion of the \fIcurrent job\fP. .B bg .I jobspec returns 0 unless run when job control is disabled or, when run with @@ -9483,19 +9522,18 @@ Without options, remove each .I id from the table of active jobs. Each \fIid\fP may be a job specification \fIjobspec\fP -or a process ID -\fIpid\fP; if \fIid\fP is a \fIpid\fP, +or a process ID \fIpid\fP; +if \fIid\fP is a \fIpid\fP, \fBdisown\fP uses the job containing \fIpid\fP as \fIjobspec\fP. -If -.I id -is not present, and neither the \fB\-a\fP nor the \fB\-r\fP option -is supplied, \fBdisown\fP removes the \fIcurrent job\fP. -If the \fB\-h\fP option is supplied, the job corresponding to each +.IP +If the \fB\-h\fP option is supplied, +\fBdisown\fP does not remove the jobs corresponding to each .I id -is not removed from the table, but is marked so that +from the jobs table, +but rather marks them so the shell does not send .SM .B SIGHUP -is not sent to the job if the shell receives a +to the job if the shell receives a .SM .BR SIGHUP . .IP @@ -9507,7 +9545,11 @@ option means to remove or mark all jobs; the .B \-r option without an .I id -argument restricts operation to running jobs. +argument removes or marks running jobs. +If no +.I id +is supplied, and neither the \fB\-a\fP nor the \fB\-r\fP option +is supplied, \fBdisown\fP removes or marks the current job. .IP The return value is 0 unless an .I id @@ -9853,7 +9895,7 @@ Resume in the foreground, and make it the current job. If .I jobspec -is not present, use the shell's notion of the \fIcurrent job\fP. +is not present, \fBfg\fP uses the shell's notion of the \fIcurrent job\fP. 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 @@ -10216,7 +10258,7 @@ passing it returning its exit status. .TP \fBkill\fP [\fB\-s\fP \fIsigspec\fP | \fB\-n\fP \fIsignum\fP | \fB\-\fP\fIsigspec\fP] \ -[\fIpid\fP | \fIjobspec\fP] .\|.\|. +\fIid\fP [ .\|.\|. ] .PD 0 .TP \fBkill\fP \fB\-l\fP|\fB\-L\fP [\fIsigspec\fP | \fIexit_status\fP] @@ -10225,10 +10267,12 @@ Send the signal specified by .I sigspec or .I signum -to the processes named by -.I pid -or -.IR jobspec . +to the processes named by each +.IR id . +Each +.I id +may be a job specification \fIjobspec\fP +or a process ID \fIpid\fP. .I sigspec is either a case-insensitive signal name such as .SM @@ -10247,9 +10291,9 @@ sends .SM .BR SIGTERM . .IP -An argument of +The .B \-l -lists the signal names. +option lists the signal names. If any arguments are supplied when .B \-l is given, @@ -10259,7 +10303,11 @@ and the return status is 0. The \fIexit_status\fP argument to .B \-l is a number specifying either a signal number or the exit status of -a process terminated by a signal. +a process terminated by a signal; +if it is supplied, \fBkill\fP prints the name of the signal that caused +the process to terminate. +\fBkill\fP assumes that process exit statuses are greater than 128; +anything less than that is a signal number. The .B \-L option is equivalent to \fB\-l\fP. @@ -10891,7 +10939,7 @@ a \fIlist\fP, or a \fIcompound command\fP (see .SM -.B SHELL GRAMMAR +.B "SHELL GRAMMAR" .ie \n(zZ=1 in \fIbash\fP(1)), .el above), exits with a non-zero status. @@ -10957,7 +11005,7 @@ Job control is enabled. This option is on by default for interactive shells on systems that support it (see .SM -.B JOB CONTROL +.B "JOB CONTROL" .ie \n(zZ=1 in \fIbash\fP(1)). .el above). All processes run in a separate process group. @@ -11023,7 +11071,7 @@ The effect is as if the shell command .QN "IGNOREEOF=10" had been executed (see -.B Shell Variables +.B "Shell Variables"< .ie \n(zZ=1 in \fIbash\fP(1)). .el above). .TP 8 @@ -11179,7 +11227,7 @@ or associated word list, to the standard error. .TP 8 .B \-B The shell performs brace expansion (see -.B Brace Expansion +.B "Brace Expansion" .ie \n(zZ=1 in \fIbash\fP(1)). .el above). This is on by default. @@ -11590,7 +11638,7 @@ This option is enabled by default. .B globasciiranges If set, range expressions used in pattern matching bracket expressions (see .SM -.B Pattern Matching +.B "Pattern Matching" .ie \n(zZ=1 in \fIbash\fP(1)) .el above) behave as if in the traditional C locale when performing comparisons. @@ -11730,7 +11778,7 @@ If set, .B bash matches filenames in a case\-insensitive fashion when performing pathname expansion (see -.B Pathname Expansion +.B "Pathname Expansion" .ie \n(zZ=1 in \fIbash\fP(1)). .el above). .TP 8 @@ -11753,7 +11801,7 @@ If the string is not translated, this has no effect. .B nullglob If set, pathname expansion patterns which match no files (see -.B Pathname Expansion +.B "Pathname Expansion" .ie \n(zZ=1 in \fIbash\fP(1)) .el above) expand to nothing and are removed, rather than expanding to themselves. @@ -12061,7 +12109,7 @@ is executed before every \fIsimple command\fP, \fIfor\fP command, arithmetic \fIfor\fP command, and before the first command executes in a shell function (see .SM -.B SHELL GRAMMAR +.B "SHELL GRAMMAR" .ie \n(zZ=1 in \fIbash\fP(1)). .el above). Refer to the description of the \fBextdebug\fP shell option @@ -12454,8 +12502,9 @@ is readonly or may not be unset. \fBwait\fP [\fB\-fn\fP] [\fP\-p\fP \fIvarname\fP] [\fIid\fP .\|.\|.] Wait for each specified child process \fIid\fP and return the termination status of the last \fIid\fP. -Each \fIid\fP may be a process ID or a job specification; -if a job spec is supplied, \fBwait\fP waits for all processes in the job. +Each \fIid\fP may be a process ID \fIpid\fP +or a job specification \fIjobspec\fP; +if a jobspec is supplied, \fBwait\fP waits for all processes in the job. .IP If no options or \fIid\fPs are supplied, \fBwait\fP waits for all running background jobs and @@ -12464,20 +12513,21 @@ if its process id is the same as \fB$!\fP, and the return status is zero. .IP If the \fB\-n\fP option is supplied, \fBwait\fP waits for any one of -the given \fIid\fPs or, if no \fIid\fPs are supplied, any job -or process substitution, +the given \fIid\fPs or, +if no \fIid\fPs are supplied, any job or process substitution, to complete and returns its exit status. If none of the supplied \fIid\fPs is a child of the shell, or if no \fIid\fPs are supplied and the shell has no unwaited-for children, the exit status is 127. .IP -If the \fB\-p\fP option is supplied, the process or job identifier -of the job for which the exit status is returned is assigned to the +If the \fB\-p\fP option is supplied, \fBwait\fP assigns +the process or job identifier of the job +for which the exit status is returned to the variable \fIvarname\fP named by the option argument. The variable, which cannot be readonly, will be unset initially, before any assignment. -This is useful only when the \fB\-n\fP option is supplied. +This is useful only when used with the \fB\-n\fP option. .IP Supplying the \fB\-f\fP option, when job control is enabled, forces \fBwait\fP to wait for each \fIid\fP to terminate before diff --git a/doc/bash.html b/doc/bash.html index bd99b64f..19b315d2 100644 --- a/doc/bash.html +++ b/doc/bash.html @@ -3,7 +3,7 @@ -
BASH(1)2024 October 10BASH(1) +BASH(1)2024 October 14BASH(1)

Index @@ -802,7 +802,9 @@ where pipes are created, is executed in a subshell, which is a separate process. See -COMMAND EXECUTION ENVIRONMENT +COMMAND EXECUTION ENVIRONMENT + + for a description of subshells and a subshell environment. If the lastpipe option is enabled using the shopt builtin (see the description of shopt below), @@ -915,7 +917,9 @@ newline in place of a semicolon.
(list)
list is executed in a subshell (see -COMMAND EXECUTION ENVIRONMENT +COMMAND EXECUTION ENVIRONMENT + + below for a description of a subshell environment). Variable assignments and builtin commands that affect the shell's environment do not remain in effect @@ -3607,26 +3611,27 @@ If set, bash uses its value as the name of a directory in which
This variable controls how the shell interacts with the user and job control. -If this variable is set, single-word simple -commands without redirections are treated as candidates for resumption +If this variable is set, simple commands +consisting of only a single word, +without redirections, are treated as candidates for resumption of an existing stopped job. There is no ambiguity allowed; if there is more than one job -beginning with the string typed, the most recently accessed job -is selected. +beginning with or containing +the word, this selects the most recently accessed job. The name of a stopped job, in this context, is the command line used to -start it. +start it, as displayed by jobs. If set to the value exact, -the string supplied must match the name of a stopped job exactly; +the word must match the name of a stopped job exactly; if set to substring, -the string supplied needs to match a substring of the name of a -stopped job. The +the word needs to match a substring of the name of a stopped job. +The substring value provides functionality analogous to the @@ -3636,9 +3641,12 @@ job identifier (see JOB CONTROL -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 %string job identifier. +below). +If set to any other value (e.g., +prefix), + +the word must be a prefix of a stopped job's name; +this provides functionality analogous to the %string job identifier.
histchars
@@ -4165,8 +4173,8 @@ number without a leading or +tilde expansion assumes -is assumed.

The results of tilde expansion are treated as if they were quoted, so @@ -4314,11 +4322,12 @@ not be assigned in this way. If parameter -is null or unset, the expansion of word (or a message to that effect +is null or unset, the shell writes +the expansion of word (or a message to that effect if word -is not present) is written to the standard error and the shell, if it +is not present) to the standard error and, if it is not interactive, exits with a non-zero status. An interactive shell does not exit, but does not execute the command associated with the expansion. @@ -6124,9 +6133,13 @@ before executing any of the commands on that line or the compound command. 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 shell reads the next line of input. +command does not take effect until the shell reads the next line of input, +and an alias definition in a compound command does not take +effect until the shell parses and executes the entire compound command. The commands following the alias definition -on that line are not affected by the new alias. +on that line, +or in the rest of a compound command, +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 @@ -7328,7 +7341,8 @@ complete, for compatibility. refers to the ability to selectively stop (suspend) the execution of processes and continue (resume) -their execution at a later point. A user typically employs +their execution at a later point. +A user typically employs this facility via an interactive interface supplied jointly by the operating system kernel's terminal driver and bash. @@ -7338,11 +7352,15 @@ by the operating system kernel's terminal driver and The shell associates a job -with each pipeline. It keeps a table of currently executing -jobs, which may be listed with the +with each pipeline. +It keeps a table of currently executing +jobs, which the jobs -command. When +command will display. +Each job has a job number, which jobs displays between brackets. +Job numbers start at 1. +When bash starts a job asynchronously (in the @@ -7368,17 +7386,22 @@ uses the abstraction as the basis for job control.

-To facilitate the implementation of the user interface to job -control, the operating system maintains the notion of a current terminal -process group ID. Members of this process group (processes whose +To facilitate the implementation of the user interface to job control, +each process has a process group ID, and +the operating system maintains the notion of a current terminal +process group ID. +Processes that have the same process group ID are said to be part of +the same process group. +Members of the foreground process group (processes whose process group ID is equal to the current terminal process group ID) receive keyboard-generated signals such as SIGINT. -These processes are said to be in the -foreground. +Processes in the foreground process group are said to be +foreground +processes. Background processes are those whose process group ID differs from the terminal's; @@ -7412,7 +7435,7 @@ character (typically ^Z, Control-Z) while a process is running -causes that process to be stopped and returns control to +stops that process and returns control to bash. Typing the @@ -7421,31 +7444,40 @@ Typing the character (typically ^Y, -Control-Y) causes the process to be stopped when it -attempts to read input from the terminal, and control to -be returned to +Control-Y) causes the process stop when it +attempts to read input from the terminal, and returns control to bash. -The user may then manipulate the state of this job, using the +The user then manipulates the state of this job, using the bg command to continue it in the background, the fg -command to continue it in the foreground, or -the +command to continue it in the foreground, or the kill -command to kill it. A ^Z takes effect immediately, -and has the additional side effect of causing pending output -and typeahead to be discarded. +command to kill it. +The suspend character takes effect immediately, +and has the additional side effect of discarding any pending output +and typeahead. +To force a background process to stop, or stop a process +that's not associated with the current terminal session, +send it the +SIGSTOP + + +signal using kill.

There are a number of ways to refer to a job in the shell. -The character +The % -introduces a job specification (jobspec). Job number +character introduces a job specification (jobspec). +

+ +Job number n may be referred to as @@ -7456,56 +7488,59 @@ start it, or using a substring that appears in its command line. For example, %ce -refers to a stopped -job whose command name begins with +refers to a job whose command name begins with ce. -If a prefix matches more than one job, -bash - -reports an error. Using +Using %?ce, on the other hand, refers to any job containing the string ce -in its command line. If the substring matches more than one job, +in its command line. +If the prefix or substring matches more than one job, bash -reports an error. The symbols +reports an error. +

+ +The symbols %% and %+ refer to the shell's notion of the -current job, +current job. -which is the last job stopped while it was in -the foreground or started in the background. -The -previous job +A single % (with no accompanying job specification) also refers to the +current job. +%- -may be referenced using -%-. +refers to the +previous job. +When a job starts in the background, +a job stops while in the foreground, +or a job is resumed in the background, +it becomes the current job. +The job that was the current job becomes the previous job. +When the current job terminates, the previous job becomes the +current job. If there is only a single job, %+ and %- can both be used to refer to that job. In output pertaining to jobs (e.g., the output of the jobs -command), the current job is always flagged with a +command), the current job is always marked 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: +Simply naming a job can be used to bring it into the foreground: %1 is a synonym for @@ -7521,12 +7556,13 @@ The shell learns immediately whenever a job changes state. Normally, bash -waits until it is about to print a prompt before reporting +waits until it is about to print a prompt before +notifying the user about changes in a job's status so as to not interrupt any other output, though it will notify of changes in a job's status after a foreground command in -a list completes, before executing the next command. +a list completes, before executing the next command in the list. If the -b @@ -7538,17 +7574,25 @@ is enabled, bash reports such changes immediately. -Any trap on +Bash executes any trap on SIGCHLD -is executed for each child that exits. +for each child that terminates.

-If an attempt to exit +When a job terminates and bash notifies the user about it, +bash removes the job from the table. +It will not appear in jobs output, but wait will +report its exit status, as long as it's supplied the process ID +associated with the job as an argument. +When the table is empty, job numbers start over at 1. +

+ +If a user attempts to exit bash -is made while jobs are stopped (or, if the checkjobs shell option has +while jobs are stopped (or, if the checkjobs shell option has been enabled using the shopt builtin, running), the shell prints a warning message, and, if the checkjobs option is enabled, lists the jobs and their statuses. @@ -7556,14 +7600,16 @@ The jobs command may then be used to inspect their status. -If a second attempt to exit is made without an intervening command, -the shell does not print another warning, and any stopped -jobs are terminated. +If the user immediately attempts to exit again, +without an intervening command, +bash does not print another warning, and +terminates any stopped jobs.

When the shell is waiting for a job or process using the wait builtin, and job control is enabled, wait will return when the -job changes state. The -f option causes wait to wait +job changes state. +The -f option causes wait to wait until the job or process terminates before returning.  

PROMPTING

@@ -7964,7 +8010,7 @@ Key bindings may contain the following symbolic character names: RETURN, -RUBOUT, +RUBOUT(adestructivebackspace), SPACE, @@ -9270,6 +9316,7 @@ Delete the character at point. If this function is bound to the same character as the tty EOF character, as C-d commonly is, see above for the effects. +This may also be bound to the Delete key on some keyboards.
backward-delete-char (Rubout)
@@ -10733,11 +10780,11 @@ No effect; the command does nothing beyond expanding and performing any specified redirections. The return status is zero. -
. [-p path] filename [arguments]
+
. [-p path] filename [arguments]
source [-p path] filename [arguments]
-The . command (source) reads and execute commands from +The . command (source) reads and execute commands from filename in the current shell environment and returns the exit status of the @@ -10745,10 +10792,10 @@ last command executed from filename.
-If filename does not contain a slash, . searchs for it. -If the -p option is supplied, . treats path +If filename does not contain a slash, . searches for it. +If the -p option is supplied, . treats path as a colon-separated list of directories in which to find filename; -otherwise, . uses the entries in +otherwise, . uses the entries in PATH @@ -10768,7 +10815,7 @@ If the option to the shopt -builtin command is turned off, . does not search +builtin command is turned off, . does not search PATH. @@ -10812,7 +10859,7 @@ had been started with If jobspec -is not present, the shell's notion of the current job is used. +is not present, the shell uses its notion of the current job. bg jobspec @@ -11854,22 +11901,20 @@ Without options, remove each from the table of active jobs. Each id may be a job specification jobspec -or a process ID -pid; if id is a pid, +or a process ID pid; +if id is a pid, disown uses the job containing pid as jobspec. -If -id - -is not present, and neither the -a nor the -r option -is supplied, disown removes the current job. -If the -h option is supplied, the job corresponding to each +
+If the -h option is supplied, +disown does not remove the jobs corresponding to each id -is not removed from the table, but is marked so that +from the jobs table, +but rather marks them so the shell does not send SIGHUP -is not sent to the job if the shell receives a +to the job if the shell receives a SIGHUP. @@ -11886,7 +11931,12 @@ option means to remove or mark all jobs; the option without an id -argument restricts operation to running jobs. +argument removes or marks running jobs. +If no +id + +is supplied, and neither the -a nor the -r option +is supplied, disown removes or marks the current job.
The return value is 0 unless an id @@ -12325,7 +12375,7 @@ in the foreground, and make it the current job. If jobspec -is not present, use the shell's notion of the current job. +is not present, fg uses the shell's notion of the current job. 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 @@ -12759,7 +12809,7 @@ passing it args, returning its exit status. -
kill [-s sigspec | -n signum | -sigspec] [pid | jobspec] ...
+
kill [-s sigspec | -n signum | -sigspec] id [ ... ]
kill -l|-L [sigspec | exit_status]
@@ -12769,12 +12819,14 @@ Send the signal specified by or signum -to the processes named by -pid +to the processes named by each +id. -or -jobspec. +Each +id +may be a job specification jobspec +or a process ID pid. sigspec is either a case-insensitive signal name such as @@ -12800,10 +12852,10 @@ sends
-An argument of +The -l -lists the signal names. +option lists the signal names. If any arguments are supplied when -l @@ -12816,7 +12868,11 @@ The exit_status argument to -l is a number specifying either a signal number or the exit status of -a process terminated by a signal. +a process terminated by a signal; +if it is supplied, kill prints the name of the signal that caused +the process to terminate. +kill assumes that process exit statuses are greater than 128; +anything less than that is a signal number. The -L @@ -13719,7 +13775,7 @@ The effect is as if the shell command had been executed (see -Shell Variables +Shell Variables< above). @@ -15522,8 +15578,9 @@ is readonly or may not be unset.
wait [-fn] [-p varname] [id ...]
Wait for each specified child process id and return the termination status of the last id. -Each id may be a process ID or a job specification; -if a job spec is supplied, wait waits for all processes in the job. +Each id may be a process ID pid +or a job specification jobspec; +if a jobspec is supplied, wait waits for all processes in the job.
If no options or ids are supplied, wait waits for all running background jobs and @@ -15532,20 +15589,21 @@ if its process id is the same as $!, and the return status is zero.
If the -n option is supplied, wait waits for any one of -the given ids or, if no ids are supplied, any job -or process substitution, +the given ids or, +if no ids are supplied, any job or process substitution, to complete and returns its exit status. If none of the supplied ids is a child of the shell, or if no ids are supplied and the shell has no unwaited-for children, the exit status is 127.
-If the -p option is supplied, the process or job identifier -of the job for which the exit status is returned is assigned to the +If the -p option is supplied, wait assigns +the process or job identifier of the job +for which the exit status is returned to the variable varname named by the option argument. The variable, which cannot be readonly, will be unset initially, before any assignment. -This is useful only when the -n option is supplied. +This is useful only when used with the -n option.
Supplying the -f option, when job control is enabled, forces wait to wait for each id to terminate before @@ -16165,7 +16223,7 @@ Array variables may not (yet) be exported.
-
GNU Bash 5.32024 October 10BASH(1) +GNU Bash 5.32024 October 14BASH(1)

@@ -16274,7 +16332,7 @@ Array variables may not (yet) be exported.
BUGS

-This document was created by man2html from /usr/local/src/bash/bash-20241007/doc/bash.1.
-Time: 10 October 2024 17:47:42 EDT +This document was created by man2html from /usr/local/src/bash/bash-20241012/doc/bash.1.
+Time: 14 October 2024 17:00:24 EDT diff --git a/doc/bash.info b/doc/bash.info index 41304858..980573ce 100644 --- a/doc/bash.info +++ b/doc/bash.info @@ -1,9 +1,9 @@ This is bash.info, produced by makeinfo version 7.1 from bashref.texi. This text is a brief description of the features that are present in the -Bash shell (version 5.3, 10 October 2024). +Bash shell (version 5.3, 14 October 2024). - This is Edition 5.3, last updated 10 October 2024, of ‘The GNU Bash + This is Edition 5.3, last updated 14 October 2024, of ‘The GNU Bash Reference Manual’, for ‘Bash’, Version 5.3. Copyright © 1988-2024 Free Software Foundation, Inc. @@ -26,10 +26,10 @@ Bash Features ************* This text is a brief description of the features that are present in the -Bash shell (version 5.3, 10 October 2024). The Bash home page is +Bash shell (version 5.3, 14 October 2024). The Bash home page is . - This is Edition 5.3, last updated 10 October 2024, of ‘The GNU Bash + This is Edition 5.3, last updated 14 October 2024, of ‘The GNU Bash Reference Manual’, for ‘Bash’, Version 5.3. Bash contains features that appear in other popular shells, and some @@ -1774,7 +1774,7 @@ replaced with the corresponding element from the directory stack, as it would be displayed by the ‘dirs’ builtin invoked with the characters following tilde in the tilde-prefix as an argument (*note The Directory Stack::). If the tilde-prefix, sans the tilde, consists of a number -without a leading ‘+’ or ‘-’, ‘+’ is assumed. +without a leading ‘+’ or ‘-’, tilde expansion assumes ‘+’. The results of tilde expansion are treated as if they were quoted, so the replacement is not subject to word splitting and filename expansion. @@ -1904,12 +1904,12 @@ omitted, the operator tests only for existence. DEFAULT ‘${PARAMETER:?WORD}’ - If PARAMETER is null or unset, the expansion of WORD (or a message - to that effect if WORD is not present) is written to the standard - error and the shell, if it is not interactive, exits with a - non-zero status. An interactive shell does not exit, but does not - execute the command associated with the expansion. Otherwise, the - value of PARAMETER is substituted. + If PARAMETER is null or unset, the shell writes the expansion of + WORD (or a message to that effect if WORD is not present) to the + standard error and, if it is not interactive, exits with a non-zero + status. An interactive shell does not exit, but does not execute + the command associated with the expansion. Otherwise, the value of + PARAMETER is substituted. $ var= $ : ${var:?var is unset or null} @@ -7071,15 +7071,17 @@ all lines that make up a compound command, before executing any of the commands on that line or the compound command. 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 shell reads the next line of input. 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 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 ‘alias’ in compound -commands. +effect until the shell reads the next line of input, and an alias +definition in a compound command does not take effect until the shell +parses and executes the entire compound command. The commands following +the alias definition on that line, or in the rest of a compound command, +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 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 +‘alias’ in compound commands. For almost every purpose, shell functions are preferred over aliases. @@ -8065,8 +8067,10 @@ interface supplied jointly by the operating system kernel's terminal driver and Bash. The shell associates a JOB with each pipeline. It keeps a table of -currently executing jobs, which may be listed with the ‘jobs’ command. -When Bash starts a job asynchronously, it prints a line that looks like: +currently executing jobs, which the ‘jobs’ command will display. Each +job has a “job number”, which ‘jobs’ displays between brackets. Job +numbers start at 1. When Bash starts a job asynchronously, 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 @@ -8074,72 +8078,85 @@ the processes in a single pipeline are members of the same job. Bash uses the JOB abstraction as the basis for job control. To facilitate the implementation of the user interface to job -control, the operating system maintains the notion of a current terminal -process group ID. 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 ‘SIGINT’. These processes -are said to be in the foreground. Background processes are those whose -process group ID differs from the terminal's; such processes are immune -to keyboard-generated signals. Only foreground processes are allowed to -read from or, if the user so specifies with ‘stty tostop’, write to the -terminal. Background processes which attempt to read from (write to -when ‘tostop’ is in effect) the terminal are sent a ‘SIGTTIN’ -(‘SIGTTOU’) signal by the kernel's terminal driver, which, unless -caught, suspends the process. +control, each process has a “process group ID”, and the operating system +maintains the notion of a current terminal process group ID. Processes +that have the same process group ID are said to be part of the same +“process group”. Members of the foreground process group (processes +whose process group ID is equal to the current terminal process group +ID) receive keyboard-generated signals such as ‘SIGINT’. Processes in +the foreground process group are said to be foreground processes. +Background processes are those whose process group ID differs from the +terminal's; such processes are immune to keyboard-generated signals. +Only foreground processes are allowed to read from or, if the user so +specifies with ‘stty tostop’, write to the terminal. Background +processes which attempt to read from (write to when ‘tostop’ is in +effect) the terminal are sent a ‘SIGTTIN’ (‘SIGTTOU’) signal by the +kernel's terminal driver, which, unless caught, suspends the process. If the operating system on which Bash is running supports job control, Bash contains facilities to use it. Typing the “suspend” -character (typically ‘^Z’, Control-Z) while a process is running causes -that process to be stopped and returns control to Bash. Typing the -“delayed suspend” character (typically ‘^Y’, Control-Y) causes the -process to be stopped when it attempts to read input from the terminal, -and control to be returned to Bash. The user then manipulates the state -of this job, using the ‘bg’ command to continue it in the background, -the ‘fg’ command to continue it in the foreground, or the ‘kill’ command -to kill it. A ‘^Z’ 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 -character ‘%’ introduces a job specification (“jobspec”). - - Job number ‘n’ may be referred to as ‘%n’. The symbols ‘%%’ and ‘%+’ -refer to the shell's notion of the current job, which is the last job -stopped while it was in the foreground or started in the background. A -single ‘%’ (with no accompanying job specification) also refers to the -current job. The previous job may be referenced using ‘%-’. If there -is only a single job, ‘%+’ and ‘%-’ can both be used to refer to that -job. In output pertaining to jobs (e.g., the output of the ‘jobs’ -command), the current job is always flagged with a ‘+’, and the previous -job with a ‘-’. - - 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 -example, ‘%ce’ refers to a stopped job whose command name begins with -‘ce’. Using ‘%?ce’, on the other hand, refers to any job containing the -string ‘ce’ in its command line. If the prefix or substring matches -more than one job, Bash reports an error. +character (typically ‘^Z’, Control-Z) while a process is running stops +that process and returns control to Bash. Typing the “delayed suspend” +character (typically ‘^Y’, Control-Y) causes the process to stop when it +attempts to read input from the terminal, and returns control to Bash. +The user then manipulates the state of this job, using the ‘bg’ command +to continue it in the background, the ‘fg’ command to continue it in the +foreground, or the ‘kill’ command to kill it. The suspend character +takes effect immediately, and has the additional side effect of +discarding any pending output and typeahead. If you want to force a +background process to stop, or stop a process that's not associated with +your terminal session, send it the ‘SIGSTOP’ signal using ‘kill’. + + There are a number of ways to refer to a job in the shell. The ‘%’ +character introduces a “job specification” (jobspec). + + Job number ‘n’ may be referred to as ‘%n’. 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 example, ‘%ce’ refers +to a job whose command name begins with ‘ce’. Using ‘%?ce’, on the +other hand, refers to any job containing the string ‘ce’ in its command +line. If the prefix or substring matches more than one job, Bash +reports an error. + + The symbols ‘%%’ and ‘%+’ refer to the shell's notion of the “current +job”. A single ‘%’ (with no accompanying job specification) also refers +to the current job. ‘%-’ refers to the “previous job”. When a job +starts in the background, a job stops while in the foreground, or a job +is resumed in the background, it becomes the current job. The job that +was the current job becomes the previous job. When the current job +terminates, the previous job becomes the current job. If there is only +a single job, ‘%+’ and ‘%-’ can both be used to refer to that job. In +output pertaining to jobs (e.g., the output of the ‘jobs’ command), the +current job is always marked with a ‘+’, and the previous job with a +‘-’. Simply naming a job can be used to bring it into the foreground: ‘%1’ is a synonym for ‘fg %1’, bringing job 1 from the background into the foreground. Similarly, ‘%1 &’ resumes job 1 in the background, -equivalent to ‘bg %1’ +equivalent to ‘bg %1’. The shell learns immediately whenever a job changes state. Normally, -Bash 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, though it -will notify of changes in a job's status after a foreground command in a -list completes, before executing the next command. If the ‘-b’ option -to the ‘set’ builtin is enabled, Bash reports such changes immediately -(*note The Set Builtin::). Any trap on ‘SIGCHLD’ is executed for each -child process that exits. - - If an attempt to exit Bash is made while jobs are stopped, (or -running, if the ‘checkjobs’ option is enabled - see *note The Shopt -Builtin::), the shell prints a warning message, and if the ‘checkjobs’ -option is enabled, lists the jobs and their statuses. The ‘jobs’ -command may then be used to inspect their status. If a second attempt -to exit is made without an intervening command, Bash does not print -another warning, and any stopped jobs are terminated. +Bash waits until it is about to print a prompt before notifying the user +about changes in a job's status so as to not interrupt any other output, +though it will notify of changes in a job's status after a foreground +command in a list completes, before executing the next command in the +list. If the ‘-b’ option to the ‘set’ builtin is enabled, Bash reports +such changes immediately (*note The Set Builtin::). Bash executes any +trap on ‘SIGCHLD’ for each child process that terminates. + + When a job terminates and Bash notifies the user about it, Bash +removes the job from the jobs table. It will not appear in ‘jobs’ +output, but ‘wait’ will report its exit status, as long as it's supplied +the process ID associated with the job as an argument. When the table +is empty, job numbers start over at 1. + + If a user attempts to exit Bash while jobs are stopped, (or running, +if the ‘checkjobs’ option is enabled - see *note The Shopt Builtin::), +the shell prints a warning message, and if the ‘checkjobs’ option is +enabled, lists the jobs and their statuses. The ‘jobs’ command may then +be used to inspect their status. If the user immediately attempts to +exit again, without an intervening command, Bash does not print another +warning, and terminates any stopped jobs. When the shell is waiting for a job or process using the ‘wait’ builtin, and job control is enabled, ‘wait’ will return when the job @@ -8156,21 +8173,22 @@ File: bash.info, Node: Job Control Builtins, Next: Job Control Variables, Pre bg [JOBSPEC ...] Resume each suspended job JOBSPEC in the background, as if it had - been started with ‘&’. If JOBSPEC is not supplied, the current job - is used. The return status is zero unless it is run when job - control is not enabled, or, when run with job control enabled, any - JOBSPEC was not found or specifies a job that was started without - job control. + been started with ‘&’. If JOBSPEC is not supplied, the shell uses + its notion of the current job. ‘bg’ returns zero unless it is run + when job control is not enabled, or, when run with job control + enabled, any JOBSPEC was not found or specifies a job that was + started without job control. ‘fg’ fg [JOBSPEC] Resume the job JOBSPEC in the foreground and make it the current - job. If JOBSPEC is not supplied, resume the current job. The - return status is that of the command placed into the foreground, or - non-zero if run when job control is disabled or, when run with job - control enabled, JOBSPEC does not specify a valid job or JOBSPEC - specifies a job that was started without job control. + job. If JOBSPEC is not supplied, ‘fg’ resumes the current job. + The return status is that of the command placed into the + foreground, or non-zero if run when job control is disabled or, + when run with job control enabled, JOBSPEC does not specify a valid + job or JOBSPEC specifies a job that was started without job + control. ‘jobs’ jobs [-lnprs] [JOBSPEC] @@ -8197,7 +8215,8 @@ File: bash.info, Node: Job Control Builtins, Next: Job Control Variables, Pre If JOBSPEC is supplied, ‘jobs’ restricts output to information about that job. If JOBSPEC is not supplied, ‘jobs’ lists the - status of all jobs. + status of all jobs. The return status is zero unless an invalid + option is encountered or an invalid JOBSPEC is supplied. If the ‘-x’ option is supplied, ‘jobs’ replaces any JOBSPEC found in COMMAND or ARGUMENTS with the corresponding process group ID, @@ -8205,21 +8224,25 @@ File: bash.info, Node: Job Control Builtins, Next: Job Control Variables, Pre status. ‘kill’ - kill [-s SIGSPEC] [-n SIGNUM] [-SIGSPEC] JOBSPEC or PID + kill [-s SIGSPEC] [-n SIGNUM] [-SIGSPEC] ID [...] kill -l|-L [EXIT_STATUS] - Send a signal specified by SIGSPEC or SIGNUM to the process named - by job specification JOBSPEC or process ID PID. SIGSPEC is either - a case-insensitive signal name such as ‘SIGINT’ (with or without - the ‘SIG’ prefix) or a signal number; SIGNUM is a signal number. - If SIGSPEC and SIGNUM are not present, ‘kill’ sends ‘SIGTERM’. + Send a signal specified by SIGSPEC or SIGNUM to the processes named + by each ID. Each ID may be a job specification JOBSPEC or process + ID PID. SIGSPEC is either a case-insensitive signal name such as + ‘SIGINT’ (with or without the ‘SIG’ prefix) or a signal number; + SIGNUM is a signal number. If SIGSPEC and SIGNUM are not present, + ‘kill’ sends ‘SIGTERM’. The ‘-l’ option lists the signal names. If any arguments are - supplied when ‘-l’ is supplied, the names of the signals - corresponding to the arguments are listed, and the return status is + supplied when ‘-l’ is supplied, ‘kill’ lists the names of the + signals corresponding to the arguments, and the return status is zero. EXIT_STATUS is a number specifying a signal number or the - exit status of a process terminated by a signal. The ‘-L’ option - is equivalent to ‘-l’. + exit status of a process terminated by a signal; if it is supplied, + ‘kill’ prints the name of the signal that caused the process to + terminate. ‘kill’ assumes that process exit statuses are greater + than 128; anything less than that is a signal number. The ‘-L’ + option is equivalent to ‘-l’. The return status is zero if at least one signal was successfully sent, or non-zero if an error occurs or an invalid option is @@ -8229,9 +8252,9 @@ File: bash.info, Node: Job Control Builtins, Next: Job Control Variables, Pre wait [-fn] [-p VARNAME] [ID ...] Wait until the child process specified by each ID exits and return - the exit status of the last ID. Each ID may be a PID or job - specification JOBSPEC; if a job spec is supplied, ‘wait’ waits for - all processes in the job. + the exit status of the last ID. Each ID may be a process ID PID or + a job specification JOBSPEC; if a jobspec is supplied, ‘wait’ waits + for all processes in the job. If no options or IDs are supplied, ‘wait’ waits for all running background jobs and the last-executed process substitution, if its @@ -8243,11 +8266,11 @@ File: bash.info, Node: Job Control Builtins, Next: Job Control Variables, Pre is a child of the shell, or if no arguments are supplied and the shell has no unwaited-for children, the exit status is 127. - If the ‘-p’ option is supplied, the process or job identifier of - the job for which the exit status is returned is assigned to the + If the ‘-p’ option is supplied, ‘wait’ assigns the process or job + identifier of the job for which the exit status is returned to the variable VARNAME named by the option argument. The variable, which cannot be readonly, will be unset initially, before any assignment. - This is useful only when the ‘-n’ option is supplied. + This is useful only when used with the ‘-n’ option. Supplying the ‘-f’ option, when job control is enabled, forces ‘wait’ to wait for each ID to terminate before returning its @@ -8263,16 +8286,18 @@ File: bash.info, Node: Job Control Builtins, Next: Job Control Variables, Pre disown [-ar] [-h] [ID ...] Without options, remove each ID from the table of active jobs. - Each ID may be a PID or job specification JOBSPEC; if ID is a PID, - ‘disown’ uses the job containing PID. If the ‘-h’ option is - supplied, the job is not removed from the table, but is marked so - that ‘SIGHUP’ is not sent to the job if the shell receives a - ‘SIGHUP’. If ID is not present, and neither the ‘-a’ nor the ‘-r’ - option is supplied, ‘disown’ removes the current job. + Each ID may be a job specification JOBSPEC or a process ID PID; if + ID is a PID, ‘disown’ uses the job containing PID as JOBSPEC. + + If the ‘-h’ option is supplied, ‘disown’ does not remove the jobs + corresponding to each ‘id’ from the jobs table, but rather marks + them so the shell does not send ‘SIGHUP’ to the job if the shell + receives a ‘SIGHUP’. If no ID is supplied, the ‘-a’ option means to remove or mark all - jobs; the ‘-r’ option without an ID argument restricts operation to - running jobs. + jobs; the ‘-r’ option without an ID argument removes or marks + running jobs. If no ID is supplied, and neither the ‘-a’ nor the + ‘-r’ option is supplied, ‘disown’ removes or marks the current job. The return value is 0 unless an ID does not specify a valid job. @@ -8296,19 +8321,20 @@ File: bash.info, Node: Job Control Variables, Prev: Job Control Builtins, Up: ‘auto_resume’ This variable controls how the shell interacts with the user and - job control. If this variable exists then single-word simple - commands without redirections are treated as candidates for - resumption of an existing job. There is no ambiguity allowed; if - there is more than one job beginning with the string typed, then - the most recently accessed job is selected. The name of a stopped - job, in this context, is the command line used to start it. If - this variable is set to the value ‘exact’, the string supplied must - match the name of a stopped job exactly; if set to ‘substring’, the - string supplied needs to match a substring of the name of a stopped - job. The ‘substring’ value provides functionality analogous to the - ‘%?’ job ID (*note Job Control Basics::). 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 ‘%’ job ID. + job control. If this variable exists then simple commands + consisting of only a single word, without redirections, are treated + as candidates for resumption of an existing job. There is no + ambiguity allowed; if there is more than one job beginning with or + containing the word, then this selects the most recently accessed + job. The name of a stopped job, in this context, is the command + line used to start it, as displayed by ‘jobs’. If this variable is + set to the value ‘exact’, the word must match the name of a stopped + job exactly; if set to ‘substring’, the word needs to match a + substring of the name of a stopped job. The ‘substring’ value + provides functionality analogous to the ‘%?string’ job ID (*note + Job Control Basics::). If set to any other value (e.g., ‘prefix’), + the word must be a prefix of a stopped job's name; this provides + functionality analogous to the ‘%string’ job ID.  File: bash.info, Node: Command Line Editing, Next: Using History Interactively, Prev: Job Control, Up: Top @@ -9090,7 +9116,7 @@ Key Bindings This key binding syntax recognizes a number of symbolic character names: DEL, ESC, ESCAPE, LFD, NEWLINE, RET, RETURN, - RUBOUT, SPACE, SPC, and TAB. + RUBOUT (a destructive backspace), SPACE, SPC, and TAB. "KEYSEQ": FUNCTION-NAME or MACRO KEYSEQ differs from KEYNAME above in that strings denoting an @@ -9582,7 +9608,8 @@ File: bash.info, Node: Commands For Text, Next: Commands For Killing, Prev: C ‘delete-char (C-d)’ Delete the character at point. If this function is bound to the same character as the tty EOF character, as ‘C-d’ commonly is, see - above for the effects. + above for the effects. This may also be bound to the Delete key on + some keyboards. ‘backward-delete-char (Rubout)’ Delete the character behind the cursor. A numeric argument means @@ -12642,7 +12669,7 @@ D.1 Index of Shell Builtin Commands * dirs: Directory Stack Builtins. (line 7) * disown: Job Control Builtins. - (line 114) + (line 120) * echo: Bash Builtins. (line 284) * enable: Bash Builtins. (line 337) * eval: Bourne Shell Builtins. @@ -12667,9 +12694,9 @@ D.1 Index of Shell Builtin Commands * history: Bash History Builtins. (line 59) * jobs: Job Control Builtins. - (line 27) + (line 28) * kill: Job Control Builtins. - (line 59) + (line 61) * let: Bash Builtins. (line 394) * local: Bash Builtins. (line 403) * logout: Bash Builtins. (line 428) @@ -12693,7 +12720,7 @@ D.1 Index of Shell Builtin Commands * shopt: The Shopt Builtin. (line 9) * source: Bash Builtins. (line 668) * suspend: Job Control Builtins. - (line 131) + (line 139) * test: Bourne Shell Builtins. (line 333) * times: Bourne Shell Builtins. @@ -12711,7 +12738,7 @@ D.1 Index of Shell Builtin Commands * unset: Bourne Shell Builtins. (line 528) * wait: Job Control Builtins. - (line 80) + (line 86)  File: bash.info, Node: Reserved Word Index, Next: Variable Index, Prev: Builtin Index, Up: Indexes @@ -13021,7 +13048,7 @@ D.4 Function Index * alias-expand-line (): Miscellaneous Commands. (line 133) * backward-char (C-b): Commands For Moving. (line 17) -* backward-delete-char (Rubout): Commands For Text. (line 17) +* backward-delete-char (Rubout): Commands For Text. (line 18) * backward-kill-line (C-x Rubout): Commands For Killing. (line 11) * backward-kill-word (M-): Commands For Killing. @@ -13030,9 +13057,9 @@ D.4 Function Index * beginning-of-history (M-<): Commands For History. (line 20) * beginning-of-line (C-a): Commands For Moving. (line 6) -* bracketed-paste-begin (): Commands For Text. (line 34) +* bracketed-paste-begin (): Commands For Text. (line 35) * call-last-kbd-macro (C-x e): Keyboard Macros. (line 13) -* capitalize-word (M-c): Commands For Text. (line 72) +* capitalize-word (M-c): Commands For Text. (line 73) * character-search (C-]): Miscellaneous Commands. (line 41) * character-search-backward (M-C-]): Miscellaneous Commands. @@ -13071,7 +13098,7 @@ D.4 Function Index (line 147) * do-lowercase-version (M-A, M-B, M-X, ...): Miscellaneous Commands. (line 14) -* downcase-word (M-l): Commands For Text. (line 68) +* downcase-word (M-l): Commands For Text. (line 69) * dump-functions (): Miscellaneous Commands. (line 71) * dump-macros (): Miscellaneous Commands. @@ -13093,7 +13120,7 @@ D.4 Function Index (line 90) * fetch-history (): Commands For History. (line 106) -* forward-backward-delete-char (): Commands For Text. (line 22) +* forward-backward-delete-char (): Commands For Text. (line 23) * forward-char (C-f): Commands For Moving. (line 14) * forward-search-history (C-s): Commands For History. (line 33) @@ -13145,7 +13172,7 @@ D.4 Function Index (line 39) * operate-and-get-next (C-o): Commands For History. (line 99) -* overwrite-mode (): Commands For Text. (line 76) +* overwrite-mode (): Commands For Text. (line 77) * possible-command-completions (C-x !): Commands For Completion. (line 87) * possible-completions (M-?): Commands For Completion. @@ -13164,7 +13191,7 @@ D.4 Function Index (line 13) * previous-screen-line (): Commands For Moving. (line 36) * print-last-kbd-macro (): Keyboard Macros. (line 17) -* quoted-insert (C-q or C-v): Commands For Text. (line 27) +* quoted-insert (C-q or C-v): Commands For Text. (line 28) * re-read-init-file (C-x C-r): Miscellaneous Commands. (line 6) * redraw-current-line (): Commands For Moving. (line 59) @@ -13172,7 +13199,7 @@ D.4 Function Index (line 27) * revert-line (M-r): Miscellaneous Commands. (line 26) -* self-insert (a, b, A, 1, !, ...): Commands For Text. (line 31) +* self-insert (a, b, A, 1, !, ...): Commands For Text. (line 32) * set-mark (C-@): Miscellaneous Commands. (line 33) * shell-backward-kill-word (): Commands For Killing. @@ -13183,7 +13210,7 @@ D.4 Function Index * shell-forward-word (M-C-f): Commands For Moving. (line 28) * shell-kill-word (M-C-d): Commands For Killing. (line 32) -* shell-transpose-words (M-C-t): Commands For Text. (line 57) +* shell-transpose-words (M-C-t): Commands For Text. (line 58) * skip-csi-sequence (): Miscellaneous Commands. (line 50) * spell-correct-word (C-x s): Miscellaneous Commands. @@ -13191,8 +13218,8 @@ D.4 Function Index * start-kbd-macro (C-x (): Keyboard Macros. (line 6) * tilde-expand (M-&): Miscellaneous Commands. (line 30) -* transpose-chars (C-t): Commands For Text. (line 46) -* transpose-words (M-t): Commands For Text. (line 52) +* transpose-chars (C-t): Commands For Text. (line 47) +* transpose-words (M-t): Commands For Text. (line 53) * undo (C-_ or C-x C-u): Miscellaneous Commands. (line 23) * universal-argument (): Numeric Arguments. (line 10) @@ -13202,7 +13229,7 @@ D.4 Function Index (line 16) * unix-word-rubout (C-w): Commands For Killing. (line 41) -* upcase-word (M-u): Commands For Text. (line 64) +* upcase-word (M-u): Commands For Text. (line 65) * yank (C-y): Commands For Killing. (line 72) * yank-last-arg (M-. or M-_): Commands For History. @@ -13355,7 +13382,7 @@ D.5 Concept Index * quoting: Quoting. (line 6) * quoting, ANSI: ANSI-C Quoting. (line 6) * Readline, how to use: Job Control Variables. - (line 22) + (line 23) * redirection: Redirections. (line 6) * reserved word: Definitions. (line 70) * reserved words: Reserved Words. (line 6) @@ -13424,104 +13451,104 @@ Node: Special Parameters70300 Node: Shell Expansions73761 Node: Brace Expansion75950 Node: Tilde Expansion78678 -Node: Shell Parameter Expansion81620 -Node: Command Substitution101392 -Node: Arithmetic Expansion104925 -Node: Process Substitution105938 -Node: Word Splitting107054 -Node: Filename Expansion109151 -Node: Pattern Matching112419 -Node: Quote Removal117753 -Node: Redirections118057 -Node: Executing Commands128272 -Node: Simple Command Expansion128939 -Node: Command Search and Execution131047 -Node: Command Execution Environment133491 -Node: Environment136939 -Node: Exit Status138842 -Node: Signals140900 -Node: Shell Scripts144798 -Node: Shell Builtin Commands148096 -Node: Bourne Shell Builtins150207 -Node: Bash Builtins176508 -Node: Modifying Shell Behavior212956 -Node: The Set Builtin213298 -Node: The Shopt Builtin225234 -Node: Special Builtins242286 -Node: Shell Variables243275 -Node: Bourne Shell Variables243709 -Node: Bash Variables246217 -Node: Bash Features284474 -Node: Invoking Bash285488 -Node: Bash Startup Files291914 -Node: Interactive Shells297227 -Node: What is an Interactive Shell?297635 -Node: Is this Shell Interactive?298297 -Node: Interactive Shell Behavior299121 -Node: Bash Conditional Expressions302882 -Node: Shell Arithmetic308099 -Node: Aliases311438 -Node: Arrays314400 -Node: The Directory Stack321463 -Node: Directory Stack Builtins322260 -Node: Controlling the Prompt326705 -Node: The Restricted Shell329589 -Node: Bash POSIX Mode332471 -Node: Shell Compatibility Mode350612 -Node: Job Control359623 -Node: Job Control Basics360080 -Node: Job Control Builtins365388 -Node: Job Control Variables371556 -Node: Command Line Editing372724 -Node: Introduction and Notation374427 -Node: Readline Interaction376777 -Node: Readline Bare Essentials377965 -Node: Readline Movement Commands379773 -Node: Readline Killing Commands380769 -Node: Readline Arguments382792 -Node: Searching383849 -Node: Readline Init File386110 -Node: Readline Init File Syntax387414 -Node: Conditional Init Constructs414134 -Node: Sample Init File418519 -Node: Bindable Readline Commands421640 -Node: Commands For Moving423112 -Node: Commands For History425339 -Node: Commands For Text430592 -Node: Commands For Killing434651 -Node: Numeric Arguments437439 -Node: Commands For Completion438591 -Node: Keyboard Macros443091 -Node: Miscellaneous Commands443792 -Node: Readline vi Mode450345 -Node: Programmable Completion451322 -Node: Programmable Completion Builtins459374 -Node: A Programmable Completion Example471039 -Node: Using History Interactively476384 -Node: Bash History Facilities477065 -Node: Bash History Builtins480800 -Node: History Interaction487271 -Node: Event Designators492225 -Node: Word Designators493803 -Node: Modifiers496111 -Node: Installing Bash498052 -Node: Basic Installation499168 -Node: Compilers and Options503044 -Node: Compiling For Multiple Architectures503794 -Node: Installation Names505543 -Node: Specifying the System Type507777 -Node: Sharing Defaults508523 -Node: Operation Controls509237 -Node: Optional Features510256 -Node: Reporting Bugs522636 -Node: Major Differences From The Bourne Shell523994 -Node: GNU Free Documentation License545414 -Node: Indexes570591 -Node: Builtin Index571042 -Node: Reserved Word Index578140 -Node: Variable Index580585 -Node: Function Index597998 -Node: Concept Index611854 +Node: Shell Parameter Expansion81633 +Node: Command Substitution101401 +Node: Arithmetic Expansion104934 +Node: Process Substitution105947 +Node: Word Splitting107063 +Node: Filename Expansion109160 +Node: Pattern Matching112428 +Node: Quote Removal117762 +Node: Redirections118066 +Node: Executing Commands128281 +Node: Simple Command Expansion128948 +Node: Command Search and Execution131056 +Node: Command Execution Environment133500 +Node: Environment136948 +Node: Exit Status138851 +Node: Signals140909 +Node: Shell Scripts144807 +Node: Shell Builtin Commands148105 +Node: Bourne Shell Builtins150216 +Node: Bash Builtins176517 +Node: Modifying Shell Behavior212965 +Node: The Set Builtin213307 +Node: The Shopt Builtin225243 +Node: Special Builtins242295 +Node: Shell Variables243284 +Node: Bourne Shell Variables243718 +Node: Bash Variables246226 +Node: Bash Features284483 +Node: Invoking Bash285497 +Node: Bash Startup Files291923 +Node: Interactive Shells297236 +Node: What is an Interactive Shell?297644 +Node: Is this Shell Interactive?298306 +Node: Interactive Shell Behavior299130 +Node: Bash Conditional Expressions302891 +Node: Shell Arithmetic308108 +Node: Aliases311447 +Node: Arrays314582 +Node: The Directory Stack321645 +Node: Directory Stack Builtins322442 +Node: Controlling the Prompt326887 +Node: The Restricted Shell329771 +Node: Bash POSIX Mode332653 +Node: Shell Compatibility Mode350794 +Node: Job Control359805 +Node: Job Control Basics360262 +Node: Job Control Builtins366538 +Node: Job Control Variables373220 +Node: Command Line Editing374451 +Node: Introduction and Notation376154 +Node: Readline Interaction378504 +Node: Readline Bare Essentials379692 +Node: Readline Movement Commands381500 +Node: Readline Killing Commands382496 +Node: Readline Arguments384519 +Node: Searching385576 +Node: Readline Init File387837 +Node: Readline Init File Syntax389141 +Node: Conditional Init Constructs415887 +Node: Sample Init File420272 +Node: Bindable Readline Commands423393 +Node: Commands For Moving424865 +Node: Commands For History427092 +Node: Commands For Text432345 +Node: Commands For Killing436470 +Node: Numeric Arguments439258 +Node: Commands For Completion440410 +Node: Keyboard Macros444910 +Node: Miscellaneous Commands445611 +Node: Readline vi Mode452164 +Node: Programmable Completion453141 +Node: Programmable Completion Builtins461193 +Node: A Programmable Completion Example472858 +Node: Using History Interactively478203 +Node: Bash History Facilities478884 +Node: Bash History Builtins482619 +Node: History Interaction489090 +Node: Event Designators494044 +Node: Word Designators495622 +Node: Modifiers497930 +Node: Installing Bash499871 +Node: Basic Installation500987 +Node: Compilers and Options504863 +Node: Compiling For Multiple Architectures505613 +Node: Installation Names507362 +Node: Specifying the System Type509596 +Node: Sharing Defaults510342 +Node: Operation Controls511056 +Node: Optional Features512075 +Node: Reporting Bugs524455 +Node: Major Differences From The Bourne Shell525813 +Node: GNU Free Documentation License547233 +Node: Indexes572410 +Node: Builtin Index572861 +Node: Reserved Word Index579959 +Node: Variable Index582404 +Node: Function Index599817 +Node: Concept Index613673  End Tag Table diff --git a/doc/bash.pdf b/doc/bash.pdf index 48c5d562..b10016b6 100644 Binary files a/doc/bash.pdf and b/doc/bash.pdf differ diff --git a/doc/bashref.aux b/doc/bashref.aux index ed95eb29..609ea753 100644 --- a/doc/bashref.aux +++ b/doc/bashref.aux @@ -237,154 +237,154 @@ @xrdef{Job Control Builtins-pg}{124} @xrdef{Job Control Variables-title}{Job Control Variables} @xrdef{Job Control Variables-snt}{Section@tie 7.3} -@xrdef{Job Control Variables-pg}{126} +@xrdef{Job Control Variables-pg}{127} @xrdef{Command Line Editing-title}{Command Line Editing} @xrdef{Command Line Editing-snt}{Chapter@tie 8} @xrdef{Introduction and Notation-title}{Introduction to Line Editing} @xrdef{Introduction and Notation-snt}{Section@tie 8.1} @xrdef{Readline Interaction-title}{Readline Interaction} @xrdef{Readline Interaction-snt}{Section@tie 8.2} -@xrdef{Command Line Editing-pg}{127} -@xrdef{Introduction and Notation-pg}{127} -@xrdef{Readline Interaction-pg}{127} +@xrdef{Command Line Editing-pg}{128} +@xrdef{Introduction and Notation-pg}{128} +@xrdef{Readline Interaction-pg}{128} @xrdef{Readline Bare Essentials-title}{Readline Bare Essentials} @xrdef{Readline Bare Essentials-snt}{Section@tie 8.2.1} @xrdef{Readline Movement Commands-title}{Readline Movement Commands} @xrdef{Readline Movement Commands-snt}{Section@tie 8.2.2} -@xrdef{Readline Bare Essentials-pg}{128} -@xrdef{Readline Movement Commands-pg}{128} +@xrdef{Readline Bare Essentials-pg}{129} +@xrdef{Readline Movement Commands-pg}{129} @xrdef{Readline Killing Commands-title}{Readline Killing Commands} @xrdef{Readline Killing Commands-snt}{Section@tie 8.2.3} @xrdef{Readline Arguments-title}{Readline Arguments} @xrdef{Readline Arguments-snt}{Section@tie 8.2.4} @xrdef{Searching-title}{Searching for Commands in the History} @xrdef{Searching-snt}{Section@tie 8.2.5} -@xrdef{Readline Killing Commands-pg}{129} -@xrdef{Readline Arguments-pg}{129} +@xrdef{Readline Killing Commands-pg}{130} +@xrdef{Readline Arguments-pg}{130} @xrdef{Readline Init File-title}{Readline Init File} @xrdef{Readline Init File-snt}{Section@tie 8.3} @xrdef{Readline Init File Syntax-title}{Readline Init File Syntax} @xrdef{Readline Init File Syntax-snt}{Section@tie 8.3.1} -@xrdef{Searching-pg}{130} -@xrdef{Readline Init File-pg}{130} -@xrdef{Readline Init File Syntax-pg}{130} +@xrdef{Searching-pg}{131} +@xrdef{Readline Init File-pg}{131} +@xrdef{Readline Init File Syntax-pg}{131} @xrdef{Conditional Init Constructs-title}{Conditional Init Constructs} @xrdef{Conditional Init Constructs-snt}{Section@tie 8.3.2} -@xrdef{Conditional Init Constructs-pg}{140} +@xrdef{Conditional Init Constructs-pg}{141} @xrdef{Sample Init File-title}{Sample Init File} @xrdef{Sample Init File-snt}{Section@tie 8.3.3} -@xrdef{Sample Init File-pg}{141} +@xrdef{Sample Init File-pg}{142} @xrdef{Bindable Readline Commands-title}{Bindable Readline Commands} @xrdef{Bindable Readline Commands-snt}{Section@tie 8.4} @xrdef{Commands For Moving-title}{Commands For Moving} @xrdef{Commands For Moving-snt}{Section@tie 8.4.1} -@xrdef{Bindable Readline Commands-pg}{144} -@xrdef{Commands For Moving-pg}{144} +@xrdef{Bindable Readline Commands-pg}{145} +@xrdef{Commands For Moving-pg}{145} @xrdef{Commands For History-title}{Commands For Manipulating The History} @xrdef{Commands For History-snt}{Section@tie 8.4.2} -@xrdef{Commands For History-pg}{145} +@xrdef{Commands For History-pg}{146} @xrdef{Commands For Text-title}{Commands For Changing Text} @xrdef{Commands For Text-snt}{Section@tie 8.4.3} -@xrdef{Commands For Text-pg}{147} +@xrdef{Commands For Text-pg}{148} @xrdef{Commands For Killing-title}{Killing And Yanking} @xrdef{Commands For Killing-snt}{Section@tie 8.4.4} -@xrdef{Commands For Killing-pg}{148} +@xrdef{Commands For Killing-pg}{149} @xrdef{Numeric Arguments-title}{Specifying Numeric Arguments} @xrdef{Numeric Arguments-snt}{Section@tie 8.4.5} @xrdef{Commands For Completion-title}{Letting Readline Type For You} @xrdef{Commands For Completion-snt}{Section@tie 8.4.6} -@xrdef{Numeric Arguments-pg}{150} -@xrdef{Commands For Completion-pg}{150} +@xrdef{Numeric Arguments-pg}{151} +@xrdef{Commands For Completion-pg}{151} @xrdef{Keyboard Macros-title}{Keyboard Macros} @xrdef{Keyboard Macros-snt}{Section@tie 8.4.7} @xrdef{Miscellaneous Commands-title}{Some Miscellaneous Commands} @xrdef{Miscellaneous Commands-snt}{Section@tie 8.4.8} -@xrdef{Keyboard Macros-pg}{152} -@xrdef{Miscellaneous Commands-pg}{152} +@xrdef{Keyboard Macros-pg}{153} +@xrdef{Miscellaneous Commands-pg}{153} @xrdef{Readline vi Mode-title}{Readline vi Mode} @xrdef{Readline vi Mode-snt}{Section@tie 8.5} @xrdef{Programmable Completion-title}{Programmable Completion} @xrdef{Programmable Completion-snt}{Section@tie 8.6} -@xrdef{Readline vi Mode-pg}{155} -@xrdef{Programmable Completion-pg}{155} +@xrdef{Readline vi Mode-pg}{156} +@xrdef{Programmable Completion-pg}{156} @xrdef{Programmable Completion Builtins-title}{Programmable Completion Builtins} @xrdef{Programmable Completion Builtins-snt}{Section@tie 8.7} -@xrdef{Programmable Completion Builtins-pg}{157} +@xrdef{Programmable Completion Builtins-pg}{158} @xrdef{A Programmable Completion Example-title}{A Programmable Completion Example} @xrdef{A Programmable Completion Example-snt}{Section@tie 8.8} -@xrdef{A Programmable Completion Example-pg}{161} +@xrdef{A Programmable Completion Example-pg}{162} @xrdef{Using History Interactively-title}{Using History Interactively} @xrdef{Using History Interactively-snt}{Chapter@tie 9} @xrdef{Bash History Facilities-title}{Bash History Facilities} @xrdef{Bash History Facilities-snt}{Section@tie 9.1} -@xrdef{Using History Interactively-pg}{164} -@xrdef{Bash History Facilities-pg}{164} +@xrdef{Using History Interactively-pg}{165} +@xrdef{Bash History Facilities-pg}{165} @xrdef{Bash History Builtins-title}{Bash History Builtins} @xrdef{Bash History Builtins-snt}{Section@tie 9.2} -@xrdef{Bash History Builtins-pg}{165} +@xrdef{Bash History Builtins-pg}{166} @xrdef{History Interaction-title}{History Expansion} @xrdef{History Interaction-snt}{Section@tie 9.3} -@xrdef{History Interaction-pg}{167} +@xrdef{History Interaction-pg}{168} @xrdef{Event Designators-title}{Event Designators} @xrdef{Event Designators-snt}{Section@tie 9.3.1} -@xrdef{Event Designators-pg}{168} +@xrdef{Event Designators-pg}{169} @xrdef{Word Designators-title}{Word Designators} @xrdef{Word Designators-snt}{Section@tie 9.3.2} @xrdef{Modifiers-title}{Modifiers} @xrdef{Modifiers-snt}{Section@tie 9.3.3} -@xrdef{Word Designators-pg}{169} -@xrdef{Modifiers-pg}{170} +@xrdef{Word Designators-pg}{170} +@xrdef{Modifiers-pg}{171} @xrdef{Installing Bash-title}{Installing Bash} @xrdef{Installing Bash-snt}{Chapter@tie 10} @xrdef{Basic Installation-title}{Basic Installation} @xrdef{Basic Installation-snt}{Section@tie 10.1} -@xrdef{Installing Bash-pg}{171} -@xrdef{Basic Installation-pg}{171} +@xrdef{Installing Bash-pg}{172} +@xrdef{Basic Installation-pg}{172} @xrdef{Compilers and Options-title}{Compilers and Options} @xrdef{Compilers and Options-snt}{Section@tie 10.2} @xrdef{Compiling For Multiple Architectures-title}{Compiling For Multiple Architectures} @xrdef{Compiling For Multiple Architectures-snt}{Section@tie 10.3} @xrdef{Installation Names-title}{Installation Names} @xrdef{Installation Names-snt}{Section@tie 10.4} -@xrdef{Compilers and Options-pg}{172} -@xrdef{Compiling For Multiple Architectures-pg}{172} +@xrdef{Compilers and Options-pg}{173} +@xrdef{Compiling For Multiple Architectures-pg}{173} @xrdef{Specifying the System Type-title}{Specifying the System Type} @xrdef{Specifying the System Type-snt}{Section@tie 10.5} @xrdef{Sharing Defaults-title}{Sharing Defaults} @xrdef{Sharing Defaults-snt}{Section@tie 10.6} @xrdef{Operation Controls-title}{Operation Controls} @xrdef{Operation Controls-snt}{Section@tie 10.7} -@xrdef{Installation Names-pg}{173} -@xrdef{Specifying the System Type-pg}{173} -@xrdef{Sharing Defaults-pg}{173} +@xrdef{Installation Names-pg}{174} +@xrdef{Specifying the System Type-pg}{174} +@xrdef{Sharing Defaults-pg}{174} @xrdef{Optional Features-title}{Optional Features} @xrdef{Optional Features-snt}{Section@tie 10.8} -@xrdef{Operation Controls-pg}{174} -@xrdef{Optional Features-pg}{174} +@xrdef{Operation Controls-pg}{175} +@xrdef{Optional Features-pg}{175} @xrdef{Reporting Bugs-title}{Reporting Bugs} @xrdef{Reporting Bugs-snt}{Appendix@tie @char65{}} -@xrdef{Reporting Bugs-pg}{180} +@xrdef{Reporting Bugs-pg}{181} @xrdef{Major Differences From The Bourne Shell-title}{Major Differences From The Bourne Shell} @xrdef{Major Differences From The Bourne Shell-snt}{Appendix@tie @char66{}} -@xrdef{Major Differences From The Bourne Shell-pg}{181} +@xrdef{Major Differences From The Bourne Shell-pg}{182} @xrdef{GNU Free Documentation License-title}{GNU Free Documentation License} @xrdef{GNU Free Documentation License-snt}{Appendix@tie @char67{}} -@xrdef{GNU Free Documentation License-pg}{188} +@xrdef{GNU Free Documentation License-pg}{189} @xrdef{Indexes-title}{Indexes} @xrdef{Indexes-snt}{Appendix@tie @char68{}} @xrdef{Builtin Index-title}{Index of Shell Builtin Commands} @xrdef{Builtin Index-snt}{Section@tie @char68.1} -@xrdef{Indexes-pg}{196} -@xrdef{Builtin Index-pg}{196} +@xrdef{Indexes-pg}{197} +@xrdef{Builtin Index-pg}{197} @xrdef{Reserved Word Index-title}{Index of Shell Reserved Words} @xrdef{Reserved Word Index-snt}{Section@tie @char68.2} @xrdef{Variable Index-title}{Parameter and Variable Index} @xrdef{Variable Index-snt}{Section@tie @char68.3} -@xrdef{Reserved Word Index-pg}{197} -@xrdef{Variable Index-pg}{198} +@xrdef{Reserved Word Index-pg}{198} +@xrdef{Variable Index-pg}{199} @xrdef{Function Index-title}{Function Index} @xrdef{Function Index-snt}{Section@tie @char68.4} -@xrdef{Function Index-pg}{200} +@xrdef{Function Index-pg}{201} @xrdef{Concept Index-title}{Concept Index} @xrdef{Concept Index-snt}{Section@tie @char68.5} -@xrdef{Concept Index-pg}{202} +@xrdef{Concept Index-pg}{203} diff --git a/doc/bashref.bt b/doc/bashref.bt index 29c2c094..b2d669ac 100644 --- a/doc/bashref.bt +++ b/doc/bashref.bt @@ -48,14 +48,14 @@ \entry{popd}{110}{\code {popd}} \entry{pushd}{111}{\code {pushd}} \entry{bg}{124}{\code {bg}} -\entry{fg}{124}{\code {fg}} -\entry{jobs}{124}{\code {jobs}} +\entry{fg}{125}{\code {fg}} +\entry{jobs}{125}{\code {jobs}} \entry{kill}{125}{\code {kill}} -\entry{wait}{125}{\code {wait}} +\entry{wait}{126}{\code {wait}} \entry{disown}{126}{\code {disown}} \entry{suspend}{126}{\code {suspend}} -\entry{compgen}{157}{\code {compgen}} -\entry{complete}{158}{\code {complete}} -\entry{compopt}{161}{\code {compopt}} -\entry{fc}{165}{\code {fc}} -\entry{history}{165}{\code {history}} +\entry{compgen}{158}{\code {compgen}} +\entry{complete}{159}{\code {complete}} +\entry{compopt}{162}{\code {compopt}} +\entry{fc}{166}{\code {fc}} +\entry{history}{166}{\code {history}} diff --git a/doc/bashref.bts b/doc/bashref.bts index bbea026c..58978448 100644 --- a/doc/bashref.bts +++ b/doc/bashref.bts @@ -15,9 +15,9 @@ \entry{\code {caller}}{61} \entry{\code {cd}}{51} \entry{\code {command}}{61} -\entry{\code {compgen}}{157} -\entry{\code {complete}}{158} -\entry{\code {compopt}}{161} +\entry{\code {compgen}}{158} +\entry{\code {complete}}{159} +\entry{\code {compopt}}{162} \entry{\code {continue}}{52} \initial {D} \entry{\code {declare}}{62} @@ -32,16 +32,16 @@ \entry{\code {export}}{52} \initial {F} \entry{\code {false}}{53} -\entry{\code {fc}}{165} -\entry{\code {fg}}{124} +\entry{\code {fc}}{166} +\entry{\code {fg}}{125} \initial {G} \entry{\code {getopts}}{53} \initial {H} \entry{\code {hash}}{54} \entry{\code {help}}{65} -\entry{\code {history}}{165} +\entry{\code {history}}{166} \initial {J} -\entry{\code {jobs}}{124} +\entry{\code {jobs}}{125} \initial {K} \entry{\code {kill}}{125} \initial {L} @@ -79,4 +79,4 @@ \entry{\code {unalias}}{71} \entry{\code {unset}}{58} \initial {W} -\entry{\code {wait}}{125} +\entry{\code {wait}}{126} diff --git a/doc/bashref.cp b/doc/bashref.cp index 3c0736b3..8e9b61b0 100644 --- a/doc/bashref.cp +++ b/doc/bashref.cp @@ -105,26 +105,26 @@ \entry{foreground}{123}{foreground} \entry{background}{123}{background} \entry{suspending jobs}{123}{suspending jobs} -\entry{Readline, how to use}{126}{Readline, how to use} -\entry{interaction, readline}{127}{interaction, readline} -\entry{notation, readline}{128}{notation, readline} -\entry{command editing}{128}{command editing} -\entry{editing command lines}{128}{editing command lines} -\entry{killing text}{129}{killing text} -\entry{yanking text}{129}{yanking text} -\entry{kill ring}{129}{kill ring} -\entry{initialization file, readline}{130}{initialization file, readline} -\entry{variables, readline}{131}{variables, readline} -\entry{programmable completion}{155}{programmable completion} -\entry{completion builtins}{157}{completion builtins} -\entry{History, how to use}{163}{History, how to use} -\entry{command history}{164}{command history} -\entry{history list}{164}{history list} -\entry{history builtins}{165}{history builtins} -\entry{history expansion}{167}{history expansion} -\entry{event designators}{168}{event designators} -\entry{history events}{168}{history events} -\entry{installation}{171}{installation} -\entry{configuration}{171}{configuration} -\entry{Bash installation}{171}{Bash installation} -\entry{Bash configuration}{171}{Bash configuration} +\entry{Readline, how to use}{127}{Readline, how to use} +\entry{interaction, readline}{128}{interaction, readline} +\entry{notation, readline}{129}{notation, readline} +\entry{command editing}{129}{command editing} +\entry{editing command lines}{129}{editing command lines} +\entry{killing text}{130}{killing text} +\entry{yanking text}{130}{yanking text} +\entry{kill ring}{130}{kill ring} +\entry{initialization file, readline}{131}{initialization file, readline} +\entry{variables, readline}{132}{variables, readline} +\entry{programmable completion}{156}{programmable completion} +\entry{completion builtins}{158}{completion builtins} +\entry{History, how to use}{164}{History, how to use} +\entry{command history}{165}{command history} +\entry{history list}{165}{history list} +\entry{history builtins}{166}{history builtins} +\entry{history expansion}{168}{history expansion} +\entry{event designators}{169}{event designators} +\entry{history events}{169}{history events} +\entry{installation}{172}{installation} +\entry{configuration}{172}{configuration} +\entry{Bash installation}{172}{Bash installation} +\entry{Bash configuration}{172}{Bash configuration} diff --git a/doc/bashref.cps b/doc/bashref.cps index 55a8f772..748d86c5 100644 --- a/doc/bashref.cps +++ b/doc/bashref.cps @@ -7,18 +7,18 @@ \entry{arrays}{108} \initial {B} \entry{background}{123} -\entry{Bash configuration}{171} -\entry{Bash installation}{171} +\entry{Bash configuration}{172} +\entry{Bash installation}{172} \entry{binary arithmetic operators}{106} \entry{bitwise arithmetic operators}{106} \entry{Bourne shell}{5} \entry{brace expansion}{25} \entry{builtin}{3} \initial {C} -\entry{command editing}{128} +\entry{command editing}{129} \entry{command execution}{44} \entry{command expansion}{44} -\entry{command history}{164} +\entry{command history}{165} \entry{command search}{44} \entry{command substitution}{35} \entry{command timing}{10} @@ -33,19 +33,19 @@ \entry{comments, shell}{9} \entry{Compatibility Level}{119} \entry{Compatibility Mode}{119} -\entry{completion builtins}{157} +\entry{completion builtins}{158} \entry{conditional arithmetic operator}{106} -\entry{configuration}{171} +\entry{configuration}{172} \entry{control operator}{3} \entry{coprocess}{18} \initial {D} \entry{directory stack}{110} \entry{dollar-single quote quoting}{6} \initial {E} -\entry{editing command lines}{128} +\entry{editing command lines}{129} \entry{environment}{46} \entry{evaluation, arithmetic}{105} -\entry{event designators}{168} +\entry{event designators}{169} \entry{execution environment}{45} \entry{exit status}{3, 47} \entry{expansion}{24} @@ -64,16 +64,16 @@ \entry{foreground}{123} \entry{functions, shell}{19} \initial {H} -\entry{history builtins}{165} -\entry{history events}{168} -\entry{history expansion}{167} -\entry{history list}{164} -\entry{History, how to use}{163} +\entry{history builtins}{166} +\entry{history events}{169} +\entry{history expansion}{168} +\entry{history list}{165} +\entry{History, how to use}{164} \initial {I} \entry{identifier}{3} -\entry{initialization file, readline}{130} -\entry{installation}{171} -\entry{interaction, readline}{127} +\entry{initialization file, readline}{131} +\entry{installation}{172} +\entry{interaction, readline}{128} \entry{interactive shell}{100, 102} \entry{internationalization}{7} \entry{internationalized scripts}{8} @@ -81,8 +81,8 @@ \entry{job}{3} \entry{job control}{3, 123} \initial {K} -\entry{kill ring}{129} -\entry{killing text}{129} +\entry{kill ring}{130} +\entry{killing text}{130} \initial {L} \entry{localization}{7} \entry{login shell}{100} @@ -92,7 +92,7 @@ \initial {N} \entry{name}{3} \entry{native languages}{7} -\entry{notation, readline}{128} +\entry{notation, readline}{129} \initial {O} \entry{operator, shell}{3} \initial {P} @@ -109,13 +109,13 @@ \entry{process group}{3} \entry{process group ID}{3} \entry{process substitution}{36} -\entry{programmable completion}{155} +\entry{programmable completion}{156} \entry{prompting}{111} \initial {Q} \entry{quoting}{6} \entry{quoting, ANSI}{6} \initial {R} -\entry{Readline, how to use}{126} +\entry{Readline, how to use}{127} \entry{redirection}{40} \entry{reserved word}{3} \entry{reserved words}{9} @@ -141,9 +141,9 @@ \entry{unary arithmetic operators}{106} \initial {V} \entry{variable, shell}{22} -\entry{variables, readline}{131} +\entry{variables, readline}{132} \initial {W} \entry{word}{4} \entry{word splitting}{37} \initial {Y} -\entry{yanking text}{129} +\entry{yanking text}{130} diff --git a/doc/bashref.dvi b/doc/bashref.dvi index cb6ae63e..b7e7d27d 100644 Binary files a/doc/bashref.dvi and b/doc/bashref.dvi differ diff --git a/doc/bashref.fn b/doc/bashref.fn index cb95aad0..a9d8bb26 100644 --- a/doc/bashref.fn +++ b/doc/bashref.fn @@ -1,115 +1,115 @@ -\entry{beginning-of-line (C-a)}{144}{\code {beginning-of-line (C-a)}} -\entry{end-of-line (C-e)}{144}{\code {end-of-line (C-e)}} -\entry{forward-char (C-f)}{144}{\code {forward-char (C-f)}} -\entry{backward-char (C-b)}{144}{\code {backward-char (C-b)}} -\entry{forward-word (M-f)}{144}{\code {forward-word (M-f)}} -\entry{backward-word (M-b)}{144}{\code {backward-word (M-b)}} -\entry{shell-forward-word (M-C-f)}{144}{\code {shell-forward-word (M-C-f)}} -\entry{shell-backward-word (M-C-b)}{144}{\code {shell-backward-word (M-C-b)}} -\entry{previous-screen-line ()}{145}{\code {previous-screen-line ()}} -\entry{next-screen-line ()}{145}{\code {next-screen-line ()}} -\entry{clear-display (M-C-l)}{145}{\code {clear-display (M-C-l)}} -\entry{clear-screen (C-l)}{145}{\code {clear-screen (C-l)}} -\entry{redraw-current-line ()}{145}{\code {redraw-current-line ()}} -\entry{accept-line (Newline or Return)}{145}{\code {accept-line (Newline or Return)}} -\entry{previous-history (C-p)}{145}{\code {previous-history (C-p)}} -\entry{next-history (C-n)}{145}{\code {next-history (C-n)}} -\entry{beginning-of-history (M-<)}{145}{\code {beginning-of-history (M-<)}} -\entry{end-of-history (M->)}{145}{\code {end-of-history (M->)}} -\entry{reverse-search-history (C-r)}{145}{\code {reverse-search-history (C-r)}} -\entry{forward-search-history (C-s)}{145}{\code {forward-search-history (C-s)}} -\entry{non-incremental-reverse-search-history (M-p)}{146}{\code {non-incremental-reverse-search-history (M-p)}} -\entry{non-incremental-forward-search-history (M-n)}{146}{\code {non-incremental-forward-search-history (M-n)}} -\entry{history-search-backward ()}{146}{\code {history-search-backward ()}} -\entry{history-search-forward ()}{146}{\code {history-search-forward ()}} -\entry{history-substring-search-backward ()}{146}{\code {history-substring-search-backward ()}} -\entry{history-substring-search-forward ()}{146}{\code {history-substring-search-forward ()}} -\entry{yank-nth-arg (M-C-y)}{146}{\code {yank-nth-arg (M-C-y)}} -\entry{yank-last-arg (M-. or M-_)}{146}{\code {yank-last-arg (M-. or M-_)}} -\entry{operate-and-get-next (C-o)}{147}{\code {operate-and-get-next (C-o)}} -\entry{fetch-history ()}{147}{\code {fetch-history ()}} -\entry{end-of-file (usually C-d)}{147}{\code {\i {end-of-file} (usually C-d)}} -\entry{delete-char (C-d)}{147}{\code {delete-char (C-d)}} -\entry{backward-delete-char (Rubout)}{147}{\code {backward-delete-char (Rubout)}} -\entry{forward-backward-delete-char ()}{147}{\code {forward-backward-delete-char ()}} -\entry{quoted-insert (C-q or C-v)}{147}{\code {quoted-insert (C-q or C-v)}} -\entry{self-insert (a, b, A, 1, !, ...{})}{147}{\code {self-insert (a, b, A, 1, !, \dots {})}} -\entry{bracketed-paste-begin ()}{147}{\code {bracketed-paste-begin ()}} -\entry{transpose-chars (C-t)}{148}{\code {transpose-chars (C-t)}} -\entry{transpose-words (M-t)}{148}{\code {transpose-words (M-t)}} -\entry{shell-transpose-words (M-C-t)}{148}{\code {shell-transpose-words (M-C-t)}} -\entry{upcase-word (M-u)}{148}{\code {upcase-word (M-u)}} -\entry{downcase-word (M-l)}{148}{\code {downcase-word (M-l)}} -\entry{capitalize-word (M-c)}{148}{\code {capitalize-word (M-c)}} -\entry{overwrite-mode ()}{148}{\code {overwrite-mode ()}} -\entry{kill-line (C-k)}{148}{\code {kill-line (C-k)}} -\entry{backward-kill-line (C-x Rubout)}{148}{\code {backward-kill-line (C-x Rubout)}} -\entry{unix-line-discard (C-u)}{148}{\code {unix-line-discard (C-u)}} -\entry{kill-whole-line ()}{149}{\code {kill-whole-line ()}} -\entry{kill-word (M-d)}{149}{\code {kill-word (M-d)}} -\entry{backward-kill-word (M-DEL)}{149}{\code {backward-kill-word (M-\key {DEL})}} -\entry{shell-kill-word (M-C-d)}{149}{\code {shell-kill-word (M-C-d)}} -\entry{shell-backward-kill-word ()}{149}{\code {shell-backward-kill-word ()}} -\entry{unix-word-rubout (C-w)}{149}{\code {unix-word-rubout (C-w)}} -\entry{unix-filename-rubout ()}{149}{\code {unix-filename-rubout ()}} -\entry{delete-horizontal-space ()}{149}{\code {delete-horizontal-space ()}} -\entry{kill-region ()}{149}{\code {kill-region ()}} -\entry{copy-region-as-kill ()}{149}{\code {copy-region-as-kill ()}} -\entry{copy-backward-word ()}{149}{\code {copy-backward-word ()}} -\entry{copy-forward-word ()}{149}{\code {copy-forward-word ()}} -\entry{yank (C-y)}{149}{\code {yank (C-y)}} -\entry{yank-pop (M-y)}{149}{\code {yank-pop (M-y)}} -\entry{digit-argument (M-0, M-1, ...{} M--)}{150}{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}} -\entry{universal-argument ()}{150}{\code {universal-argument ()}} -\entry{complete (TAB)}{150}{\code {complete (\key {TAB})}} -\entry{possible-completions (M-?)}{150}{\code {possible-completions (M-?)}} -\entry{insert-completions (M-*)}{150}{\code {insert-completions (M-*)}} -\entry{menu-complete ()}{150}{\code {menu-complete ()}} -\entry{menu-complete-backward ()}{151}{\code {menu-complete-backward ()}} -\entry{delete-char-or-list ()}{151}{\code {delete-char-or-list ()}} -\entry{complete-filename (M-/)}{151}{\code {complete-filename (M-/)}} -\entry{possible-filename-completions (C-x /)}{151}{\code {possible-filename-completions (C-x /)}} -\entry{complete-username (M-~)}{151}{\code {complete-username (M-~)}} -\entry{possible-username-completions (C-x ~)}{151}{\code {possible-username-completions (C-x ~)}} -\entry{complete-variable (M-$)}{151}{\code {complete-variable (M-$)}} -\entry{possible-variable-completions (C-x $)}{151}{\code {possible-variable-completions (C-x $)}} -\entry{complete-hostname (M-@)}{151}{\code {complete-hostname (M-@)}} -\entry{possible-hostname-completions (C-x @)}{151}{\code {possible-hostname-completions (C-x @)}} -\entry{complete-command (M-!)}{151}{\code {complete-command (M-!)}} -\entry{possible-command-completions (C-x !)}{151}{\code {possible-command-completions (C-x !)}} -\entry{dynamic-complete-history (M-TAB)}{151}{\code {dynamic-complete-history (M-\key {TAB})}} -\entry{dabbrev-expand ()}{151}{\code {dabbrev-expand ()}} -\entry{complete-into-braces (M-{\indexlbrace })}{152}{\code {complete-into-braces (M-{\tt \char 123})}} -\entry{start-kbd-macro (C-x ()}{152}{\code {start-kbd-macro (C-x ()}} -\entry{end-kbd-macro (C-x ))}{152}{\code {end-kbd-macro (C-x ))}} -\entry{call-last-kbd-macro (C-x e)}{152}{\code {call-last-kbd-macro (C-x e)}} -\entry{print-last-kbd-macro ()}{152}{\code {print-last-kbd-macro ()}} -\entry{re-read-init-file (C-x C-r)}{152}{\code {re-read-init-file (C-x C-r)}} -\entry{abort (C-g)}{152}{\code {abort (C-g)}} -\entry{do-lowercase-version (M-A, M-B, M-x, ...{})}{152}{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}} -\entry{prefix-meta (ESC)}{152}{\code {prefix-meta (\key {ESC})}} -\entry{undo (C-_ or C-x C-u)}{152}{\code {undo (C-_ or C-x C-u)}} -\entry{revert-line (M-r)}{152}{\code {revert-line (M-r)}} -\entry{tilde-expand (M-&)}{152}{\code {tilde-expand (M-&)}} -\entry{set-mark (C-@)}{152}{\code {set-mark (C-@)}} -\entry{exchange-point-and-mark (C-x C-x)}{152}{\code {exchange-point-and-mark (C-x C-x)}} -\entry{character-search (C-])}{153}{\code {character-search (C-])}} -\entry{character-search-backward (M-C-])}{153}{\code {character-search-backward (M-C-])}} -\entry{skip-csi-sequence ()}{153}{\code {skip-csi-sequence ()}} -\entry{insert-comment (M-#)}{153}{\code {insert-comment (M-#)}} -\entry{dump-functions ()}{153}{\code {dump-functions ()}} -\entry{dump-variables ()}{153}{\code {dump-variables ()}} -\entry{dump-macros ()}{153}{\code {dump-macros ()}} -\entry{execute-named-command (M-x)}{153}{\code {execute-named-command (M-x)}} -\entry{spell-correct-word (C-x s)}{154}{\code {spell-correct-word (C-x s)}} -\entry{glob-complete-word (M-g)}{154}{\code {glob-complete-word (M-g)}} -\entry{glob-expand-word (C-x *)}{154}{\code {glob-expand-word (C-x *)}} -\entry{glob-list-expansions (C-x g)}{154}{\code {glob-list-expansions (C-x g)}} -\entry{shell-expand-line (M-C-e)}{154}{\code {shell-expand-line (M-C-e)}} -\entry{history-expand-line (M-^)}{154}{\code {history-expand-line (M-^)}} -\entry{magic-space ()}{154}{\code {magic-space ()}} -\entry{alias-expand-line ()}{154}{\code {alias-expand-line ()}} -\entry{history-and-alias-expand-line ()}{154}{\code {history-and-alias-expand-line ()}} -\entry{insert-last-argument (M-. or M-_)}{154}{\code {insert-last-argument (M-. or M-_)}} -\entry{edit-and-execute-command (C-x C-e)}{154}{\code {edit-and-execute-command (C-x C-e)}} -\entry{display-shell-version (C-x C-v)}{154}{\code {display-shell-version (C-x C-v)}} +\entry{beginning-of-line (C-a)}{145}{\code {beginning-of-line (C-a)}} +\entry{end-of-line (C-e)}{145}{\code {end-of-line (C-e)}} +\entry{forward-char (C-f)}{145}{\code {forward-char (C-f)}} +\entry{backward-char (C-b)}{145}{\code {backward-char (C-b)}} +\entry{forward-word (M-f)}{145}{\code {forward-word (M-f)}} +\entry{backward-word (M-b)}{145}{\code {backward-word (M-b)}} +\entry{shell-forward-word (M-C-f)}{145}{\code {shell-forward-word (M-C-f)}} +\entry{shell-backward-word (M-C-b)}{145}{\code {shell-backward-word (M-C-b)}} +\entry{previous-screen-line ()}{146}{\code {previous-screen-line ()}} +\entry{next-screen-line ()}{146}{\code {next-screen-line ()}} +\entry{clear-display (M-C-l)}{146}{\code {clear-display (M-C-l)}} +\entry{clear-screen (C-l)}{146}{\code {clear-screen (C-l)}} +\entry{redraw-current-line ()}{146}{\code {redraw-current-line ()}} +\entry{accept-line (Newline or Return)}{146}{\code {accept-line (Newline or Return)}} +\entry{previous-history (C-p)}{146}{\code {previous-history (C-p)}} +\entry{next-history (C-n)}{146}{\code {next-history (C-n)}} +\entry{beginning-of-history (M-<)}{146}{\code {beginning-of-history (M-<)}} +\entry{end-of-history (M->)}{146}{\code {end-of-history (M->)}} +\entry{reverse-search-history (C-r)}{146}{\code {reverse-search-history (C-r)}} +\entry{forward-search-history (C-s)}{146}{\code {forward-search-history (C-s)}} +\entry{non-incremental-reverse-search-history (M-p)}{147}{\code {non-incremental-reverse-search-history (M-p)}} +\entry{non-incremental-forward-search-history (M-n)}{147}{\code {non-incremental-forward-search-history (M-n)}} +\entry{history-search-backward ()}{147}{\code {history-search-backward ()}} +\entry{history-search-forward ()}{147}{\code {history-search-forward ()}} +\entry{history-substring-search-backward ()}{147}{\code {history-substring-search-backward ()}} +\entry{history-substring-search-forward ()}{147}{\code {history-substring-search-forward ()}} +\entry{yank-nth-arg (M-C-y)}{147}{\code {yank-nth-arg (M-C-y)}} +\entry{yank-last-arg (M-. or M-_)}{147}{\code {yank-last-arg (M-. or M-_)}} +\entry{operate-and-get-next (C-o)}{148}{\code {operate-and-get-next (C-o)}} +\entry{fetch-history ()}{148}{\code {fetch-history ()}} +\entry{end-of-file (usually C-d)}{148}{\code {\i {end-of-file} (usually C-d)}} +\entry{delete-char (C-d)}{148}{\code {delete-char (C-d)}} +\entry{backward-delete-char (Rubout)}{148}{\code {backward-delete-char (Rubout)}} +\entry{forward-backward-delete-char ()}{148}{\code {forward-backward-delete-char ()}} +\entry{quoted-insert (C-q or C-v)}{148}{\code {quoted-insert (C-q or C-v)}} +\entry{self-insert (a, b, A, 1, !, ...{})}{148}{\code {self-insert (a, b, A, 1, !, \dots {})}} +\entry{bracketed-paste-begin ()}{148}{\code {bracketed-paste-begin ()}} +\entry{transpose-chars (C-t)}{149}{\code {transpose-chars (C-t)}} +\entry{transpose-words (M-t)}{149}{\code {transpose-words (M-t)}} +\entry{shell-transpose-words (M-C-t)}{149}{\code {shell-transpose-words (M-C-t)}} +\entry{upcase-word (M-u)}{149}{\code {upcase-word (M-u)}} +\entry{downcase-word (M-l)}{149}{\code {downcase-word (M-l)}} +\entry{capitalize-word (M-c)}{149}{\code {capitalize-word (M-c)}} +\entry{overwrite-mode ()}{149}{\code {overwrite-mode ()}} +\entry{kill-line (C-k)}{149}{\code {kill-line (C-k)}} +\entry{backward-kill-line (C-x Rubout)}{149}{\code {backward-kill-line (C-x Rubout)}} +\entry{unix-line-discard (C-u)}{149}{\code {unix-line-discard (C-u)}} +\entry{kill-whole-line ()}{150}{\code {kill-whole-line ()}} +\entry{kill-word (M-d)}{150}{\code {kill-word (M-d)}} +\entry{backward-kill-word (M-DEL)}{150}{\code {backward-kill-word (M-\key {DEL})}} +\entry{shell-kill-word (M-C-d)}{150}{\code {shell-kill-word (M-C-d)}} +\entry{shell-backward-kill-word ()}{150}{\code {shell-backward-kill-word ()}} +\entry{unix-word-rubout (C-w)}{150}{\code {unix-word-rubout (C-w)}} +\entry{unix-filename-rubout ()}{150}{\code {unix-filename-rubout ()}} +\entry{delete-horizontal-space ()}{150}{\code {delete-horizontal-space ()}} +\entry{kill-region ()}{150}{\code {kill-region ()}} +\entry{copy-region-as-kill ()}{150}{\code {copy-region-as-kill ()}} +\entry{copy-backward-word ()}{150}{\code {copy-backward-word ()}} +\entry{copy-forward-word ()}{150}{\code {copy-forward-word ()}} +\entry{yank (C-y)}{150}{\code {yank (C-y)}} +\entry{yank-pop (M-y)}{150}{\code {yank-pop (M-y)}} +\entry{digit-argument (M-0, M-1, ...{} M--)}{151}{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}} +\entry{universal-argument ()}{151}{\code {universal-argument ()}} +\entry{complete (TAB)}{151}{\code {complete (\key {TAB})}} +\entry{possible-completions (M-?)}{151}{\code {possible-completions (M-?)}} +\entry{insert-completions (M-*)}{151}{\code {insert-completions (M-*)}} +\entry{menu-complete ()}{151}{\code {menu-complete ()}} +\entry{menu-complete-backward ()}{152}{\code {menu-complete-backward ()}} +\entry{delete-char-or-list ()}{152}{\code {delete-char-or-list ()}} +\entry{complete-filename (M-/)}{152}{\code {complete-filename (M-/)}} +\entry{possible-filename-completions (C-x /)}{152}{\code {possible-filename-completions (C-x /)}} +\entry{complete-username (M-~)}{152}{\code {complete-username (M-~)}} +\entry{possible-username-completions (C-x ~)}{152}{\code {possible-username-completions (C-x ~)}} +\entry{complete-variable (M-$)}{152}{\code {complete-variable (M-$)}} +\entry{possible-variable-completions (C-x $)}{152}{\code {possible-variable-completions (C-x $)}} +\entry{complete-hostname (M-@)}{152}{\code {complete-hostname (M-@)}} +\entry{possible-hostname-completions (C-x @)}{152}{\code {possible-hostname-completions (C-x @)}} +\entry{complete-command (M-!)}{152}{\code {complete-command (M-!)}} +\entry{possible-command-completions (C-x !)}{152}{\code {possible-command-completions (C-x !)}} +\entry{dynamic-complete-history (M-TAB)}{152}{\code {dynamic-complete-history (M-\key {TAB})}} +\entry{dabbrev-expand ()}{152}{\code {dabbrev-expand ()}} +\entry{complete-into-braces (M-{\indexlbrace })}{153}{\code {complete-into-braces (M-{\tt \char 123})}} +\entry{start-kbd-macro (C-x ()}{153}{\code {start-kbd-macro (C-x ()}} +\entry{end-kbd-macro (C-x ))}{153}{\code {end-kbd-macro (C-x ))}} +\entry{call-last-kbd-macro (C-x e)}{153}{\code {call-last-kbd-macro (C-x e)}} +\entry{print-last-kbd-macro ()}{153}{\code {print-last-kbd-macro ()}} +\entry{re-read-init-file (C-x C-r)}{153}{\code {re-read-init-file (C-x C-r)}} +\entry{abort (C-g)}{153}{\code {abort (C-g)}} +\entry{do-lowercase-version (M-A, M-B, M-x, ...{})}{153}{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}} +\entry{prefix-meta (ESC)}{153}{\code {prefix-meta (\key {ESC})}} +\entry{undo (C-_ or C-x C-u)}{153}{\code {undo (C-_ or C-x C-u)}} +\entry{revert-line (M-r)}{153}{\code {revert-line (M-r)}} +\entry{tilde-expand (M-&)}{153}{\code {tilde-expand (M-&)}} +\entry{set-mark (C-@)}{153}{\code {set-mark (C-@)}} +\entry{exchange-point-and-mark (C-x C-x)}{153}{\code {exchange-point-and-mark (C-x C-x)}} +\entry{character-search (C-])}{154}{\code {character-search (C-])}} +\entry{character-search-backward (M-C-])}{154}{\code {character-search-backward (M-C-])}} +\entry{skip-csi-sequence ()}{154}{\code {skip-csi-sequence ()}} +\entry{insert-comment (M-#)}{154}{\code {insert-comment (M-#)}} +\entry{dump-functions ()}{154}{\code {dump-functions ()}} +\entry{dump-variables ()}{154}{\code {dump-variables ()}} +\entry{dump-macros ()}{154}{\code {dump-macros ()}} +\entry{execute-named-command (M-x)}{154}{\code {execute-named-command (M-x)}} +\entry{spell-correct-word (C-x s)}{155}{\code {spell-correct-word (C-x s)}} +\entry{glob-complete-word (M-g)}{155}{\code {glob-complete-word (M-g)}} +\entry{glob-expand-word (C-x *)}{155}{\code {glob-expand-word (C-x *)}} +\entry{glob-list-expansions (C-x g)}{155}{\code {glob-list-expansions (C-x g)}} +\entry{shell-expand-line (M-C-e)}{155}{\code {shell-expand-line (M-C-e)}} +\entry{history-expand-line (M-^)}{155}{\code {history-expand-line (M-^)}} +\entry{magic-space ()}{155}{\code {magic-space ()}} +\entry{alias-expand-line ()}{155}{\code {alias-expand-line ()}} +\entry{history-and-alias-expand-line ()}{155}{\code {history-and-alias-expand-line ()}} +\entry{insert-last-argument (M-. or M-_)}{155}{\code {insert-last-argument (M-. or M-_)}} +\entry{edit-and-execute-command (C-x C-e)}{155}{\code {edit-and-execute-command (C-x C-e)}} +\entry{display-shell-version (C-x C-v)}{155}{\code {display-shell-version (C-x C-v)}} diff --git a/doc/bashref.fns b/doc/bashref.fns index 379faec8..2d51ee53 100644 --- a/doc/bashref.fns +++ b/doc/bashref.fns @@ -1,135 +1,135 @@ \initial {A} -\entry{\code {abort (C-g)}}{152} -\entry{\code {accept-line (Newline or Return)}}{145} -\entry{\code {alias-expand-line ()}}{154} +\entry{\code {abort (C-g)}}{153} +\entry{\code {accept-line (Newline or Return)}}{146} +\entry{\code {alias-expand-line ()}}{155} \initial {B} -\entry{\code {backward-char (C-b)}}{144} -\entry{\code {backward-delete-char (Rubout)}}{147} -\entry{\code {backward-kill-line (C-x Rubout)}}{148} -\entry{\code {backward-kill-word (M-\key {DEL})}}{149} -\entry{\code {backward-word (M-b)}}{144} -\entry{\code {beginning-of-history (M-<)}}{145} -\entry{\code {beginning-of-line (C-a)}}{144} -\entry{\code {bracketed-paste-begin ()}}{147} +\entry{\code {backward-char (C-b)}}{145} +\entry{\code {backward-delete-char (Rubout)}}{148} +\entry{\code {backward-kill-line (C-x Rubout)}}{149} +\entry{\code {backward-kill-word (M-\key {DEL})}}{150} +\entry{\code {backward-word (M-b)}}{145} +\entry{\code {beginning-of-history (M-<)}}{146} +\entry{\code {beginning-of-line (C-a)}}{145} +\entry{\code {bracketed-paste-begin ()}}{148} \initial {C} -\entry{\code {call-last-kbd-macro (C-x e)}}{152} -\entry{\code {capitalize-word (M-c)}}{148} -\entry{\code {character-search (C-])}}{153} -\entry{\code {character-search-backward (M-C-])}}{153} -\entry{\code {clear-display (M-C-l)}}{145} -\entry{\code {clear-screen (C-l)}}{145} -\entry{\code {complete (\key {TAB})}}{150} -\entry{\code {complete-command (M-!)}}{151} -\entry{\code {complete-filename (M-/)}}{151} -\entry{\code {complete-hostname (M-@)}}{151} -\entry{\code {complete-into-braces (M-{\tt \char 123})}}{152} -\entry{\code {complete-username (M-~)}}{151} -\entry{\code {complete-variable (M-$)}}{151} -\entry{\code {copy-backward-word ()}}{149} -\entry{\code {copy-forward-word ()}}{149} -\entry{\code {copy-region-as-kill ()}}{149} +\entry{\code {call-last-kbd-macro (C-x e)}}{153} +\entry{\code {capitalize-word (M-c)}}{149} +\entry{\code {character-search (C-])}}{154} +\entry{\code {character-search-backward (M-C-])}}{154} +\entry{\code {clear-display (M-C-l)}}{146} +\entry{\code {clear-screen (C-l)}}{146} +\entry{\code {complete (\key {TAB})}}{151} +\entry{\code {complete-command (M-!)}}{152} +\entry{\code {complete-filename (M-/)}}{152} +\entry{\code {complete-hostname (M-@)}}{152} +\entry{\code {complete-into-braces (M-{\tt \char 123})}}{153} +\entry{\code {complete-username (M-~)}}{152} +\entry{\code {complete-variable (M-$)}}{152} +\entry{\code {copy-backward-word ()}}{150} +\entry{\code {copy-forward-word ()}}{150} +\entry{\code {copy-region-as-kill ()}}{150} \initial {D} -\entry{\code {dabbrev-expand ()}}{151} -\entry{\code {delete-char (C-d)}}{147} -\entry{\code {delete-char-or-list ()}}{151} -\entry{\code {delete-horizontal-space ()}}{149} -\entry{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{150} -\entry{\code {display-shell-version (C-x C-v)}}{154} -\entry{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}}{152} -\entry{\code {downcase-word (M-l)}}{148} -\entry{\code {dump-functions ()}}{153} -\entry{\code {dump-macros ()}}{153} -\entry{\code {dump-variables ()}}{153} -\entry{\code {dynamic-complete-history (M-\key {TAB})}}{151} +\entry{\code {dabbrev-expand ()}}{152} +\entry{\code {delete-char (C-d)}}{148} +\entry{\code {delete-char-or-list ()}}{152} +\entry{\code {delete-horizontal-space ()}}{150} +\entry{\code {digit-argument (\kbd {M-0}, \kbd {M-1}, \dots {} \kbd {M--})}}{151} +\entry{\code {display-shell-version (C-x C-v)}}{155} +\entry{\code {do-lowercase-version (M-A, M-B, M-\var {x}, \dots {})}}{153} +\entry{\code {downcase-word (M-l)}}{149} +\entry{\code {dump-functions ()}}{154} +\entry{\code {dump-macros ()}}{154} +\entry{\code {dump-variables ()}}{154} +\entry{\code {dynamic-complete-history (M-\key {TAB})}}{152} \initial {E} -\entry{\code {edit-and-execute-command (C-x C-e)}}{154} -\entry{\code {end-kbd-macro (C-x ))}}{152} -\entry{\code {\i {end-of-file} (usually C-d)}}{147} -\entry{\code {end-of-history (M->)}}{145} -\entry{\code {end-of-line (C-e)}}{144} -\entry{\code {exchange-point-and-mark (C-x C-x)}}{152} -\entry{\code {execute-named-command (M-x)}}{153} +\entry{\code {edit-and-execute-command (C-x C-e)}}{155} +\entry{\code {end-kbd-macro (C-x ))}}{153} +\entry{\code {\i {end-of-file} (usually C-d)}}{148} +\entry{\code {end-of-history (M->)}}{146} +\entry{\code {end-of-line (C-e)}}{145} +\entry{\code {exchange-point-and-mark (C-x C-x)}}{153} +\entry{\code {execute-named-command (M-x)}}{154} \initial {F} -\entry{\code {fetch-history ()}}{147} -\entry{\code {forward-backward-delete-char ()}}{147} -\entry{\code {forward-char (C-f)}}{144} -\entry{\code {forward-search-history (C-s)}}{145} -\entry{\code {forward-word (M-f)}}{144} +\entry{\code {fetch-history ()}}{148} +\entry{\code {forward-backward-delete-char ()}}{148} +\entry{\code {forward-char (C-f)}}{145} +\entry{\code {forward-search-history (C-s)}}{146} +\entry{\code {forward-word (M-f)}}{145} \initial {G} -\entry{\code {glob-complete-word (M-g)}}{154} -\entry{\code {glob-expand-word (C-x *)}}{154} -\entry{\code {glob-list-expansions (C-x g)}}{154} +\entry{\code {glob-complete-word (M-g)}}{155} +\entry{\code {glob-expand-word (C-x *)}}{155} +\entry{\code {glob-list-expansions (C-x g)}}{155} \initial {H} -\entry{\code {history-and-alias-expand-line ()}}{154} -\entry{\code {history-expand-line (M-^)}}{154} -\entry{\code {history-search-backward ()}}{146} -\entry{\code {history-search-forward ()}}{146} -\entry{\code {history-substring-search-backward ()}}{146} -\entry{\code {history-substring-search-forward ()}}{146} +\entry{\code {history-and-alias-expand-line ()}}{155} +\entry{\code {history-expand-line (M-^)}}{155} +\entry{\code {history-search-backward ()}}{147} +\entry{\code {history-search-forward ()}}{147} +\entry{\code {history-substring-search-backward ()}}{147} +\entry{\code {history-substring-search-forward ()}}{147} \initial {I} -\entry{\code {insert-comment (M-#)}}{153} -\entry{\code {insert-completions (M-*)}}{150} -\entry{\code {insert-last-argument (M-. or M-_)}}{154} +\entry{\code {insert-comment (M-#)}}{154} +\entry{\code {insert-completions (M-*)}}{151} +\entry{\code {insert-last-argument (M-. or M-_)}}{155} \initial {K} -\entry{\code {kill-line (C-k)}}{148} -\entry{\code {kill-region ()}}{149} -\entry{\code {kill-whole-line ()}}{149} -\entry{\code {kill-word (M-d)}}{149} +\entry{\code {kill-line (C-k)}}{149} +\entry{\code {kill-region ()}}{150} +\entry{\code {kill-whole-line ()}}{150} +\entry{\code {kill-word (M-d)}}{150} \initial {M} -\entry{\code {magic-space ()}}{154} -\entry{\code {menu-complete ()}}{150} -\entry{\code {menu-complete-backward ()}}{151} +\entry{\code {magic-space ()}}{155} +\entry{\code {menu-complete ()}}{151} +\entry{\code {menu-complete-backward ()}}{152} \initial {N} -\entry{\code {next-history (C-n)}}{145} -\entry{\code {next-screen-line ()}}{145} -\entry{\code {non-incremental-forward-search-history (M-n)}}{146} -\entry{\code {non-incremental-reverse-search-history (M-p)}}{146} +\entry{\code {next-history (C-n)}}{146} +\entry{\code {next-screen-line ()}}{146} +\entry{\code {non-incremental-forward-search-history (M-n)}}{147} +\entry{\code {non-incremental-reverse-search-history (M-p)}}{147} \initial {O} -\entry{\code {operate-and-get-next (C-o)}}{147} -\entry{\code {overwrite-mode ()}}{148} +\entry{\code {operate-and-get-next (C-o)}}{148} +\entry{\code {overwrite-mode ()}}{149} \initial {P} -\entry{\code {possible-command-completions (C-x !)}}{151} -\entry{\code {possible-completions (M-?)}}{150} -\entry{\code {possible-filename-completions (C-x /)}}{151} -\entry{\code {possible-hostname-completions (C-x @)}}{151} -\entry{\code {possible-username-completions (C-x ~)}}{151} -\entry{\code {possible-variable-completions (C-x $)}}{151} -\entry{\code {prefix-meta (\key {ESC})}}{152} -\entry{\code {previous-history (C-p)}}{145} -\entry{\code {previous-screen-line ()}}{145} -\entry{\code {print-last-kbd-macro ()}}{152} +\entry{\code {possible-command-completions (C-x !)}}{152} +\entry{\code {possible-completions (M-?)}}{151} +\entry{\code {possible-filename-completions (C-x /)}}{152} +\entry{\code {possible-hostname-completions (C-x @)}}{152} +\entry{\code {possible-username-completions (C-x ~)}}{152} +\entry{\code {possible-variable-completions (C-x $)}}{152} +\entry{\code {prefix-meta (\key {ESC})}}{153} +\entry{\code {previous-history (C-p)}}{146} +\entry{\code {previous-screen-line ()}}{146} +\entry{\code {print-last-kbd-macro ()}}{153} \initial {Q} -\entry{\code {quoted-insert (C-q or C-v)}}{147} +\entry{\code {quoted-insert (C-q or C-v)}}{148} \initial {R} -\entry{\code {re-read-init-file (C-x C-r)}}{152} -\entry{\code {redraw-current-line ()}}{145} -\entry{\code {reverse-search-history (C-r)}}{145} -\entry{\code {revert-line (M-r)}}{152} +\entry{\code {re-read-init-file (C-x C-r)}}{153} +\entry{\code {redraw-current-line ()}}{146} +\entry{\code {reverse-search-history (C-r)}}{146} +\entry{\code {revert-line (M-r)}}{153} \initial {S} -\entry{\code {self-insert (a, b, A, 1, !, \dots {})}}{147} -\entry{\code {set-mark (C-@)}}{152} -\entry{\code {shell-backward-kill-word ()}}{149} -\entry{\code {shell-backward-word (M-C-b)}}{144} -\entry{\code {shell-expand-line (M-C-e)}}{154} -\entry{\code {shell-forward-word (M-C-f)}}{144} -\entry{\code {shell-kill-word (M-C-d)}}{149} -\entry{\code {shell-transpose-words (M-C-t)}}{148} -\entry{\code {skip-csi-sequence ()}}{153} -\entry{\code {spell-correct-word (C-x s)}}{154} -\entry{\code {start-kbd-macro (C-x ()}}{152} +\entry{\code {self-insert (a, b, A, 1, !, \dots {})}}{148} +\entry{\code {set-mark (C-@)}}{153} +\entry{\code {shell-backward-kill-word ()}}{150} +\entry{\code {shell-backward-word (M-C-b)}}{145} +\entry{\code {shell-expand-line (M-C-e)}}{155} +\entry{\code {shell-forward-word (M-C-f)}}{145} +\entry{\code {shell-kill-word (M-C-d)}}{150} +\entry{\code {shell-transpose-words (M-C-t)}}{149} +\entry{\code {skip-csi-sequence ()}}{154} +\entry{\code {spell-correct-word (C-x s)}}{155} +\entry{\code {start-kbd-macro (C-x ()}}{153} \initial {T} -\entry{\code {tilde-expand (M-&)}}{152} -\entry{\code {transpose-chars (C-t)}}{148} -\entry{\code {transpose-words (M-t)}}{148} +\entry{\code {tilde-expand (M-&)}}{153} +\entry{\code {transpose-chars (C-t)}}{149} +\entry{\code {transpose-words (M-t)}}{149} \initial {U} -\entry{\code {undo (C-_ or C-x C-u)}}{152} -\entry{\code {universal-argument ()}}{150} -\entry{\code {unix-filename-rubout ()}}{149} -\entry{\code {unix-line-discard (C-u)}}{148} -\entry{\code {unix-word-rubout (C-w)}}{149} -\entry{\code {upcase-word (M-u)}}{148} +\entry{\code {undo (C-_ or C-x C-u)}}{153} +\entry{\code {universal-argument ()}}{151} +\entry{\code {unix-filename-rubout ()}}{150} +\entry{\code {unix-line-discard (C-u)}}{149} +\entry{\code {unix-word-rubout (C-w)}}{150} +\entry{\code {upcase-word (M-u)}}{149} \initial {Y} -\entry{\code {yank (C-y)}}{149} -\entry{\code {yank-last-arg (M-. or M-_)}}{146} -\entry{\code {yank-nth-arg (M-C-y)}}{146} -\entry{\code {yank-pop (M-y)}}{149} +\entry{\code {yank (C-y)}}{150} +\entry{\code {yank-last-arg (M-. or M-_)}}{147} +\entry{\code {yank-nth-arg (M-C-y)}}{147} +\entry{\code {yank-pop (M-y)}}{150} diff --git a/doc/bashref.html b/doc/bashref.html index 042626b5..1ee4513d 100644 --- a/doc/bashref.html +++ b/doc/bashref.html @@ -4,9 +4,9 @@