diff --git a/CWRU/CWRU.chlog b/CWRU/CWRU.chlog index ad9dd077..73906e1c 100644 --- a/CWRU/CWRU.chlog +++ b/CWRU/CWRU.chlog @@ -6705,6 +6705,9 @@ trap.c - _run_trap_internal,run_exit_trap: save and restore BASH_TRAPSIG; make sure it's set appropriately +doc/bash.1,doc/bashref.texi + - BASH_TRAPSIG: document + builtins/declare.def - declare_internal: if declare is supplied -f and an argument that looks like an assignment statement, fail only if there is not a @@ -7995,3 +7998,34 @@ builtins/enable.def slash in BASH_LOADABLES_PATH, convert it to a pathname with a slash before calling dlopen, to force the loader to look in the current directory (Linux, for example, will not). + + 11/14 + ----- +examples/loadables/fdflags.c + - fdflags_builtin: only parse the setspec once, since parsing uses + strtok. + Report and patch from Emanuele Torre + + 11/15 + ----- +builtins/enable.def + - dyn_load_builtin: if BASH_LOADABLES_PATH is set, use only it: don't + fall back to looking in the current directory. This changes the + historical behavior and brings the path behavior more in line with + PATH, but not CDPATH. + + 11/20 + ----- +lib/readline/complete.c + - rl_complete_internal: add `|' as a character for rl_complete_internal + that also just displays the completions, since `%' is overloaded by + rl_menu_complete + + 11/23 + ----- +examples/loadables/strptime.c + - strptime: new loadable builtin, interface to strptime(3). Takes a + date-time string as its arguments and tries to parse it according + to a number of built-in formats. If successful, it outputs the + result as a number of seconds since the epoch. Understands some + handy shorthands like "now" and "tomorrow". diff --git a/MANIFEST b/MANIFEST index 8bb4a99e..49e69fe4 100644 --- a/MANIFEST +++ b/MANIFEST @@ -338,6 +338,7 @@ lib/malloc/trace.c f lib/malloc/watch.c f lib/malloc/xmalloc.c f lib/malloc/xleaktrace f 755 +lib/malloc/sbrk.c f lib/malloc/stub.c f lib/malloc/i386-alloca.s f lib/malloc/x386-alloca.s f @@ -767,6 +768,7 @@ examples/loadables/seq.c f examples/loadables/setpgid.c f examples/loadables/sleep.c f examples/loadables/strftime.c f +examples/loadables/strptime.c f examples/loadables/truefalse.c f examples/loadables/getconf.h f examples/loadables/getconf.c f diff --git a/aclocal.m4 b/aclocal.m4 index 26af88aa..67ffa5b5 100644 --- a/aclocal.m4 +++ b/aclocal.m4 @@ -2188,6 +2188,43 @@ main(int c, char **v) fi ]) +AC_DEFUN([BASH_FUNC_BRK], +[ + AC_MSG_CHECKING([for brk]) + AC_CACHE_VAL(ac_cv_func_brk, + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[ void *x = brk (0); ]])], + [ac_cv_func_brk=yes],[ac_cv_func_brk=no])]) + AC_MSG_RESULT($ac_cv_func_brk) + if test X$ac_cv_func_brk = Xyes; then + AC_CACHE_CHECK([for working brk], [bash_cv_func_brk], + [AC_RUN_IFELSE([AC_LANG_SOURCE([[ +#include +#include + +int +main(int c, char **v) +{ + void *x; + + x = brk (0); + exit ((x == (void *)-1) ? 1 : 0); +} +]])],[bash_cv_func_brk=yes],[bash_cv_func_brk=no],[AC_MSG_WARN([cannot check working brk if cross-compiling]) + bash_cv_func_brk=yes +])]) + if test $bash_cv_func_brk = no; then + ac_cv_func_brk=no + fi + fi + if test $ac_cv_func_brk = yes; then + AC_DEFINE(HAVE_BRK, 1, + [Define if you have a working brk function.]) + fi +]) + AC_DEFUN(BASH_FUNC_FNMATCH_EQUIV_FALLBACK, [AC_MSG_CHECKING(whether fnmatch can be used to check bracket equivalence classes) AC_CACHE_VAL(bash_cv_fnmatch_equiv_fallback, diff --git a/builtins/enable.def b/builtins/enable.def index bb49fe31..136884bf 100644 --- a/builtins/enable.def +++ b/builtins/enable.def @@ -347,38 +347,32 @@ dyn_load_builtin (WORD_LIST *list, int flags, char *filename) #define RTLD_LAZY 1 #endif - handle = 0; - if (absolute_program (filename) == 0) - { - loadables_path = path_value ("BASH_LOADABLES_PATH", 1); - if (loadables_path) - { - load_path = find_in_path (filename, loadables_path, FS_NODIRS|FS_EXEC_PREFERRED); - if (load_path) - { #if defined (_AIX) - handle = dlopen (load_path, RTLD_NOW|RTLD_GLOBAL); +# define DLFLAGS (RTLD_NOW|RTLD_GLOBAL) #else - handle = dlopen (load_path, RTLD_LAZY); +# define DLFLAGS RTLD_LAZY #endif /* !_AIX */ - free (load_path); - } + + handle = 0; + if (absolute_program (filename)) + handle = dlopen (filename, DLFLAGS); + else if (loadables_path = path_value ("BASH_LOADABLES_PATH", 1)) + { + /* If we have a loadables path, don't fall back to the current directory. */ + load_path = find_in_path (filename, loadables_path, FS_NODIRS|FS_EXEC_PREFERRED); + if (load_path) + { + handle = dlopen (load_path, DLFLAGS); + free (load_path); } } - - /* Fall back to current directory for now */ - if (handle == 0) + else /* no loadables path, look in current directory */ { char *openname; - openname = absolute_program (filename) ? filename : make_absolute (filename, "."); -#if defined (_AIX) - handle = dlopen (openname, RTLD_NOW|RTLD_GLOBAL); -#else - handle = dlopen (openname, RTLD_LAZY); -#endif /* !_AIX */ - if (openname != filename) - free (openname); + openname = make_absolute (filename, "."); + handle = dlopen (openname, DLFLAGS); + free (openname); } if (handle == 0) diff --git a/config.h.in b/config.h.in index ebf3b8f4..f0c8be79 100644 --- a/config.h.in +++ b/config.h.in @@ -480,6 +480,8 @@ /* Define if you have and it defines AUDIT_USER_TTY */ #undef HAVE_DECL_AUDIT_USER_TTY +#undef HAVE_DECL_BRK + #undef HAVE_DECL_CONFSTR #undef HAVE_DECL_PRINTF @@ -574,6 +576,9 @@ /* Define if you have the bcopy function. */ #undef HAVE_BCOPY +/* Define if you have the brk function. */ +#undef HAVE_BRK + /* Define if you have the bzero function. */ #undef HAVE_BZERO diff --git a/configure b/configure index 8f855379..30c2315d 100755 --- a/configure +++ b/configure @@ -1,5 +1,5 @@ #! /bin/sh -# From configure.ac for Bash 5.3, version 5.057. +# From configure.ac for Bash 5.3, version 5.059. # Guess values for system-dependent variables and create Makefiles. # Generated by GNU Autoconf 2.71 for bash 5.3-devel. # @@ -15848,6 +15848,15 @@ else $as_nop fi printf "%s\n" "#define HAVE_DECL_PRINTF $ac_have_decl" >>confdefs.h +ac_fn_check_decl "$LINENO" "brk" "ac_cv_have_decl_brk" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_brk" = xyes +then : + ac_have_decl=1 +else $as_nop + ac_have_decl=0 +fi +printf "%s\n" "#define HAVE_DECL_BRK $ac_have_decl" >>confdefs.h + ac_fn_check_decl "$LINENO" "sbrk" "ac_cv_have_decl_sbrk" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" if test "x$ac_cv_have_decl_sbrk" = xyes then : @@ -15922,7 +15931,7 @@ else $as_nop int main (void) { -long double r; char *foo, bar; r = strtold(foo, &bar); +long double r; char *foo, *bar; r = strtold(foo, &bar); ; return 0; @@ -20099,6 +20108,89 @@ printf "%s\n" "#define HAVE_SBRK 1" >>confdefs.h fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for brk" >&5 +printf %s "checking for brk... " >&6; } + if test ${ac_cv_func_brk+y} +then : + printf %s "(cached) " >&6 +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main (void) +{ + void *x = brk (0); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_func_brk=yes +else $as_nop + ac_cv_func_brk=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_brk" >&5 +printf "%s\n" "$ac_cv_func_brk" >&6; } + if test X$ac_cv_func_brk = Xyes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working brk" >&5 +printf %s "checking for working brk... " >&6; } +if test ${bash_cv_func_brk+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test "$cross_compiling" = yes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot check working brk if cross-compiling" >&5 +printf "%s\n" "$as_me: WARNING: cannot check working brk if cross-compiling" >&2;} + bash_cv_func_brk=yes + +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ + +#include +#include + +int +main(int c, char **v) +{ + void *x; + + x = brk (0); + exit ((x == (void *)-1) ? 1 : 0); +} + +_ACEOF +if ac_fn_c_try_run "$LINENO" +then : + bash_cv_func_brk=yes +else $as_nop + bash_cv_func_brk=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext +fi + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $bash_cv_func_brk" >&5 +printf "%s\n" "$bash_cv_func_brk" >&6; } + if test $bash_cv_func_brk = no; then + ac_cv_func_brk=no + fi + fi + if test $ac_cv_func_brk = yes; then + +printf "%s\n" "#define HAVE_BRK 1" >>confdefs.h + + fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the existence of strsignal" >&5 printf %s "checking for the existence of strsignal... " >&6; } if test ${bash_cv_have_strsignal+y} diff --git a/configure.ac b/configure.ac index fa5f5747..c25a8088 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.057])dnl +AC_REVISION([for Bash 5.3, version 5.059])dnl define(bashvers, 5.3) define(relstatus, devel) @@ -884,6 +884,7 @@ AC_CHECK_DECLS([AUDIT_USER_TTY],,, [[#include ]]) AC_CHECK_DECLS([confstr]) AC_CHECK_DECLS([printf]) +AC_CHECK_DECLS([brk]) AC_CHECK_DECLS([sbrk]) AC_CHECK_DECLS([setregid]) AC_CHECK_DECLS([strcpy]) @@ -898,7 +899,7 @@ AC_CHECK_DECLS([strtold], [ [AC_COMPILE_IFELSE( [AC_LANG_PROGRAM( [[#include ]], - [[long double r; char *foo, bar; r = strtold(foo, &bar);]] + [[long double r; char *foo, *bar; r = strtold(foo, &bar);]] )], [bash_cv_strtold_broken=no],[bash_cv_strtold_broken=yes]) ] @@ -1072,6 +1073,7 @@ BASH_STAT_TIME dnl checks for system calls BASH_FUNC_SBRK +BASH_FUNC_BRK dnl presence and behavior of C library functions BASH_FUNC_STRSIGNAL diff --git a/doc/bash.0 b/doc/bash.0 index f280c69d..3c0b2979 100644 --- a/doc/bash.0 +++ b/doc/bash.0 @@ -1214,7 +1214,7 @@ PPAARRAAMMEETTEERRSS value of this variable specifies the sort criteria and sort or- der for the results of pathname expansion. If this variable is unset or set to the null string, pathname expansion uses the - historial behavior of sorting by name. If set, a valid value + historical behavior of sorting by name. If set, a valid value begins with an optional _+, which is ignored, or _-, which re- verses the sort order from ascending to descending, followed by a sort specifier. The valid sort specifiers are _n_a_m_e, _s_i_z_e, @@ -5127,184 +5127,185 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS shared object _f_i_l_e_n_a_m_e, on systems that support dynamic loading. 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 is system-dependent. The --dd option will - delete a builtin previously loaded with --ff. If no _n_a_m_e argu- - ments are given, or if the --pp option is supplied, a list of - shell builtins is printed. With no other option arguments, the - list consists of all enabled shell builtins. If --nn is supplied, - only disabled builtins are printed. If --aa is supplied, the list - printed includes all builtins, with an indication of whether or - not each is enabled. If --ss is supplied, the output is re- - stricted to the POSIX _s_p_e_c_i_a_l builtins. If no options are sup- - plied 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 there is an error loading a new - builtin from a shared object. + _n_a_m_e, if _f_i_l_e_n_a_m_e does not contain a slash. The default is sys- + tem-dependent, and may include "." to force a search of the cur- + rent directory. The --dd option will delete a builtin previously + loaded with --ff. If no _n_a_m_e arguments are given, or if the --pp + option is supplied, a list of shell builtins is printed. With + no other option arguments, the list consists of all enabled + shell builtins. If --nn is supplied, only disabled builtins are + printed. If --aa is supplied, the list printed includes all + builtins, with an indication of whether or not each is enabled. + If --ss is supplied, the output is restricted to the POSIX _s_p_e_c_i_a_l + builtins. 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 there + is an error loading a new builtin from a shared object. eevvaall [_a_r_g ...] - The _a_r_gs are read and concatenated together into a single com- - mand. This command is then read and executed by the shell, and - its exit status is returned as the value of eevvaall. If there are + The _a_r_gs are read and concatenated together into a single com- + mand. This command is then read and executed by the shell, and + its exit status is returned as the value of eevvaall. If there are no _a_r_g_s, or only null arguments, eevvaall returns 0. eexxeecc [--ccll] [--aa _n_a_m_e] [_c_o_m_m_a_n_d [_a_r_g_u_m_e_n_t_s]] - If _c_o_m_m_a_n_d is specified, it replaces the shell. No new process - is created. The _a_r_g_u_m_e_n_t_s become the arguments to _c_o_m_m_a_n_d. If + If _c_o_m_m_a_n_d is specified, it replaces the shell. No new process + is created. The _a_r_g_u_m_e_n_t_s become the arguments to _c_o_m_m_a_n_d. If the --ll option is supplied, the shell places a dash at the begin- ning of the zeroth 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 environment. If --aa is supplied, the shell passes _n_a_m_e + _g_i_n(1) does. The --cc option causes _c_o_m_m_a_n_d to be executed with + an empty environment. If --aa is supplied, the shell passes _n_a_m_e as the zeroth argument to the executed command. If _c_o_m_m_a_n_d can- - not be executed for some reason, a non-interactive shell exits, - unless the eexxeeccffaaiill shell option is enabled. In that case, it - returns failure. An interactive shell returns failure 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 + not be executed for some reason, a non-interactive shell exits, + unless the eexxeeccffaaiill shell option is enabled. In that case, it + returns failure. An interactive shell returns failure 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 redirection error, the return status is 1. eexxiitt [_n] - Cause the shell to exit with a status of _n. If _n is omitted, + Cause the shell to exit with a status of _n. If _n is omitted, the exit status is that of the last command executed. A trap on EEXXIITT is executed before the shell terminates. eexxppoorrtt [--ffnn] [_n_a_m_e[=_w_o_r_d]] ... eexxppoorrtt --pp - The supplied _n_a_m_e_s are marked for automatic export to the envi- - ronment of subsequently executed commands. If the --ff option is - given, the _n_a_m_e_s refer to functions. If no _n_a_m_e_s are given, or - if the --pp option is supplied, a list of names of all exported - variables is printed. The --nn option causes the export property + The supplied _n_a_m_e_s are marked for automatic export to the envi- + ronment of subsequently executed commands. If the --ff option is + given, the _n_a_m_e_s refer to functions. If no _n_a_m_e_s are given, or + if the --pp option is supplied, a list of names of all exported + variables is printed. The --nn option causes the export property to be removed from each _n_a_m_e. If a variable name is followed by =_w_o_r_d, the value of the variable is set to _w_o_r_d. eexxppoorrtt returns an exit status of 0 unless an invalid option is encountered, one - of the _n_a_m_e_s is not a valid shell variable name, or --ff is sup- + of the _n_a_m_e_s is not a valid shell variable name, or --ff is sup- plied with a _n_a_m_e that is not a function. ffaallssee Does nothing, returns a non-zero status. 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 - 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); otherwise 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 + 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); otherwise 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. - The --nn option suppresses the command numbers when listing. The - --rr option reverses the order of the commands. If the --ll option - is given, the commands are listed on standard output. Other- - wise, the editor given by _e_n_a_m_e is invoked on a file containing - those commands. If _e_n_a_m_e is not given, the value of the FFCCEEDDIITT - variable is used, and the value of EEDDIITTOORR if FFCCEEDDIITT is not set. - If neither variable is set, _v_i is used. When editing is com- + The --nn option suppresses the command numbers when listing. The + --rr option reverses the order of the commands. If the --ll option + is given, the commands are listed on standard output. Other- + wise, the editor given by _e_n_a_m_e is invoked on a file containing + those commands. If _e_n_a_m_e is not given, the value of the FFCCEEDDIITT + variable is used, and the value of EEDDIITTOORR if FFCCEEDDIITT is not set. + If neither variable is set, _v_i is used. When editing is com- plete, the edited commands are echoed and executed. - In the second form, _c_o_m_m_a_n_d is re-executed after each instance - of _p_a_t is replaced by _r_e_p. _C_o_m_m_a_n_d is interpreted the same as - _f_i_r_s_t above. A useful alias to use with this is ``r="fc -s"'', - so that typing ``r cc'' runs the last command beginning with + In the second form, _c_o_m_m_a_n_d is re-executed after each instance + of _p_a_t is replaced by _r_e_p. _C_o_m_m_a_n_d is interpreted the same as + _f_i_r_s_t above. A useful alias to use with this is ``r="fc -s"'', + so that typing ``r cc'' runs the last command beginning with ``cc'' and typing ``r'' re-executes the last command. - If the first form is used, the return value is 0 unless an in- - valid option is encountered or _f_i_r_s_t or _l_a_s_t specify history - lines out of range. If the --ee option is supplied, the return + If the first form is used, the return value is 0 unless an in- + valid option is encountered or _f_i_r_s_t or _l_a_s_t specify history + lines out of range. If the --ee option is supplied, the return value is the value of the last command executed or failure if an error occurs with the temporary file of commands. If the second - form is used, the return status is that of the command re-exe- - cuted, unless _c_m_d does not specify a valid history line, in + form is used, the return status is that of the command re-exe- + cuted, unless _c_m_d does not specify a valid history line, in which case ffcc returns failure. ffgg [_j_o_b_s_p_e_c] - Resume _j_o_b_s_p_e_c in the foreground, and make it the current job. + Resume _j_o_b_s_p_e_c in the foreground, and make it the current job. If _j_o_b_s_p_e_c is not present, the shell's notion of the _c_u_r_r_e_n_t _j_o_b - is used. The return value is that of the command placed into - the foreground, or failure if run when job control is disabled + is used. The return value is that of the command placed into + the foreground, or failure if run when job control is disabled or, when run with job control enabled, if _j_o_b_s_p_e_c does not spec- - ify a valid job or _j_o_b_s_p_e_c specifies a job that was started + ify a valid job or _j_o_b_s_p_e_c specifies a job that was started without job control. ggeettooppttss _o_p_t_s_t_r_i_n_g _n_a_m_e [_a_r_g _._._.] - ggeettooppttss is used by shell procedures to parse positional parame- - ters. _o_p_t_s_t_r_i_n_g contains the option characters to be recog- - nized; if a character is followed by a colon, the option is ex- + ggeettooppttss is used by shell procedures to parse positional parame- + ters. _o_p_t_s_t_r_i_n_g contains the option characters to be recog- + nized; if a character is followed by a colon, the option is ex- pected to have an argument, which should be separated from it by - white space. The colon and question mark characters may not be - used as option characters. Each time it is invoked, ggeettooppttss - places the next option in the shell variable _n_a_m_e, initializing + white space. The colon and question mark characters may not be + used as option characters. Each time it is invoked, ggeettooppttss + places the next option in the shell variable _n_a_m_e, initializing _n_a_m_e if it does not exist, and the index of the next argument to be processed into the variable OOPPTTIINNDD. OOPPTTIINNDD is initialized to 1 each time the shell or a shell script is invoked. When an op- tion requires an argument, ggeettooppttss places that argument into the variable OOPPTTAARRGG. The shell does not reset OOPPTTIINNDD automatically; - it must be manually reset between multiple calls to ggeettooppttss - within the same shell invocation if a new set of parameters is + it must be manually reset between multiple calls to ggeettooppttss + within the same shell invocation if a new set of parameters is to be used. When the end of options is encountered, ggeettooppttss exits with a re- turn value greater than zero. OOPPTTIINNDD is set to the index of the first non-option argument, and _n_a_m_e is set to ?. - ggeettooppttss normally parses the positional parameters, but if more - arguments are supplied as _a_r_g values, ggeettooppttss parses those in- + ggeettooppttss normally parses the positional parameters, but if more + arguments are supplied as _a_r_g values, ggeettooppttss parses those in- stead. - ggeettooppttss can report errors in two ways. If the first character - of _o_p_t_s_t_r_i_n_g is a colon, _s_i_l_e_n_t error reporting is used. In - normal operation, diagnostic messages are printed when invalid - options or missing option arguments are encountered. If the - variable OOPPTTEERRRR is set to 0, no error messages will be dis- + ggeettooppttss can report errors in two ways. If the first character + of _o_p_t_s_t_r_i_n_g is a colon, _s_i_l_e_n_t error reporting is used. In + normal operation, diagnostic messages are printed when invalid + options or missing option arguments are encountered. If the + variable OOPPTTEERRRR is set to 0, no error messages will be dis- played, even if the first character of _o_p_t_s_t_r_i_n_g is not a colon. If an invalid option is seen, ggeettooppttss places ? into _n_a_m_e and, if - not silent, prints an error message and unsets OOPPTTAARRGG. If - ggeettooppttss is silent, the option character found is placed in OOPP-- + not silent, prints an error message and unsets OOPPTTAARRGG. If + ggeettooppttss is silent, the option character found is placed in OOPP-- TTAARRGG and no diagnostic message is printed. - If a required argument is not found, and ggeettooppttss is not silent, - a question mark (??) is placed in _n_a_m_e, OOPPTTAARRGG is unset, and a - diagnostic message is printed. If ggeettooppttss is silent, then a - colon (::) is placed in _n_a_m_e and OOPPTTAARRGG is set to the option + If a required argument is not found, and ggeettooppttss is not silent, + a question mark (??) is placed in _n_a_m_e, OOPPTTAARRGG is unset, and a + diagnostic message is printed. If ggeettooppttss is silent, then a + colon (::) is placed in _n_a_m_e and OOPPTTAARRGG is set to the option character found. - ggeettooppttss returns true if an option, specified or unspecified, is + ggeettooppttss returns true if an option, specified or unspecified, is found. It returns false if the end of options is encountered or an error occurs. hhaasshh [--llrr] [--pp _f_i_l_e_n_a_m_e] [--ddtt] [_n_a_m_e] Each time hhaasshh is invoked, the full pathname of the command _n_a_m_e - is determined by searching the directories in $$PPAATTHH and remem- + is determined by searching the directories in $$PPAATTHH and remem- bered. Any previously-remembered pathname is discarded. If the - --pp option is supplied, hhaasshh uses _f_i_l_e_n_a_m_e as the full filename - of the command. The --rr option causes the shell to forget all - remembered locations. Assigning to the PPAATTHH variable also - clears all hashed filenames. The --dd option causes the shell to - forget the remembered location of each _n_a_m_e. If the --tt option + --pp option is supplied, hhaasshh uses _f_i_l_e_n_a_m_e as the full filename + of the command. The --rr option causes the shell to forget all + remembered locations. Assigning to the PPAATTHH variable also + clears all hashed filenames. The --dd option causes the shell to + forget the remembered location of each _n_a_m_e. If the --tt option is supplied, the full pathname to which each _n_a_m_e corresponds is - printed. If multiple _n_a_m_e arguments are supplied with --tt, the - _n_a_m_e is printed before the hashed full pathname. The --ll option - causes output to be displayed in a format that may be reused as - input. If no arguments are given, or if only --ll is supplied, - information about remembered commands is printed. The --tt, --dd, - and --pp options (the options that act on the _n_a_m_e arguments) are - mutually exclusive. Only one will be active. If more than one + printed. If multiple _n_a_m_e arguments are supplied with --tt, the + _n_a_m_e is printed before the hashed full pathname. The --ll option + causes output to be displayed in a format that may be reused as + input. If no arguments are given, or if only --ll is supplied, + information about remembered commands is printed. The --tt, --dd, + and --pp options (the options that act on the _n_a_m_e arguments) are + mutually exclusive. Only one will be active. If more than one is supplied, --tt has higher priority than --pp, and both are higher - priority than --dd. The return status is true unless a _n_a_m_e is + priority than --dd. The return status is true unless a _n_a_m_e is not found or an invalid option is supplied. hheellpp [--ddmmss] [_p_a_t_t_e_r_n] - Display helpful information about builtin commands. If _p_a_t_t_e_r_n - is specified, hheellpp gives detailed help on all commands matching - _p_a_t_t_e_r_n; otherwise help for all the builtins and shell control + Display helpful information about builtin commands. If _p_a_t_t_e_r_n + is specified, hheellpp gives detailed help on all commands matching + _p_a_t_t_e_r_n; otherwise help for all the builtins and shell control structures is printed. --dd Display a short description of each _p_a_t_t_e_r_n --mm Display the description of each _p_a_t_t_e_r_n in a manpage-like @@ -5322,55 +5323,55 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS hhiissttoorryy --ss _a_r_g [_a_r_g _._._.] With no options, display the command history list with line num- bers. Lines listed with a ** have been modified. An argument of - _n lists only the last _n lines. If the shell variable HHIISSTTTTIIMMEE-- - FFOORRMMAATT is set and not null, it is used as a format string for - _s_t_r_f_t_i_m_e(3) to display the time stamp associated with each dis- - played history entry. No intervening blank is printed between - the formatted time stamp and the history line. If _f_i_l_e_n_a_m_e is - supplied, it is used as the name of the history file; if not, - the value of HHIISSTTFFIILLEE is used. If _f_i_l_e_n_a_m_e is not supplied and - HHIISSTTFFIILLEE is unset or null, the --aa,, --nn,, --rr,, and --ww options have + _n lists only the last _n lines. If the shell variable HHIISSTTTTIIMMEE-- + FFOORRMMAATT is set and not null, it is used as a format string for + _s_t_r_f_t_i_m_e(3) to display the time stamp associated with each dis- + played history entry. No intervening blank is printed between + the formatted time stamp and the history line. If _f_i_l_e_n_a_m_e is + supplied, it is used as the name of the history file; if not, + the value of HHIISSTTFFIILLEE is used. If _f_i_l_e_n_a_m_e is not supplied and + HHIISSTTFFIILLEE is unset or null, the --aa,, --nn,, --rr,, and --ww options have no effect. Options, if supplied, have the following meanings: --cc Clear the history list by deleting all the entries. --dd _o_f_f_s_e_t - Delete the history entry at position _o_f_f_s_e_t. If _o_f_f_s_e_t + Delete the history entry at position _o_f_f_s_e_t. If _o_f_f_s_e_t is negative, it is interpreted as relative to one greater than the last history position, so negative indices count - back from the end of the history, and an index of -1 + back from the end of the history, and an index of -1 refers to the current hhiissttoorryy --dd command. --dd _s_t_a_r_t-_e_n_d - Delete the range of history entries between positions - _s_t_a_r_t and _e_n_d, inclusive. Positive and negative values + Delete the range of history entries between positions + _s_t_a_r_t and _e_n_d, inclusive. Positive and negative values for _s_t_a_r_t and _e_n_d are interpreted as described above. - --aa Append the ``new'' history lines to the history file. - These are history lines entered since the beginning of + --aa Append the ``new'' history lines to the history file. + These are history lines entered since the beginning of the current bbaasshh session, but not already appended to the history file. - --nn Read the history lines not already read from the history - file into the current history list. These are lines ap- - pended to the history file since the beginning of the + --nn Read the history lines not already read from the history + file into the current history list. These are lines ap- + pended to the history file since the beginning of the current bbaasshh session. - --rr Read the contents of the history file and append them to + --rr Read the contents of the history file and append them to the current history list. --ww Write the current history list to the history file, over- writing the history file's contents. - --pp Perform history substitution on the following _a_r_g_s and - display the result on the standard output. Does not - store the results in the history list. Each _a_r_g must be + --pp Perform history substitution on the following _a_r_g_s and + display the result on the standard output. Does not + store the results in the history list. Each _a_r_g must be quoted to disable normal history expansion. - --ss Store the _a_r_g_s in the history list as a single entry. - The last command in the history list is removed before + --ss Store the _a_r_g_s in the history list as a single entry. + The last command in the history list is removed before the _a_r_g_s are added. - If the HHIISSTTTTIIMMEEFFOORRMMAATT variable is set, the time stamp informa- - tion associated with each history entry is written to the his- - tory file, marked with the history comment character. When the - history file is read, lines beginning with the history comment - character followed immediately by a digit are interpreted as + If the HHIISSTTTTIIMMEEFFOORRMMAATT variable is set, the time stamp informa- + tion associated with each history entry is written to the his- + tory file, marked with the history comment character. 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 entry. The return value is 0 unless an invalid option is encountered, an error occurs while - reading or writing the history file, an invalid _o_f_f_s_e_t or range - is supplied as an argument to --dd, or the history expansion sup- + reading or writing the history file, an invalid _o_f_f_s_e_t or range + is supplied as an argument to --dd, or the history expansion sup- plied as an argument to --pp fails. jjoobbss [--llnnpprrss] [ _j_o_b_s_p_e_c ... ] @@ -5378,15 +5379,15 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS The first form lists the active jobs. The options have the fol- lowing meanings: --ll List process IDs in addition to the normal information. - --nn Display information only about jobs that have changed + --nn Display information only about jobs that have changed status since the user was last notified of their status. - --pp List only the process ID of the job's process group + --pp List only the process ID of the job's process group leader. --rr Display only running jobs. --ss Display only stopped jobs. - If _j_o_b_s_p_e_c is given, output is restricted to information about - that job. The return status is 0 unless an invalid option is + If _j_o_b_s_p_e_c is given, output is restricted to information about + that job. The return status is 0 unless an invalid option is encountered or an invalid _j_o_b_s_p_e_c is supplied. If the --xx option is supplied, jjoobbss replaces any _j_o_b_s_p_e_c found in @@ -5395,269 +5396,269 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS kkiillll [--ss _s_i_g_s_p_e_c | --nn _s_i_g_n_u_m | --_s_i_g_s_p_e_c] [_p_i_d | _j_o_b_s_p_e_c] ... kkiillll --ll|--LL [_s_i_g_s_p_e_c | _e_x_i_t___s_t_a_t_u_s] - Send the signal named by _s_i_g_s_p_e_c or _s_i_g_n_u_m to the processes - named by _p_i_d or _j_o_b_s_p_e_c. _s_i_g_s_p_e_c is either a case-insensitive - signal name such as SSIIGGKKIILLLL (with or without the SSIIGG prefix) or - a signal number; _s_i_g_n_u_m is a signal number. If _s_i_g_s_p_e_c is not - present, then SSIIGGTTEERRMM is assumed. An argument of --ll lists the - signal names. If any arguments are supplied when --ll is given, - the names of the signals corresponding to the arguments are + Send the signal named by _s_i_g_s_p_e_c or _s_i_g_n_u_m to the processes + named by _p_i_d or _j_o_b_s_p_e_c. _s_i_g_s_p_e_c is either a case-insensitive + signal name such as SSIIGGKKIILLLL (with or without the SSIIGG prefix) or + a signal number; _s_i_g_n_u_m is a signal number. If _s_i_g_s_p_e_c is not + present, then SSIIGGTTEERRMM is assumed. An argument of --ll lists the + signal names. If any arguments are supplied when --ll is given, + the names of the signals corresponding to the arguments are listed, and the return status is 0. The _e_x_i_t___s_t_a_t_u_s argument to - --ll is a number specifying either a signal number or the exit - status of a process terminated by a signal. The --LL option is - equivalent to --ll. kkiillll returns true if at least one signal was + --ll is a number specifying either a signal number or the exit + status of a process terminated by a signal. 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 op- tion is encountered. lleett _a_r_g [_a_r_g ...] Each _a_r_g is an arithmetic expression to be evaluated (see AARRIITTHH-- - MMEETTIICC EEVVAALLUUAATTIIOONN above). If the last _a_r_g evaluates to 0, lleett + MMEETTIICC EEVVAALLUUAATTIIOONN above). If the last _a_r_g evaluates to 0, lleett returns 1; 0 is returned otherwise. llooccaall [_o_p_t_i_o_n] [_n_a_m_e[=_v_a_l_u_e] ... | - ] - For each argument, a local variable named _n_a_m_e is created, and - assigned _v_a_l_u_e. The _o_p_t_i_o_n can be any of the options accepted + For each argument, a local variable named _n_a_m_e is created, and + assigned _v_a_l_u_e. The _o_p_t_i_o_n can be any of the options accepted by ddeeccllaarree. When llooccaall is used within a function, it causes the - variable _n_a_m_e to have a visible scope restricted to that func- - tion and its children. If _n_a_m_e is -, the set of shell options - is made local to the function in which llooccaall is invoked: shell - options changed using the sseett builtin inside the function after + variable _n_a_m_e to have a visible scope restricted to that func- + tion and its children. If _n_a_m_e is -, the set of shell options + is made local to the function in which llooccaall is invoked: shell + options changed using the sseett builtin inside the function after the call to llooccaall are restored to their original values when the function returns. The restore is effected as if a series of sseett - commands were executed to restore the values that were in place - before the function. With no operands, llooccaall writes a list of - local variables to the standard output. It is an error to use + commands were executed to restore the values that were in place + before the function. With no operands, llooccaall writes a list of + local variables to the standard output. It is an error to use llooccaall when not within a function. The return status is 0 unless - llooccaall is used outside a function, an invalid _n_a_m_e is supplied, + llooccaall is used outside a function, an invalid _n_a_m_e is supplied, or _n_a_m_e is a readonly variable. llooggoouutt Exit a login shell. - mmaappffiillee [--dd _d_e_l_i_m] [--nn _c_o_u_n_t] [--OO _o_r_i_g_i_n] [--ss _c_o_u_n_t] [--tt] [--uu _f_d] [--CC + mmaappffiillee [--dd _d_e_l_i_m] [--nn _c_o_u_n_t] [--OO _o_r_i_g_i_n] [--ss _c_o_u_n_t] [--tt] [--uu _f_d] [--CC _c_a_l_l_b_a_c_k] [--cc _q_u_a_n_t_u_m] [_a_r_r_a_y] rreeaaddaarrrraayy [--dd _d_e_l_i_m] [--nn _c_o_u_n_t] [--OO _o_r_i_g_i_n] [--ss _c_o_u_n_t] [--tt] [--uu _f_d] [--CC _c_a_l_l_b_a_c_k] [--cc _q_u_a_n_t_u_m] [_a_r_r_a_y] - Read lines from the standard input into the indexed array vari- - able _a_r_r_a_y, or from file descriptor _f_d if the --uu option is sup- - plied. The variable MMAAPPFFIILLEE is the default _a_r_r_a_y. Options, if + Read lines from the standard input into the indexed array vari- + able _a_r_r_a_y, or from file descriptor _f_d if the --uu option is sup- + plied. The variable MMAAPPFFIILLEE is the default _a_r_r_a_y. Options, if supplied, have the following meanings: - --dd The first character of _d_e_l_i_m is used to terminate each - input line, rather than newline. If _d_e_l_i_m is the empty + --dd The first character of _d_e_l_i_m is used to terminate each + input line, rather than newline. If _d_e_l_i_m is the empty string, mmaappffiillee will terminate a line when it reads a NUL character. - --nn Copy at most _c_o_u_n_t lines. If _c_o_u_n_t is 0, all lines are + --nn Copy at most _c_o_u_n_t lines. If _c_o_u_n_t is 0, all lines are copied. - --OO Begin assigning to _a_r_r_a_y at index _o_r_i_g_i_n. The default + --OO Begin assigning to _a_r_r_a_y at index _o_r_i_g_i_n. The default index is 0. --ss Discard the first _c_o_u_n_t lines read. - --tt Remove a trailing _d_e_l_i_m (default newline) from each line + --tt Remove a trailing _d_e_l_i_m (default newline) from each line read. - --uu Read lines from file descriptor _f_d instead of the stan- + --uu Read lines from file descriptor _f_d instead of the stan- dard input. - --CC Evaluate _c_a_l_l_b_a_c_k each time _q_u_a_n_t_u_m lines are read. The + --CC Evaluate _c_a_l_l_b_a_c_k each time _q_u_a_n_t_u_m lines are read. The --cc option specifies _q_u_a_n_t_u_m. - --cc Specify the number of lines read between each call to + --cc Specify the number of lines read between each call to _c_a_l_l_b_a_c_k. - If --CC is specified without --cc, the default quantum is 5000. + If --CC is specified without --cc, the default quantum is 5000. When _c_a_l_l_b_a_c_k is evaluated, it is supplied the index of the next array element to be assigned and the line to be assigned to that - element as additional arguments. _c_a_l_l_b_a_c_k is evaluated after + element as additional arguments. _c_a_l_l_b_a_c_k is evaluated after the line is read but before the array element is assigned. - If not supplied with an explicit origin, mmaappffiillee will clear _a_r_- + If not supplied with an explicit origin, mmaappffiillee will clear _a_r_- _r_a_y before assigning to it. - mmaappffiillee returns successfully unless an invalid option or option - argument is supplied, _a_r_r_a_y is invalid or unassignable, or if + mmaappffiillee returns successfully unless an invalid option or option + argument is supplied, _a_r_r_a_y is invalid or unassignable, or if _a_r_r_a_y is not an indexed array. ppooppdd [-nn] [+_n] [-_n] Removes entries from the directory stack. The elements are num- - bered from 0 starting at the first directory listed by ddiirrss. - With no arguments, ppooppdd removes the top directory from the + bered from 0 starting at the first directory listed by ddiirrss. + With no arguments, ppooppdd removes the top directory from the stack, and changes to the new top directory. Arguments, if sup- plied, have the following meanings: - --nn Suppresses the normal change of directory when removing + --nn Suppresses the normal change of directory when removing directories from the stack, so that only the stack is ma- nipulated. - ++_n Removes the _nth entry counting from the left of the list - shown by ddiirrss, starting with zero, from the stack. For - example: ``popd +0'' removes the first directory, ``popd + ++_n Removes the _nth entry counting from the left of the list + shown by ddiirrss, starting with zero, from the stack. For + example: ``popd +0'' removes the first directory, ``popd +1'' the second. --_n Removes the _nth entry counting from the right of the list - shown by ddiirrss, starting with zero. For example: ``popd - -0'' removes the last directory, ``popd -1'' the next to + shown by ddiirrss, starting with zero. For example: ``popd + -0'' removes the last directory, ``popd -1'' the next to last. - If the top element of the directory stack is modified, and the - _-_n option was not supplied, ppooppdd uses the ccdd builtin to change + If the top element of the directory stack is modified, and the + _-_n option was not supplied, ppooppdd uses the ccdd builtin to change to the directory at the top of the stack. If the ccdd fails, ppooppdd returns a non-zero value. - Otherwise, ppooppdd returns false if an invalid option is encoun- + Otherwise, ppooppdd returns false if an invalid option is encoun- tered, the directory stack is empty, or a non-existent directory stack entry is specified. - If the ppooppdd command is successful, bash runs ddiirrss to show the - final contents of the directory stack, and the return status is + If the ppooppdd command is successful, bash runs ddiirrss to show the + final contents of the directory stack, and the return status is 0. pprriinnttff [--vv _v_a_r] _f_o_r_m_a_t [_a_r_g_u_m_e_n_t_s] - Write the formatted _a_r_g_u_m_e_n_t_s to the standard output under the - control of the _f_o_r_m_a_t. The --vv option causes the output to be - assigned to the variable _v_a_r rather than being printed to the + Write the formatted _a_r_g_u_m_e_n_t_s to the standard output under the + control of the _f_o_r_m_a_t. The --vv option causes the output to be + assigned to the variable _v_a_r rather than being printed to the standard output. - The _f_o_r_m_a_t is a character string which contains three types of - objects: plain characters, which are simply copied to standard - output, character escape sequences, which are converted and - copied to the standard output, and format specifications, each - of which causes printing of the next successive _a_r_g_u_m_e_n_t. In + The _f_o_r_m_a_t is a character string which contains three types of + objects: plain characters, which are simply copied to standard + output, character escape sequences, which are converted and + copied to the standard output, and format specifications, each + of which causes printing of the next successive _a_r_g_u_m_e_n_t. In addition to the standard _p_r_i_n_t_f(3) format characters ccssnnddiioouuxxXXee-- EEffFFggGGaaAA, pprriinnttff interprets the following additional format spec- ifiers: %%bb causes pprriinnttff to expand backslash escape sequences in the corresponding _a_r_g_u_m_e_n_t in the same way as eecchhoo --ee. - %%qq causes pprriinnttff to output the corresponding _a_r_g_u_m_e_n_t in a - format that can be reused as shell input. %%qq and %%QQ use - the $$'''' quoting style if any characters in the argument - string require it, and backslash quoting otherwise. If - the format string uses the _p_r_i_n_t_f alternate form, these + %%qq causes pprriinnttff to output the corresponding _a_r_g_u_m_e_n_t in a + format that can be reused as shell input. %%qq and %%QQ use + the $$'''' quoting style if any characters in the argument + string require it, and backslash quoting otherwise. If + the format string uses the _p_r_i_n_t_f alternate form, these two formats quote the argument string using single quotes. - %%QQ like %%qq, but applies any supplied precision to the _a_r_g_u_- + %%QQ like %%qq, but applies any supplied precision to the _a_r_g_u_- _m_e_n_t before quoting it. %%((_d_a_t_e_f_m_t))TT - causes pprriinnttff to output the date-time string resulting - from using _d_a_t_e_f_m_t as a format string for _s_t_r_f_t_i_m_e(3). + causes pprriinnttff to output the date-time string resulting + from using _d_a_t_e_f_m_t as a format string for _s_t_r_f_t_i_m_e(3). The corresponding _a_r_g_u_m_e_n_t is an integer representing the - number of seconds since the epoch. Two special argument - values may be used: -1 represents the current time, and - -2 represents the time the shell was invoked. If no ar- + number of seconds since the epoch. Two special argument + values may be used: -1 represents the current time, and + -2 represents the time the shell was invoked. If no ar- gument is specified, conversion behaves as if -1 had been - given. This is an exception to the usual pprriinnttff behav- + given. This is an exception to the usual pprriinnttff behav- ior. The %b, %q, and %T format specifiers all use the field width and precision arguments from the format specification and write that - many bytes from (or use that wide a field for) the expanded ar- - gument, which usually contains more characters than the origi- + many bytes from (or use that wide a field for) the expanded ar- + gument, which usually contains more characters than the origi- nal. The %n format specifier accepts a corresponding argument that is treated as a shell variable name. - The %s and %c format specifiers accept an l (long) modifier, + The %s and %c format specifiers accept an l (long) modifier, which forces them to convert the argument string to a wide-char- acter string and apply any supplied field width and precision in terms of characters, not bytes. - Arguments to non-string format specifiers are treated as C con- + Arguments to non-string format specifiers are treated as C con- stants, except that a leading plus or minus sign is allowed, and - if the leading character is a single or double quote, the value + if the leading character is a single or double quote, the value is the ASCII value of the following character. - The _f_o_r_m_a_t is reused as necessary to consume all of the _a_r_g_u_- + The _f_o_r_m_a_t is reused as necessary to consume all of the _a_r_g_u_- _m_e_n_t_s. If the _f_o_r_m_a_t requires more _a_r_g_u_m_e_n_t_s than are supplied, - the extra format specifications behave as if a zero value or - null string, as appropriate, had been supplied. The return - value is zero on success, non-zero if an invalid option is sup- + the extra format specifications behave as if a zero value or + null string, as appropriate, had been supplied. The return + value is zero on success, non-zero if an invalid option is sup- plied or a write or assignment error occurs. ppuusshhdd [--nn] [+_n] [-_n] ppuusshhdd [--nn] [_d_i_r] - Adds a directory to the top of the directory stack, or rotates - the stack, making the new top of the stack the current working - directory. With no arguments, ppuusshhdd exchanges the top two ele- - ments of the directory stack. Arguments, if supplied, have the + Adds a directory to the top of the directory stack, or rotates + the stack, making the new top of the stack the current working + directory. With no arguments, ppuusshhdd exchanges the top two ele- + ments of the directory stack. Arguments, if supplied, have the following meanings: - --nn Suppresses the normal change of directory when rotating - or adding directories to the stack, so that only the + --nn Suppresses the normal change of directory when rotating + or adding directories to the stack, so that only the stack is manipulated. - ++_n Rotates the stack so that the _nth directory (counting - from the left of the list shown by ddiirrss, starting with + ++_n Rotates the stack so that the _nth directory (counting + from the left of the list shown by ddiirrss, starting with zero) is at the top. - --_n Rotates the stack so that the _nth directory (counting - from the right of the list shown by ddiirrss, starting with + --_n Rotates the stack so that the _nth directory (counting + from the right of the list shown by ddiirrss, starting with zero) is at the top. _d_i_r Adds _d_i_r to the directory stack at the top After the stack has been modified, if the --nn option was not sup- - plied, ppuusshhdd uses the ccdd builtin to change to the directory at + plied, ppuusshhdd uses the ccdd builtin to change to the directory at the top of the stack. If the ccdd fails, ppuusshhdd returns a non-zero value. - Otherwise, if no arguments are supplied, ppuusshhdd returns 0 unless - the directory stack is empty. When rotating the directory - stack, ppuusshhdd returns 0 unless the directory stack is empty or a + Otherwise, if no arguments are supplied, ppuusshhdd returns 0 unless + the directory stack is empty. When rotating the directory + stack, ppuusshhdd returns 0 unless the directory stack is empty or a non-existent directory stack element is specified. - If the ppuusshhdd command is successful, bash runs ddiirrss to show the + If the ppuusshhdd command is successful, bash runs ddiirrss to show the final contents of the directory stack. ppwwdd [--LLPP] - Print the absolute pathname of the current working directory. + Print the absolute pathname of the current working directory. The pathname printed contains no symbolic links if the --PP option is supplied or the --oo pphhyyssiiccaall option to the sseett builtin command - is enabled. If the --LL option is used, the pathname printed may - contain symbolic links. The return status is 0 unless an error + is enabled. If the --LL option is used, the pathname printed may + contain symbolic links. The return status is 0 unless an error occurs while reading the name of the current directory or an in- valid option is supplied. - rreeaadd [--EEeerrss] [--aa _a_n_a_m_e] [--dd _d_e_l_i_m] [--ii _t_e_x_t] [--nn _n_c_h_a_r_s] [--NN _n_c_h_a_r_s] + rreeaadd [--EEeerrss] [--aa _a_n_a_m_e] [--dd _d_e_l_i_m] [--ii _t_e_x_t] [--nn _n_c_h_a_r_s] [--NN _n_c_h_a_r_s] [--pp _p_r_o_m_p_t] [--tt _t_i_m_e_o_u_t] [--uu _f_d] [_n_a_m_e ...] - One line is read from the standard input, or from the file de- + One line is read from the standard input, or from the file de- scriptor _f_d supplied as an argument to the --uu option, split into - words as described above under WWoorrdd SSpplliittttiinngg, and the first - word is assigned to the first _n_a_m_e, the second word to the sec- - ond _n_a_m_e, and so on. If there are more words than names, the + words as described above under WWoorrdd SSpplliittttiinngg, and the first + word is assigned to the first _n_a_m_e, the second word to the sec- + ond _n_a_m_e, and so on. If there are more words than names, the remaining words and their intervening delimiters are assigned to - the last _n_a_m_e. If there are fewer words read from the input - stream than names, the remaining names are assigned empty val- - ues. The characters in IIFFSS are used to split the line into - words using the same rules the shell uses for expansion (de- - scribed above under WWoorrdd SSpplliittttiinngg). The backslash character + the last _n_a_m_e. If there are fewer words read from the input + stream than names, the remaining names are assigned empty val- + ues. The characters in IIFFSS are used to split the line into + words using the same rules the shell uses for expansion (de- + scribed above under WWoorrdd SSpplliittttiinngg). The backslash character (\\) may be used to remove any special meaning for the next char- - acter read and for line continuation. Options, if supplied, + acter read and for line continuation. Options, if supplied, have the following meanings: --aa _a_n_a_m_e The words are assigned to sequential indices of the array variable _a_n_a_m_e, starting at 0. _a_n_a_m_e is unset before any - new values are assigned. Other _n_a_m_e arguments are ig- + new values are assigned. Other _n_a_m_e arguments are ig- nored. --dd _d_e_l_i_m The first character of _d_e_l_i_m is used to terminate the in- - put line, rather than newline. If _d_e_l_i_m is the empty - string, rreeaadd will terminate a line when it reads a NUL + put line, rather than newline. If _d_e_l_i_m is the empty + string, rreeaadd will terminate a line when it reads a NUL character. - --ee If the standard input is coming from a terminal, rreeaadd - uses rreeaaddlliinnee (see RREEAADDLLIINNEE above) to obtain the line. - Readline uses the current (or default, if line editing - was not previously active) editing settings, but uses + --ee If the standard input is coming from a terminal, rreeaadd + uses rreeaaddlliinnee (see RREEAADDLLIINNEE above) to obtain the line. + Readline uses the current (or default, if line editing + was not previously active) editing settings, but uses readline's default filename completion. - --EE If the standard input is coming from a terminal, rreeaadd - uses rreeaaddlliinnee (see RREEAADDLLIINNEE above) to obtain the line. - Readline uses the current (or default, if line editing - was not previously active) editing settings, but uses + --EE If the standard input is coming from a terminal, rreeaadd + uses rreeaaddlliinnee (see RREEAADDLLIINNEE above) to obtain the line. + Readline uses the current (or default, if line editing + was not previously active) editing settings, but uses bash's default completion, including programmable comple- tion. --ii _t_e_x_t - If rreeaaddlliinnee is being used to read the line, _t_e_x_t is + If rreeaaddlliinnee is being used to read the line, _t_e_x_t is placed into the editing buffer before editing begins. --nn _n_c_h_a_r_s - rreeaadd returns after reading _n_c_h_a_r_s characters rather than + rreeaadd returns after reading _n_c_h_a_r_s characters rather than waiting for a complete line of input, but honors a delim- - iter if fewer than _n_c_h_a_r_s characters are read before the + iter if fewer than _n_c_h_a_r_s characters are read before the delimiter. --NN _n_c_h_a_r_s - rreeaadd returns after reading exactly _n_c_h_a_r_s characters - rather than waiting for a complete line of input, unless - EOF is encountered or rreeaadd times out. Delimiter charac- - ters encountered in the input are not treated specially - and do not cause rreeaadd to return until _n_c_h_a_r_s characters - are read. The result is not split on the characters in - IIFFSS; the intent is that the variable is assigned exactly + rreeaadd returns after reading exactly _n_c_h_a_r_s characters + rather than waiting for a complete line of input, unless + EOF is encountered or rreeaadd times out. Delimiter charac- + ters encountered in the input are not treated specially + and do not cause rreeaadd to return until _n_c_h_a_r_s characters + are read. The result is not split on the characters in + IIFFSS; the intent is that the variable is assigned exactly the characters read (with the exception of backslash; see the --rr option below). --pp _p_r_o_m_p_t @@ -5665,134 +5666,134 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS line, before attempting to read any input. The prompt is displayed only if input is coming from a terminal. --rr Backslash does not act as an escape character. The back- - slash is considered to be part of the line. In particu- - lar, a backslash-newline pair may not then be used as a + slash is considered to be part of the line. In particu- + lar, a backslash-newline pair may not then be used as a line continuation. --ss Silent mode. If input is coming from a terminal, charac- ters are not echoed. --tt _t_i_m_e_o_u_t - Cause rreeaadd to time out and return failure if a complete - line of input (or a specified number of characters) is - not read within _t_i_m_e_o_u_t seconds. _t_i_m_e_o_u_t may be a deci- - mal number with a fractional portion following the deci- - mal point. This option is only effective if rreeaadd is - reading input from a terminal, pipe, or other special - file; it has no effect when reading from regular files. + Cause rreeaadd to time out and return failure if a complete + line of input (or a specified number of characters) is + not read within _t_i_m_e_o_u_t seconds. _t_i_m_e_o_u_t may be a deci- + mal number with a fractional portion following the deci- + mal point. This option is only effective if rreeaadd is + reading input from a terminal, pipe, or other special + file; it has no effect when reading from regular files. If rreeaadd times out, rreeaadd saves any partial input read into - the specified variable _n_a_m_e. If _t_i_m_e_o_u_t is 0, rreeaadd re- - turns immediately, without trying to read any data. The - exit status is 0 if input is available on the specified - file descriptor, or the read will return EOF, non-zero - otherwise. The exit status is greater than 128 if the + the specified variable _n_a_m_e. If _t_i_m_e_o_u_t is 0, rreeaadd re- + turns immediately, without trying to read any data. The + exit status is 0 if input is available on the specified + file descriptor, or the read will return EOF, non-zero + otherwise. The exit status is greater than 128 if the timeout is exceeded. --uu _f_d Read input from file descriptor _f_d. - If no _n_a_m_e_s are supplied, the line read, without the ending de- - limiter but otherwise unmodified, is assigned to the variable - RREEPPLLYY. The exit status is zero, unless end-of-file is encoun- - tered, rreeaadd times out (in which case the status is greater than - 128), a variable assignment error (such as assigning to a read- + If no _n_a_m_e_s are supplied, the line read, without the ending de- + limiter but otherwise unmodified, is assigned to the variable + RREEPPLLYY. The exit status is zero, unless end-of-file is encoun- + tered, rreeaadd times out (in which case the status is greater than + 128), a variable assignment error (such as assigning to a read- only variable) occurs, or an invalid file descriptor is supplied as the argument to --uu. rreeaaddoonnllyy [--aaAAff] [--pp] [_n_a_m_e[=_w_o_r_d] ...] - The given _n_a_m_e_s are marked readonly; the values of these _n_a_m_e_s - may not be changed by subsequent assignment. If the --ff option - is supplied, the functions corresponding to the _n_a_m_e_s are so - marked. The --aa option restricts the variables to indexed ar- - rays; the --AA option restricts the variables to associative ar- + The given _n_a_m_e_s are marked readonly; the values of these _n_a_m_e_s + may not be changed by subsequent assignment. If the --ff option + is supplied, the functions corresponding to the _n_a_m_e_s are so + marked. The --aa option restricts the variables to indexed ar- + rays; the --AA option restricts the variables to associative ar- rays. If both options are supplied, --AA takes precedence. If no - _n_a_m_e arguments are given, or if the --pp option is supplied, a + _n_a_m_e arguments are given, or if the --pp option is supplied, a list of all readonly names is printed. The other options may be - used to restrict the output to a subset of the set of readonly - names. The --pp option causes output to be displayed in a format - that may be reused as input. If a variable name is followed by - =_w_o_r_d, the value of the variable is set to _w_o_r_d. The return - status is 0 unless an invalid option is encountered, one of the + used to restrict the output to a subset of the set of readonly + names. The --pp option causes output to be displayed in a format + that may be reused as input. If a variable name is followed by + =_w_o_r_d, the value of the variable is set to _w_o_r_d. The return + status is 0 unless an invalid option is encountered, one of the _n_a_m_e_s is not a valid shell variable name, or --ff is supplied with a _n_a_m_e that is not a function. rreettuurrnn [_n] - Causes a function to stop executing and return the value speci- - fied by _n to its caller. If _n is omitted, the return status is - that of the last command executed in the function body. If rree-- + Causes a function to stop executing and return the value speci- + fied by _n to its caller. If _n is omitted, the return status is + that of the last command executed in the function body. If rree-- ttuurrnn is executed by a trap handler, the last command used to de- - termine the status is the last command executed before the trap - handler. If rreettuurrnn is executed during a DDEEBBUUGG trap, the last - command used to determine the status is the last command exe- - cuted by the trap handler before rreettuurrnn was invoked. If rreettuurrnn - is used outside a function, but during execution of a script by - the .. (ssoouurrccee) command, it causes the shell to stop executing - that script and return either _n or the exit status of the last - command executed within the script as the exit status of the + termine the status is the last command executed before the trap + handler. If rreettuurrnn is executed during a DDEEBBUUGG trap, the last + command used to determine the status is the last command exe- + cuted by the trap handler before rreettuurrnn was invoked. If rreettuurrnn + is used outside a function, but during execution of a script by + the .. (ssoouurrccee) command, it causes the shell to stop executing + that script and return either _n or the exit status of the last + command executed within the script as the exit status of the script. If _n is supplied, the return value is its least signif- - icant 8 bits. The return status is non-zero if rreettuurrnn is sup- - plied a non-numeric argument, or is used outside a function and - not during execution of a script by .. or ssoouurrccee. Any command + icant 8 bits. The return status is non-zero if rreettuurrnn is sup- + plied a non-numeric argument, or is used outside a function and + not during execution of a script by .. or ssoouurrccee. Any command associated with the RREETTUURRNN trap is executed before execution re- sumes after the function or script. sseett [--aabbeeffhhkkmmnnppttuuvvxxBBCCEEHHPPTT] [--oo _o_p_t_i_o_n_-_n_a_m_e] [----] [--] [_a_r_g ...] sseett [++aabbeeffhhkkmmnnppttuuvvxxBBCCEEHHPPTT] [++oo _o_p_t_i_o_n_-_n_a_m_e] [----] [--] [_a_r_g ...] sseett --oo - sseett ++oo Without options, display the name and value of each shell vari- - able in a format that can be reused as input for setting or re- + sseett ++oo Without options, display the name and value of each shell vari- + able in a format that can be reused as input for setting or re- setting the currently-set variables. Read-only variables cannot - be reset. In _p_o_s_i_x _m_o_d_e, only shell variables are listed. The - output is sorted according to the current locale. When options - are specified, they set or unset shell attributes. Any argu- - ments remaining after option processing are treated as values + be reset. In _p_o_s_i_x _m_o_d_e, only shell variables are listed. The + output is sorted according to the current locale. When options + are specified, they set or unset shell attributes. Any argu- + ments remaining after option processing are treated as values for the positional parameters and are assigned, in order, to $$11, - $$22, ...... $$_n. Options, if specified, have the following mean- + $$22, ...... $$_n. Options, if specified, have the following mean- ings: --aa Each variable or function that is created or modified is - given the export attribute and marked for export to the + given the export attribute and marked for export to the environment of subsequent commands. - --bb Report the status of terminated background jobs immedi- + --bb Report the status of terminated background jobs immedi- ately, rather than before the next primary prompt. This is effective only when job control is enabled. - --ee Exit immediately if a _p_i_p_e_l_i_n_e (which may consist of a - single _s_i_m_p_l_e _c_o_m_m_a_n_d), a _l_i_s_t, or a _c_o_m_p_o_u_n_d _c_o_m_m_a_n_d + --ee Exit immediately if a _p_i_p_e_l_i_n_e (which may consist of a + single _s_i_m_p_l_e _c_o_m_m_a_n_d), a _l_i_s_t, or a _c_o_m_p_o_u_n_d _c_o_m_m_a_n_d (see SSHHEELLLL GGRRAAMMMMAARR above), exits with a non-zero status. - The shell does not exit if the command that fails is - part of the command list immediately following a wwhhiillee - or uunnttiill keyword, part of the test following the iiff or - eelliiff reserved words, part of any command executed in a - &&&& or |||| list except the command following the final &&&& + The shell does not exit if the command that fails is + part of the command list immediately following a wwhhiillee + or uunnttiill keyword, part of the test following the iiff or + eelliiff reserved words, part of any command executed in a + &&&& or |||| list except the command following the final &&&& or ||||, any command in a pipeline but the last, or if the - command's return value is being inverted with !!. If a - compound command other than a subshell returns a non- - zero status because a command failed while --ee was being - ignored, the shell does not exit. A trap on EERRRR, if - set, is executed before the shell exits. This option + command's return value is being inverted with !!. If a + compound command other than a subshell returns a non- + zero status because a command failed while --ee was being + ignored, the shell does not exit. A trap on EERRRR, if + set, is executed before the shell exits. This option applies to the shell environment and each subshell envi- - ronment separately (see CCOOMMMMAANNDD EEXXEECCUUTTIIOONN EENNVVIIRROONNMMEENNTT + ronment separately (see CCOOMMMMAANNDD EEXXEECCUUTTIIOONN EENNVVIIRROONNMMEENNTT above), and may cause subshells to exit before executing all the commands in the subshell. - If a compound command or shell function executes in a - context where --ee is being ignored, none of the commands - executed within the compound command or function body - will be affected by the --ee setting, even if --ee is set - and a command returns a failure status. If a compound - command or shell function sets --ee while executing in a - context where --ee is ignored, that setting will not have - any effect until the compound command or the command + If a compound command or shell function executes in a + context where --ee is being ignored, none of the commands + executed within the compound command or function body + will be affected by the --ee setting, even if --ee is set + and a command returns a failure status. If a compound + command or shell function sets --ee while executing in a + context where --ee is ignored, that setting will not have + any effect until the compound command or the command containing the function call completes. --ff Disable pathname expansion. - --hh Remember the location of commands as they are looked up + --hh Remember the location of commands as they are looked up for execution. This is enabled by default. - --kk All arguments in the form of assignment statements are - placed in the environment for a command, not just those + --kk All arguments in the form of assignment statements are + placed in the environment for a command, not just those that precede the command name. - --mm Monitor mode. Job control is enabled. This option is - on by default for interactive shells on systems that - support it (see JJOOBB CCOONNTTRROOLL above). All processes run + --mm Monitor mode. Job control is enabled. This option is + on by default for interactive shells on systems that + support it (see JJOOBB CCOONNTTRROOLL above). All processes run in a separate process group. When a background job com- pletes, the shell prints a line containing its exit sta- tus. --nn Read commands but do not execute them. This may be used - to check a shell script for syntax errors. This is ig- + to check a shell script for syntax errors. This is ig- nored by interactive shells. --oo _o_p_t_i_o_n_-_n_a_m_e The _o_p_t_i_o_n_-_n_a_m_e can be one of the following: @@ -5800,10 +5801,10 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS Same as --aa. bbrraacceeeexxppaanndd Same as --BB. - eemmaaccss Use an emacs-style command line editing inter- + eemmaaccss Use an emacs-style command line editing inter- face. This is enabled by default when the shell is interactive, unless the shell is started with - the ----nnooeeddiittiinngg option. This also affects the + the ----nnooeeddiittiinngg option. This also affects the editing interface used for rreeaadd --ee. eerrrreexxiitt Same as --ee. eerrrrttrraaccee @@ -5817,8 +5818,8 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS HHIISSTTOORRYY. This option is on by default in inter- active shells. iiggnnoorreeeeooff - The effect is as if the shell command ``IG- - NOREEOF=10'' had been executed (see SShheellll VVaarrii-- + The effect is as if the shell command ``IG- + NOREEOF=10'' had been executed (see SShheellll VVaarrii-- aabblleess above). kkeeyywwoorrdd Same as --kk. mmoonniittoorr Same as --mm. @@ -5833,178 +5834,178 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS pphhyyssiiccaall Same as --PP. ppiippeeffaaiill - If set, the return value of a pipeline is the - value of the last (rightmost) command to exit - with a non-zero status, or zero if all commands - in the pipeline exit successfully. This option + If set, the return value of a pipeline is the + value of the last (rightmost) command to exit + with a non-zero status, or zero if all commands + in the pipeline exit successfully. This option is disabled by default. - ppoossiixx Change the behavior of bbaasshh where the default - operation differs from the POSIX standard to - match the standard (_p_o_s_i_x _m_o_d_e). See SSEEEE AALLSSOO + ppoossiixx Change the behavior of bbaasshh where the default + operation differs from the POSIX standard to + match the standard (_p_o_s_i_x _m_o_d_e). See SSEEEE AALLSSOO below for a reference to a document that details how posix mode affects bash's behavior. pprriivviilleeggeedd Same as --pp. vveerrbboossee Same as --vv. - vvii Use a vi-style command line editing interface. + vvii Use a vi-style command line editing interface. This also affects the editing interface used for rreeaadd --ee. xxttrraaccee Same as --xx. - If --oo is supplied with no _o_p_t_i_o_n_-_n_a_m_e, sseett prints the - current shell option settings. If ++oo is supplied with - no _o_p_t_i_o_n_-_n_a_m_e, sseett prints a series of sseett commands to - recreate the current option settings on the standard + If --oo is supplied with no _o_p_t_i_o_n_-_n_a_m_e, sseett prints the + current shell option settings. If ++oo is supplied with + no _o_p_t_i_o_n_-_n_a_m_e, sseett prints a series of sseett commands to + recreate the current option settings on the standard output. - --pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and - $$BBAASSHH__EENNVV files are not processed, shell functions are - not inherited from the environment, and the SSHHEELLLLOOPPTTSS, - BBAASSHHOOPPTTSS, CCDDPPAATTHH, and GGLLOOBBIIGGNNOORREE variables, if they ap- - pear in the environment, are ignored. If the shell is - started with the effective user (group) id not equal to - the real user (group) id, and the --pp option is not sup- + --pp Turn on _p_r_i_v_i_l_e_g_e_d mode. In this mode, the $$EENNVV and + $$BBAASSHH__EENNVV files are not processed, shell functions are + not inherited from the environment, and the SSHHEELLLLOOPPTTSS, + BBAASSHHOOPPTTSS, CCDDPPAATTHH, and GGLLOOBBIIGGNNOORREE variables, if they ap- + pear in the environment, are ignored. If the shell is + started with the effective user (group) id not equal to + the real user (group) id, and the --pp option is not sup- plied, these actions are taken and the effective user id - is set to the real user id. If the --pp option is sup- - plied at startup, the effective user id is not reset. - Turning this option off causes the effective user and + is set to the real user id. If the --pp option is sup- + plied at startup, the effective user id is not reset. + Turning this option off causes the effective user and group ids to be set to the real user and group ids. --rr Enable restricted shell mode. This option cannot be un- set once it has been set. --tt Exit after reading and executing one command. --uu Treat unset variables and parameters other than the spe- - cial parameters "@" and "*", or array variables sub- - scripted with "@" or "*", as an error when performing - parameter expansion. If expansion is attempted on an - unset variable or parameter, the shell prints an error - message, and, if not interactive, exits with a non-zero + cial parameters "@" and "*", or array variables sub- + scripted with "@" or "*", as an error when performing + parameter expansion. If expansion is attempted on an + unset variable or parameter, the shell prints an error + message, and, if not interactive, exits with a non-zero status. --vv Print shell input lines as they are read. - --xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee + --xx After expanding each _s_i_m_p_l_e _c_o_m_m_a_n_d, ffoorr command, ccaassee command, sseelleecctt command, or arithmetic ffoorr command, dis- - play the expanded value of PPSS44, followed by the command - and its expanded arguments or associated word list, to + play the expanded value of PPSS44, followed by the command + and its expanded arguments or associated word list, to standard error. - --BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn + --BB The shell performs brace expansion (see BBrraaccee EExxppaannssiioonn above). This is on by default. - --CC If set, bbaasshh does not overwrite an existing file with - the >>, >>&&, and <<>> redirection operators. This may be + --CC If set, bbaasshh does not overwrite an existing file with + the >>, >>&&, and <<>> redirection operators. This may be overridden when creating output files by using the redi- rection operator >>|| instead of >>. --EE If set, any trap on EERRRR is inherited by shell functions, - command substitutions, and commands executed in a sub- - shell environment. The EERRRR trap is normally not inher- + command substitutions, and commands executed in a sub- + shell environment. The EERRRR trap is normally not inher- ited in such cases. --HH Enable !! style history substitution. This option is on by default when the shell is interactive. - --PP If set, the shell does not resolve symbolic links when - executing commands such as ccdd that change the current + --PP If set, the shell does not resolve symbolic links when + executing commands such as ccdd that change the current working directory. It uses the physical directory structure instead. By default, bbaasshh follows the logical - chain of directories when performing commands which + chain of directories when performing commands which change the current directory. - --TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by + --TT If set, any traps on DDEEBBUUGG and RREETTUURRNN are inherited by shell functions, command substitutions, and commands ex- - ecuted in a subshell environment. The DDEEBBUUGG and RREETTUURRNN + ecuted in a subshell environment. The DDEEBBUUGG and RREETTUURRNN traps are normally not inherited in such cases. - ---- If no arguments follow this option, then the positional + ---- If no arguments follow this option, then the positional parameters are unset. Otherwise, the positional parame- - ters are set to the _a_r_gs, even if some of them begin + ters are set to the _a_r_gs, even if some of them begin with a --. - -- Signal the end of options, cause all remaining _a_r_gs to + -- Signal the end of options, cause all remaining _a_r_gs to be assigned to the positional parameters. The --xx and --vv options are turned off. If there are no _a_r_gs, the posi- tional parameters remain unchanged. - The options are off by default unless otherwise noted. Using + - rather than - causes these options to be turned off. The op- + The options are off by default unless otherwise noted. Using + + rather than - causes these options to be turned off. The op- tions can also be specified as arguments to an invocation of the - shell. The current set of options may be found in $$--. The re- - turn status is always true unless an invalid option is encoun- + shell. The current set of options may be found in $$--. The re- + turn status is always true unless an invalid option is encoun- tered. sshhiifftt [_n] - The positional parameters from _n+1 ... are renamed to $$11 ........ - Parameters represented by the numbers $$## down to $$##-_n+1 are un- - set. _n must be a non-negative number less than or equal to $$##. - If _n is 0, no parameters are changed. If _n is not given, it is + The positional parameters from _n+1 ... are renamed to $$11 ........ + Parameters represented by the numbers $$## down to $$##-_n+1 are un- + set. _n must be a non-negative number less than or equal to $$##. + If _n is 0, no parameters are changed. If _n is not given, it is assumed to be 1. If _n is greater than $$##, the positional param- - eters are not changed. The return status is greater than zero + eters are not changed. The return status is greater than zero if _n is greater than $$## or less than zero; otherwise 0. sshhoopptt [--ppqqssuu] [--oo] [_o_p_t_n_a_m_e ...] - Toggle the values of settings controlling optional shell behav- - ior. The settings can be either those listed below, or, if the + Toggle the values of settings controlling optional shell behav- + ior. The settings can be either those listed below, or, if the --oo option is used, those available with the --oo option to the sseett builtin command. With no options, or with the --pp option, a list - of all settable options is displayed, with an indication of + of all settable options is displayed, with an indication of whether or not each is set; if _o_p_t_n_a_m_e_s are supplied, the output - is restricted to those options. The --pp option causes output to - be displayed in a form that may be reused as input. Other op- + is restricted to those options. The --pp option causes output to + be displayed in a form that may be reused as input. Other op- tions have the following meanings: --ss Enable (set) each _o_p_t_n_a_m_e. --uu Disable (unset) each _o_p_t_n_a_m_e. - --qq Suppresses normal output (quiet mode); the return status + --qq Suppresses normal output (quiet mode); the return status indicates whether the _o_p_t_n_a_m_e is set or unset. If multi- - ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta- - tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other- + ple _o_p_t_n_a_m_e arguments are given with --qq, the return sta- + tus is zero if all _o_p_t_n_a_m_e_s are enabled; non-zero other- wise. - --oo Restricts the values of _o_p_t_n_a_m_e to be those defined for + --oo Restricts the values of _o_p_t_n_a_m_e to be those defined for the --oo option to the sseett builtin. - If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, sshhoopptt - shows only those options which are set or unset, respectively. - Unless otherwise noted, the sshhoopptt options are disabled (unset) + If either --ss or --uu is used with no _o_p_t_n_a_m_e arguments, sshhoopptt + shows only those options which are set or unset, respectively. + Unless otherwise noted, the sshhoopptt options are disabled (unset) by default. - The return status when listing options is zero if all _o_p_t_n_a_m_e_s - are enabled, non-zero otherwise. When setting or unsetting op- - tions, the return status is zero unless an _o_p_t_n_a_m_e is not a + The return status when listing options is zero if all _o_p_t_n_a_m_e_s + are enabled, non-zero otherwise. When setting or unsetting op- + tions, the return status is zero unless an _o_p_t_n_a_m_e is not a valid shell option. The list of sshhoopptt options is: aarrrraayy__eexxppaanndd__oonnccee - If set, the shell suppresses multiple evaluation of as- + If set, the shell suppresses multiple evaluation of as- sociative and indexed array subscripts during arithmetic expression evaluation, while executing builtins that can - perform variable assignments, and while executing + perform variable assignments, and while executing builtins that perform array dereferencing. aassssoocc__eexxppaanndd__oonnccee Deprecated; a synonym for aarrrraayy__eexxppaanndd__oonnccee. - aauuttooccdd If set, a command name that is the name of a directory - is executed as if it were the argument to the ccdd com- + aauuttooccdd If set, a command name that is the name of a directory + is executed as if it were the argument to the ccdd com- mand. This option is only used by interactive shells. ccddaabbllee__vvaarrss - If set, an argument to the ccdd builtin command that is - not a directory is assumed to be the name of a variable + If set, an argument to the ccdd builtin command that is + not a directory is assumed to be the name of a variable whose value is the directory to change to. ccddssppeellll If set, minor errors in the spelling of a directory com- - ponent in a ccdd command will be corrected. The errors + ponent in a ccdd command will be corrected. The errors checked for are transposed characters, a missing charac- - ter, and one character too many. If a correction is - found, the corrected filename is printed, and the com- - mand proceeds. This option is only used by interactive + ter, and one character too many. If a correction is + found, the corrected filename is printed, and the com- + mand proceeds. This option is only used by interactive shells. cchheecckkhhaasshh If set, bbaasshh checks that a command found in the hash ta- - ble exists before trying to execute it. If a hashed - command no longer exists, a normal path search is per- + ble exists before trying to execute it. If a hashed + command no longer exists, a normal path search is per- formed. cchheecckkjjoobbss If set, bbaasshh lists the status of any stopped and running - jobs before exiting an interactive shell. If any jobs + jobs before exiting an interactive shell. If any jobs are running, this causes the exit to be deferred until a - second exit is attempted without an intervening command + second exit is attempted without an intervening command (see JJOOBB CCOONNTTRROOLL above). The shell always postpones ex- iting if any jobs are stopped. cchheecckkwwiinnssiizzee - If set, bbaasshh checks the window size after each external - (non-builtin) command and, if necessary, updates the - values of LLIINNEESS and CCOOLLUUMMNNSS. This option is enabled by + If set, bbaasshh checks the window size after each external + (non-builtin) command and, if necessary, updates the + values of LLIINNEESS and CCOOLLUUMMNNSS. This option is enabled by default. - ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple- - line command in the same history entry. This allows - easy re-editing of multi-line commands. This option is - enabled by default, but only has an effect if command + ccmmddhhiisstt If set, bbaasshh attempts to save all lines of a multiple- + line command in the same history entry. This allows + easy re-editing of multi-line commands. This option is + enabled by default, but only has an effect if command history is enabled, as described above under HHIISSTTOORRYY. ccoommppaatt3311 ccoommppaatt3322 @@ -6014,122 +6015,122 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS ccoommppaatt4433 ccoommppaatt4444 ccoommppaatt5500 - These control aspects of the shell's compatibility mode + These control aspects of the shell's compatibility mode (see SSHHEELLLL CCOOMMPPAATTIIBBIILLIITTYY MMOODDEE below). ccoommpplleettee__ffuullllqquuoottee - If set, bbaasshh quotes all shell metacharacters in file- - names and directory names when performing completion. + If set, bbaasshh quotes all shell metacharacters in file- + names and directory names when performing completion. If not set, bbaasshh removes metacharacters such as the dol- - lar sign from the set of characters that will be quoted - in completed filenames when these metacharacters appear - in shell variable references in words to be completed. - This means that dollar signs in variable names that ex- - pand to directories will not be quoted; however, any - dollar signs appearing in filenames will not be quoted, - either. This is active only when bash is using back- - slashes to quote completed filenames. This variable is - set by default, which is the default bash behavior in + lar sign from the set of characters that will be quoted + in completed filenames when these metacharacters appear + in shell variable references in words to be completed. + This means that dollar signs in variable names that ex- + pand to directories will not be quoted; however, any + dollar signs appearing in filenames will not be quoted, + either. This is active only when bash is using back- + slashes to quote completed filenames. This variable is + set by default, which is the default bash behavior in versions through 4.2. ddiirreexxppaanndd - If set, bbaasshh replaces directory names with the results - of word expansion when performing filename completion. - This changes the contents of the readline editing buf- - fer. If not set, bbaasshh attempts to preserve what the + If set, bbaasshh replaces directory names with the results + of word expansion when performing filename completion. + This changes the contents of the readline editing buf- + fer. If not set, bbaasshh attempts to preserve what the user typed. ddiirrssppeellll - If set, bbaasshh attempts spelling correction on directory - names during word completion if the directory name ini- + If set, bbaasshh attempts spelling correction on directory + names during word completion if the directory name ini- tially supplied does not exist. - ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in - the results of pathname expansion. The filenames ````..'''' - and ````....'''' must always be matched explicitly, even if + ddoottgglloobb If set, bbaasshh includes filenames beginning with a `.' in + the results of pathname expansion. The filenames ````..'''' + and ````....'''' must always be matched explicitly, even if ddoottgglloobb is set. eexxeeccffaaiill If set, a non-interactive shell will not exit if it can- - not execute the file specified as an argument to the - eexxeecc builtin command. An interactive shell does not + not execute the file specified as an argument to the + eexxeecc builtin command. An interactive shell does not exit if eexxeecc fails. eexxppaanndd__aalliiaasseess - If set, aliases are expanded as described above under + If set, aliases are expanded as described above under AALLIIAASSEESS. This option is enabled by default for interac- tive shells. eexxttddeebbuugg - If set at shell invocation, or in a shell startup file, + If set at shell invocation, or in a shell startup file, arrange to execute the debugger profile before the shell - starts, identical to the ----ddeebbuuggggeerr option. If set af- - ter invocation, behavior intended for use by debuggers + starts, identical to the ----ddeebbuuggggeerr option. If set af- + ter invocation, behavior intended for use by debuggers is enabled: 11.. The --FF option to the ddeeccllaarree builtin displays the source file name and line number corresponding to each function name supplied as an argument. - 22.. If the command run by the DDEEBBUUGG trap returns a - non-zero value, the next command is skipped and + 22.. If the command run by the DDEEBBUUGG trap returns a + non-zero value, the next command is skipped and not executed. - 33.. If the command run by the DDEEBBUUGG trap returns a - value of 2, and the shell is executing in a sub- - routine (a shell function or a shell script exe- - cuted by the .. or ssoouurrccee builtins), the shell + 33.. If the command run by the DDEEBBUUGG trap returns a + value of 2, and the shell is executing in a sub- + routine (a shell function or a shell script exe- + cuted by the .. or ssoouurrccee builtins), the shell simulates a call to rreettuurrnn. - 44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described + 44.. BBAASSHH__AARRGGCC and BBAASSHH__AARRGGVV are updated as described in their descriptions above). - 55.. Function tracing is enabled: command substitu- + 55.. Function tracing is enabled: command substitu- tion, shell functions, and subshells invoked with (( _c_o_m_m_a_n_d )) inherit the DDEEBBUUGG and RREETTUURRNN traps. - 66.. Error tracing is enabled: command substitution, - shell functions, and subshells invoked with (( + 66.. Error tracing is enabled: command substitution, + shell functions, and subshells invoked with (( _c_o_m_m_a_n_d )) inherit the EERRRR trap. eexxttgglloobb If set, the extended pattern matching features described above under PPaatthhnnaammee EExxppaannssiioonn are enabled. eexxttqquuoottee - If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed - within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double + If set, $$'_s_t_r_i_n_g' and $$"_s_t_r_i_n_g" quoting is performed + within $${{_p_a_r_a_m_e_t_e_r}} expansions enclosed in double quotes. This option is enabled by default. ffaaiillgglloobb - If set, patterns which fail to match filenames during + If set, patterns which fail to match filenames during pathname expansion result in an expansion error. ffoorrccee__ffiiggnnoorree - If set, the suffixes specified by the FFIIGGNNOORREE shell - variable cause words to be ignored when performing word + If set, the suffixes specified by the FFIIGGNNOORREE shell + variable cause words to be ignored when performing word completion even if the ignored words are the only possi- - ble completions. See SSHHEELLLL VVAARRIIAABBLLEESS above for a de- - scription of FFIIGGNNOORREE. This option is enabled by de- + ble completions. See SSHHEELLLL VVAARRIIAABBLLEESS above for a de- + scription of FFIIGGNNOORREE. This option is enabled by de- fault. gglloobbaasscciiiirraannggeess - If set, range expressions used in pattern matching - bracket expressions (see PPaatttteerrnn MMaattcchhiinngg above) behave - as if in the traditional C locale when performing com- - parisons. That is, the current locale's collating se- - quence is not taken into account, so bb will not collate - between AA and BB, and upper-case and lower-case ASCII + If set, range expressions used in pattern matching + bracket expressions (see PPaatttteerrnn MMaattcchhiinngg above) behave + as if in the traditional C locale when performing com- + parisons. That is, the current locale's collating se- + quence is not taken into account, so bb will not collate + between AA and BB, and upper-case and lower-case ASCII characters will collate together. gglloobbsskkiippddoottss - If set, pathname expansion will never match the file- + If set, pathname expansion will never match the file- names ````..'''' and ````....'''', even if the pattern begins with a ````..''''. This option is enabled by default. gglloobbssttaarr If set, the pattern **** used in a pathname expansion con- - text will match all files and zero or more directories - and subdirectories. If the pattern is followed by a //, + text will match all files and zero or more directories + and subdirectories. If the pattern is followed by a //, only directories and subdirectories match. ggnnuu__eerrrrffmmtt @@ -6137,25 +6138,25 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS GNU error message format. hhiissttaappppeenndd - If set, the history list is appended to the file named + If set, the history list is appended to the file named by the value of the HHIISSTTFFIILLEE variable when the shell ex- its, rather than overwriting the file. hhiissttrreeeeddiitt - If set, and rreeaaddlliinnee is being used, a user is given the + If set, and rreeaaddlliinnee is being used, a user is given the opportunity to re-edit a failed history substitution. hhiissttvveerriiffyy - If set, and rreeaaddlliinnee is being used, the results of his- - tory substitution are not immediately passed to the - shell parser. Instead, the resulting line is loaded + If set, and rreeaaddlliinnee is being used, the results of his- + tory substitution are not immediately passed to the + shell parser. Instead, the resulting line is loaded into the rreeaaddlliinnee editing buffer, allowing further modi- fication. hhoossttccoommpplleettee If set, and rreeaaddlliinnee is being used, bbaasshh will attempt to - perform hostname completion when a word containing a @@ - is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE + perform hostname completion when a word containing a @@ + is being completed (see CCoommpplleettiinngg under RREEAADDLLIINNEE above). This is enabled by default. hhuuppoonneexxiitt @@ -6163,23 +6164,23 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS active login shell exits. iinnhheerriitt__eerrrreexxiitt - If set, command substitution inherits the value of the - eerrrreexxiitt option, instead of unsetting it in the subshell - environment. This option is enabled when _p_o_s_i_x _m_o_d_e is + If set, command substitution inherits the value of the + eerrrreexxiitt option, instead of unsetting it in the subshell + environment. This option is enabled when _p_o_s_i_x _m_o_d_e is enabled. iinntteerraaccttiivvee__ccoommmmeennttss If set, allow a word beginning with ## to cause that word - and all remaining characters on that line to be ignored - in an interactive shell (see CCOOMMMMEENNTTSS above). This op- + and all remaining characters on that line to be ignored + in an interactive shell (see CCOOMMMMEENNTTSS above). This op- tion is enabled by default. llaassttppiippee - If set, and job control is not active, the shell runs + If set, and job control is not active, the shell runs the last command of a pipeline not executed in the back- ground in the current shell environment. - lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line + lliitthhiisstt If set, and the ccmmddhhiisstt option is enabled, multi-line commands are saved to the history with embedded newlines rather than using semicolon separators where possible. @@ -6190,54 +6191,54 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS tribute is not inherited. llooccaallvvaarr__uunnsseett - If set, calling uunnsseett on local variables in previous - function scopes marks them so subsequent lookups find - them unset until that function returns. This is identi- - cal to the behavior of unsetting local variables at the + If set, calling uunnsseett on local variables in previous + function scopes marks them so subsequent lookups find + them unset until that function returns. This is identi- + cal to the behavior of unsetting local variables at the current function scope. llooggiinn__sshheellll - The shell sets this option if it is started as a login - shell (see IINNVVOOCCAATTIIOONN above). The value may not be + The shell sets this option if it is started as a login + shell (see IINNVVOOCCAATTIIOONN above). The value may not be changed. mmaaiillwwaarrnn - If set, and a file that bbaasshh is checking for mail has - been accessed since the last time it was checked, the - message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis- + If set, and a file that bbaasshh is checking for mail has + been accessed since the last time it was checked, the + message ``The mail in _m_a_i_l_f_i_l_e has been read'' is dis- played. nnoo__eemmppttyy__ccmmdd__ccoommpplleettiioonn - If set, and rreeaaddlliinnee is being used, bbaasshh will not at- - tempt to search the PPAATTHH for possible completions when + If set, and rreeaaddlliinnee is being used, bbaasshh will not at- + tempt to search the PPAATTHH for possible completions when completion is attempted on an empty line. nnooccaasseegglloobb - If set, bbaasshh matches filenames in a case-insensitive + If set, bbaasshh matches filenames in a case-insensitive fashion when performing pathname expansion (see PPaatthhnnaammee EExxppaannssiioonn above). nnooccaasseemmaattcchh - If set, bbaasshh matches patterns in a case-insensitive + If set, bbaasshh matches patterns in a case-insensitive fashion when performing matching while executing ccaassee or [[[[ conditional commands, when performing pattern substi- - tution word expansions, or when filtering possible com- + tution word expansions, or when filtering possible com- pletions as part of programmable completion. nnooeexxppaanndd__ttrraannssllaattiioonn - If set, bbaasshh encloses the translated results of $"..." - quoting in single quotes instead of double quotes. If + If set, bbaasshh encloses the translated results of $"..." + quoting in single quotes instead of double quotes. If the string is not translated, this has no effect. nnuullllgglloobb - If set, bbaasshh allows patterns which match no files (see - PPaatthhnnaammee EExxppaannssiioonn above) to expand to a null string, - rather than themselves. + If set, pathname expansion patterns which match no files + (see PPaatthhnnaammee EExxppaannssiioonn above) expand to nothing and are + removed, rather than expanding to themselves. ppaattssuubb__rreeppllaacceemmeenntt If set, bbaasshh expands occurrences of && in the replacement - string of pattern substitution to the text matched by - the pattern, as described under PPaarraammeetteerr EExxppaannssiioonn + string of pattern substitution to the text matched by + the pattern, as described under PPaarraammeetteerr EExxppaannssiioonn above. This option is enabled by default. pprrooggccoommpp @@ -6246,70 +6247,70 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS enabled by default. pprrooggccoommpp__aalliiaass - If set, and programmable completion is enabled, bbaasshh - treats a command name that doesn't have any completions - as a possible alias and attempts alias expansion. If it - has an alias, bbaasshh attempts programmable completion us- + If set, and programmable completion is enabled, bbaasshh + treats a command name that doesn't have any completions + as a possible alias and attempts alias expansion. If it + has an alias, bbaasshh attempts programmable completion us- ing the command word resulting from the expanded alias. pprroommppttvvaarrss If set, prompt strings undergo parameter expansion, com- - mand substitution, arithmetic expansion, and quote re- - moval after being expanded as described in PPRROOMMPPTTIINNGG + mand substitution, arithmetic expansion, and quote re- + moval after being expanded as described in PPRROOMMPPTTIINNGG above. This option is enabled by default. rreessttrriicctteedd__sshheellll - The shell sets this option if it is started in re- - stricted mode (see RREESSTTRRIICCTTEEDD SSHHEELLLL below). The value - may not be changed. This is not reset when the startup - files are executed, allowing the startup files to dis- + The shell sets this option if it is started in re- + stricted mode (see RREESSTTRRIICCTTEEDD SSHHEELLLL below). The value + may not be changed. This is not reset when the startup + files are executed, allowing the startup files to dis- cover whether or not a shell is restricted. sshhiifftt__vveerrbboossee - If set, the sshhiifftt builtin prints an error message when + If set, the sshhiifftt builtin prints an error message when the shift count exceeds the number of positional parame- ters. ssoouurrcceeppaatthh If set, the .. (ssoouurrccee) builtin uses the value of PPAATTHH to - find the directory containing the file supplied as an + find the directory containing the file supplied as an argument. This option is enabled by default. vvaarrrreeddiirr__cclloossee - If set, the shell automatically closes file descriptors + If set, the shell automatically closes file descriptors assigned using the _{_v_a_r_n_a_m_e_} redirection syntax (see RREE-- - DDIIRREECCTTIIOONN above) instead of leaving them open when the + DDIIRREECCTTIIOONN above) instead of leaving them open when the command completes. xxppgg__eecchhoo - If set, the eecchhoo builtin expands backslash-escape se- - quences by default. If the ppoossiixx shell option is also + If set, the eecchhoo builtin expands backslash-escape se- + quences by default. If the ppoossiixx shell option is also enabled, eecchhoo does not interpret any options. ssuussppeenndd [--ff] - Suspend the execution of this shell until it receives a SSIIGGCCOONNTT - signal. A login shell, or a shell without job control enabled, - cannot be suspended; the --ff option can be used to override this - and force the suspension. The return status is 0 unless the - shell is a login shell or job control is not enabled and --ff is + Suspend the execution of this shell until it receives a SSIIGGCCOONNTT + signal. A login shell, or a shell without job control enabled, + cannot be suspended; the --ff option can be used to override this + and force the suspension. The return status is 0 unless the + shell is a login shell or job control is not enabled and --ff is not supplied. tteesstt _e_x_p_r [[ _e_x_p_r ]] Return a status of 0 (true) or 1 (false) depending on the evalu- ation of the conditional expression _e_x_p_r. Each operator and op- - erand must be a separate argument. Expressions are composed of - the primaries described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS. - tteesstt does not accept any options, nor does it accept and ignore + erand must be a separate argument. Expressions are composed of + the primaries described above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS. + tteesstt does not accept any options, nor does it accept and ignore an argument of ---- as signifying the end of options. - Expressions may be combined using the following operators, - listed in decreasing order of precedence. The evaluation de- - pends on the number of arguments; see below. Operator prece- + Expressions may be combined using the following operators, + listed in decreasing order of precedence. The evaluation de- + pends on the number of arguments; see below. Operator prece- dence is used when there are five or more arguments. !! _e_x_p_r True if _e_x_p_r is false. (( _e_x_p_r )) - Returns the value of _e_x_p_r. This may be used to override + Returns the value of _e_x_p_r. This may be used to override the normal precedence of operators. _e_x_p_r_1 -aa _e_x_p_r_2 True if both _e_x_p_r_1 and _e_x_p_r_2 are true. @@ -6326,161 +6327,161 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS null. 2 arguments If the first argument is !!, the expression is true if and - only if the second argument is null. If the first argu- - ment is one of the unary conditional operators listed - above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is + only if the second argument is null. If the first argu- + ment is one of the unary conditional operators listed + above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the expression is true if the unary test is true. If the first argument is not a valid unary conditional operator, the expression is false. 3 arguments The following conditions are applied in the order listed. - If the second argument is one of the binary conditional + If the second argument is one of the binary conditional operators listed above under CCOONNDDIITTIIOONNAALL EEXXPPRREESSSSIIOONNSS, the result of the expression is the result of the binary test - using the first and third arguments as operands. The --aa - and --oo operators are considered binary operators when - there are three arguments. If the first argument is !!, - the value is the negation of the two-argument test using + using the first and third arguments as operands. The --aa + and --oo operators are considered binary operators when + there are three arguments. If the first argument is !!, + the value is the negation of the two-argument test using the second and third arguments. If the first argument is exactly (( and the third argument is exactly )), the result - is the one-argument test of the second argument. Other- + is the one-argument test of the second argument. Other- wise, the expression is false. 4 arguments The following conditions are applied in the order listed. If the first argument is !!, the result is the negation of - the three-argument expression composed of the remaining - arguments. the two-argument test using the second and - third arguments. If the first argument is exactly (( and - the fourth argument is exactly )), the result is the two- - argument test of the second and third arguments. Other- + the three-argument expression composed of the remaining + arguments. the two-argument test using the second and + third arguments. If the first argument is exactly (( and + the fourth argument is exactly )), the result is the two- + argument test of the second and third arguments. Other- wise, the expression is parsed and evaluated according to precedence using the rules listed above. 5 or more arguments - The expression is parsed and evaluated according to + The expression is parsed and evaluated according to precedence using the rules listed above. If the shell is not in _p_o_s_i_x _m_o_d_e, when used with tteesstt or [[, the - << and >> operators sort lexicographically using ASCII ordering. - When the shell is in _p_o_s_i_x _m_o_d_e, these operators sort using the + << and >> operators sort lexicographically using ASCII ordering. + When the shell is in _p_o_s_i_x _m_o_d_e, these operators sort using the current locale. - ttiimmeess Print the accumulated user and system times for the shell and + ttiimmeess Print the accumulated user and system times for the shell and for processes run from the shell. The return status is 0. ttrraapp [--llpp] [[_a_c_t_i_o_n] _s_i_g_s_p_e_c ...] The _a_c_t_i_o_n is a command that is read and executed when the shell receives signal(s) _s_i_g_s_p_e_c. If _a_c_t_i_o_n is absent (and there is a - single _s_i_g_s_p_e_c) or --, each specified signal is reset to its - original disposition (the value it had upon entrance to the - shell). If _a_c_t_i_o_n is the null string the signal specified by - each _s_i_g_s_p_e_c is ignored by the shell and by the commands it in- + single _s_i_g_s_p_e_c) or --, each specified signal is reset to its + original disposition (the value it had upon entrance to the + shell). If _a_c_t_i_o_n is the null string the signal specified by + each _s_i_g_s_p_e_c is ignored by the shell and by the commands it in- vokes. - If no arguments are supplied, ttrraapp displays the actions associ- + If no arguments are supplied, ttrraapp displays the actions associ- ated with each trapped signal as a set of ttrraapp commands that can - be reused as shell input to restore the current signal disposi- - tions. If --pp is given, and _a_c_t_i_o_n is not present, then ttrraapp - displays the actions associated with each _s_i_g_s_p_e_c or, if none + be reused as shell input to restore the current signal disposi- + tions. If --pp is given, and _a_c_t_i_o_n is not present, then ttrraapp + displays the actions associated with each _s_i_g_s_p_e_c or, if none are supplied, for all trapped signals, as a set of ttrraapp commands - that can be reused as shell input to restore the current signal - dispositions. The --PP option behaves similarly, but displays - only the actions associated with each _s_i_g_s_p_e_c argument. --PP re- - quires at least one _s_i_g_s_p_e_c argument. The --PP or --pp options to - ttrraapp may be used in a subshell environment (e.g., command sub- - stitution) and, as long as they are used before ttrraapp is used to - change a signal's handling, will display the state of its par- + that can be reused as shell input to restore the current signal + dispositions. The --PP option behaves similarly, but displays + only the actions associated with each _s_i_g_s_p_e_c argument. --PP re- + quires at least one _s_i_g_s_p_e_c argument. The --PP or --pp options to + ttrraapp may be used in a subshell environment (e.g., command sub- + stitution) and, as long as they are used before ttrraapp is used to + change a signal's handling, will display the state of its par- ent's traps. - The --ll option causes ttrraapp to print a list of signal names and - their corresponding numbers. Each _s_i_g_s_p_e_c is either a signal - name defined in <_s_i_g_n_a_l_._h>, or a signal number. Signal names + The --ll option causes ttrraapp to print a list of signal names and + their corresponding numbers. Each _s_i_g_s_p_e_c is either a signal + name defined in <_s_i_g_n_a_l_._h>, or a signal number. Signal names are case insensitive and the SSIIGG prefix is optional. - If a _s_i_g_s_p_e_c is EEXXIITT (0) the command _a_c_t_i_o_n is executed on exit - from the shell. If a _s_i_g_s_p_e_c is DDEEBBUUGG, the command _a_c_t_i_o_n is + If a _s_i_g_s_p_e_c is EEXXIITT (0) the command _a_c_t_i_o_n is executed on exit + from the shell. If a _s_i_g_s_p_e_c is DDEEBBUUGG, the command _a_c_t_i_o_n is executed before every _s_i_m_p_l_e _c_o_m_m_a_n_d, _f_o_r command, _c_a_s_e command, - _s_e_l_e_c_t command, (( arithmetic command, [[ conditional command, + _s_e_l_e_c_t command, (( arithmetic command, [[ conditional command, arithmetic _f_o_r command, and before the first command executes in - a shell function (see SSHHEELLLL GGRRAAMMMMAARR above). Refer to the de- - scription of the eexxttddeebbuugg option to the sshhoopptt builtin for de- - tails of its effect on the DDEEBBUUGG trap. If a _s_i_g_s_p_e_c is RREETTUURRNN, - the command _a_c_t_i_o_n is executed each time a shell function or a - script executed with the .. or ssoouurrccee builtins finishes execut- + a shell function (see SSHHEELLLL GGRRAAMMMMAARR above). Refer to the de- + scription of the eexxttddeebbuugg option to the sshhoopptt builtin for de- + tails of its effect on the DDEEBBUUGG trap. If a _s_i_g_s_p_e_c is RREETTUURRNN, + the command _a_c_t_i_o_n is executed each time a shell function or a + script executed with the .. or ssoouurrccee builtins finishes execut- ing. - If a _s_i_g_s_p_e_c is EERRRR, the command _a_c_t_i_o_n is executed whenever a + If a _s_i_g_s_p_e_c is EERRRR, the command _a_c_t_i_o_n is executed whenever a pipeline (which may consist of a single simple command), a list, or a compound command returns a non-zero exit status, subject to - the following conditions. The EERRRR trap is not executed if the + the following conditions. The EERRRR trap is not executed if the failed command is part of the command list immediately following - a wwhhiillee or uunnttiill keyword, part of the test in an _i_f statement, + a wwhhiillee or uunnttiill keyword, part of the test in an _i_f statement, part of a command executed in a &&&& or |||| list except the command - following the final &&&& or ||||, any command in a pipeline but the - last, or if the command's return value is being inverted using + following the final &&&& or ||||, any command in a pipeline but the + last, or if the command's return value is being inverted using !!. These are the same conditions obeyed by the eerrrreexxiitt (--ee) op- tion. When the shell is not interactive, signals ignored upon entry to the shell cannot be trapped or reset. Interactive shells permit trapping signals ignored on entry. Trapped signals that are not - being ignored are reset to their original values in a subshell - or subshell environment when one is created. The return status + being ignored are reset to their original values in a subshell + or subshell environment when one is created. The return status is false if any _s_i_g_s_p_e_c is invalid; otherwise ttrraapp returns true. ttrruuee Does nothing, returns a 0 status. ttyyppee [--aaffttppPP] _n_a_m_e [_n_a_m_e ...] - With no options, indicate how each _n_a_m_e would be interpreted if + With no options, indicate how each _n_a_m_e would be interpreted if used as a command name. If the --tt option is used, ttyyppee prints a - string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or - _f_i_l_e if _n_a_m_e is an alias, shell reserved word, function, - builtin, or executable disk file, respectively. If the _n_a_m_e is - not found, then nothing is printed, and ttyyppee returns a non-zero - exit status. If the --pp option is used, ttyyppee either returns the - name of the executable file that would be found by searching - $$PPAATTHH if _n_a_m_e were specified as a command name, or nothing if - ``type -t name'' would not return _f_i_l_e. The --PP option forces a - PPAATTHH search for each _n_a_m_e, even if ``type -t name'' would not + string which is one of _a_l_i_a_s, _k_e_y_w_o_r_d, _f_u_n_c_t_i_o_n, _b_u_i_l_t_i_n, or + _f_i_l_e if _n_a_m_e is an alias, shell reserved word, function, + builtin, or executable disk file, respectively. If the _n_a_m_e is + not found, then nothing is printed, and ttyyppee returns a non-zero + exit status. If the --pp option is used, ttyyppee either returns the + name of the executable file that would be found by searching + $$PPAATTHH if _n_a_m_e were specified as a command name, or nothing if + ``type -t name'' would not return _f_i_l_e. The --PP option forces a + PPAATTHH search for each _n_a_m_e, even if ``type -t name'' would not return _f_i_l_e. If a command is hashed, --pp and --PP print the hashed - value, which is not necessarily the file that appears first in - PPAATTHH. If the --aa option is used, ttyyppee prints all of the places - that contain a command named _n_a_m_e. This includes aliases, re- - served words, functions, and builtins, but the path search op- + value, which is not necessarily the file that appears first in + PPAATTHH. If the --aa option is used, ttyyppee prints all of the places + that contain a command named _n_a_m_e. This includes aliases, re- + served words, functions, and builtins, but the path search op- tions (--pp and --PP) can be supplied to restrict the output to exe- - cutable files. ttyyppee does not consult the table of hashed com- + cutable files. ttyyppee does not consult the table of hashed com- mands when using --aa with --pp, and only performs a PPAATTHH search for - _n_a_m_e. The --ff option suppresses shell function lookup, as with - the ccoommmmaanndd builtin. ttyyppee returns true if all of the arguments + _n_a_m_e. The --ff option suppresses shell function lookup, as with + the ccoommmmaanndd builtin. ttyyppee returns true if all of the arguments are found, false if any are not found. uulliimmiitt [--HHSS] --aa uulliimmiitt [--HHSS] [--bbccddeeffiikkllmmnnppqqrrssttuuvvxxPPRRTT [_l_i_m_i_t]] - Provides control over the resources available to the shell and - to processes started by it, on systems that allow such control. + Provides control over the resources available to the shell and + to processes started by it, on systems that allow such control. The --HH and --SS options specify that the hard or soft limit is set - for the given resource. A hard limit cannot be increased by a - non-root user once it is set; a soft limit may be increased up - to the value of the hard limit. If neither --HH nor --SS is speci- + for the given resource. A hard limit cannot be increased by a + non-root user once it is set; a soft limit may be increased up + to the value of the hard limit. If neither --HH nor --SS is speci- fied, both the soft and hard limits are set. The value of _l_i_m_i_t can be a number in the unit specified for the resource or one of the special values hhaarrdd, ssoofftt, or uunnlliimmiitteedd, which stand for the - current hard limit, the current soft limit, and no limit, re- - spectively. If _l_i_m_i_t is omitted, the current value of the soft + current hard limit, the current soft limit, and no limit, re- + spectively. If _l_i_m_i_t is omitted, the current value of the soft limit of the resource is printed, unless the --HH option is given. - When more than one resource is specified, the limit name and - unit, if appropriate, are printed before the value. Other op- + When more than one resource is specified, the limit name and + unit, if appropriate, are printed before the value. Other op- tions are interpreted as follows: --aa All current limits are reported; no limits are set --bb The maximum socket buffer size --cc The maximum size of core files created --dd The maximum size of a process's data segment --ee The maximum scheduling priority ("nice") - --ff The maximum size of files written by the shell and its + --ff The maximum size of files written by the shell and its children --ii The maximum number of pending signals --kk The maximum number of kqueues that may be allocated --ll The maximum size that may be locked into memory - --mm The maximum resident set size (many systems do not honor + --mm The maximum resident set size (many systems do not honor this limit) --nn The maximum number of open file descriptors (most systems do not allow this value to be set) @@ -6489,134 +6490,134 @@ SSHHEELLLL BBUUIILLTTIINN CCOOMMMMAANNDDSS --rr The maximum real-time scheduling priority --ss The maximum stack size --tt The maximum amount of cpu time in seconds - --uu The maximum number of processes available to a single + --uu The maximum number of processes available to a single user - --vv The maximum amount of virtual memory available to the + --vv The maximum amount of virtual memory available to the shell and, on some systems, to its children --xx The maximum number of file locks --PP The maximum number of pseudoterminals - --RR The maximum time a real-time process can run before + --RR The maximum time a real-time process can run before blocking, in microseconds --TT The maximum number of threads - If _l_i_m_i_t is given, and the --aa option is not used, _l_i_m_i_t is the - new value of the specified resource. If no option is given, - then --ff is assumed. Values are in 1024-byte increments, except - for --tt, which is in seconds; --RR, which is in microseconds; --pp, - which is in units of 512-byte blocks; --PP, --TT, --bb, --kk, --nn, and - --uu, which are unscaled values; and, when in posix mode, --cc and - --ff, which are in 512-byte increments. The return status is 0 - unless an invalid option or argument is supplied, or an error + If _l_i_m_i_t is given, and the --aa option is not used, _l_i_m_i_t is the + new value of the specified resource. If no option is given, + then --ff is assumed. Values are in 1024-byte increments, except + for --tt, which is in seconds; --RR, which is in microseconds; --pp, + which is in units of 512-byte blocks; --PP, --TT, --bb, --kk, --nn, and + --uu, which are unscaled values; and, when in posix mode, --cc and + --ff, which are in 512-byte increments. The return status is 0 + unless an invalid option or argument is supplied, or an error occurs while setting a new limit. uummaasskk [--pp] [--SS] [_m_o_d_e] The user file-creation mask is set to _m_o_d_e. If _m_o_d_e begins with - a digit, it is interpreted as an octal number; otherwise it is - interpreted as a symbolic mode mask similar to that accepted by - _c_h_m_o_d(1). If _m_o_d_e is omitted, the current value of the mask is - printed. The --SS option causes the mask to be printed in sym- - bolic form; the default output is an octal number. If the --pp + a digit, it is interpreted as an octal number; otherwise it is + interpreted as a symbolic mode mask similar to that accepted by + _c_h_m_o_d(1). If _m_o_d_e is omitted, the current value of the mask is + printed. The --SS option causes the mask to be printed in sym- + bolic form; the default output is an octal number. If the --pp option is supplied, and _m_o_d_e is omitted, the output is in a form that may be reused as input. The return status is 0 if the mode - was successfully changed or if no _m_o_d_e argument was supplied, + was successfully changed or if no _m_o_d_e argument was supplied, and false otherwise. uunnaalliiaass [-aa] [_n_a_m_e ...] - Remove each _n_a_m_e from the list of defined aliases. If --aa is - supplied, all alias definitions are removed. The return value + Remove each _n_a_m_e from the list of defined aliases. If --aa is + supplied, all alias definitions are removed. The return value is true unless a supplied _n_a_m_e is not a defined alias. uunnsseett [-ffvv] [-nn] [_n_a_m_e ...] - For each _n_a_m_e, remove the corresponding variable or function. + For each _n_a_m_e, remove the corresponding variable or function. If the --vv option is given, each _n_a_m_e refers to a shell variable, - and that variable is removed. Read-only variables may not be - unset. If --ff is specified, each _n_a_m_e refers to a shell func- - tion, and the function definition is removed. If the --nn option - is supplied, and _n_a_m_e is a variable with the _n_a_m_e_r_e_f attribute, - _n_a_m_e will be unset rather than the variable it references. --nn - has no effect if the --ff option is supplied. If no options are - supplied, each _n_a_m_e refers to a variable; if there is no vari- - able by that name, a function with that name, if any, is unset. - Each unset variable or function is removed from the environment - passed to subsequent commands. If any of BBAASSHH__AALLIIAASSEESS, + and that variable is removed. Read-only variables may not be + unset. If --ff is specified, each _n_a_m_e refers to a shell func- + tion, and the function definition is removed. If the --nn option + is supplied, and _n_a_m_e is a variable with the _n_a_m_e_r_e_f attribute, + _n_a_m_e will be unset rather than the variable it references. --nn + has no effect if the --ff option is supplied. If no options are + supplied, each _n_a_m_e refers to a variable; if there is no vari- + able by that name, a function with that name, if any, is unset. + Each unset variable or function is removed from the environment + passed to subsequent commands. If any of BBAASSHH__AALLIIAASSEESS, BBAASSHH__AARRGGVV00, BBAASSHH__CCMMDDSS, BBAASSHH__CCOOMMMMAANNDD, BBAASSHH__SSUUBBSSHHEELLLL, BBAASSHHPPIIDD, - CCOOMMPP__WWOORRDDBBRREEAAKKSS, DDIIRRSSTTAACCKK, EEPPOOCCHHRREEAALLTTIIMMEE, EEPPOOCCHHSSEECCOONNDDSS, FFUUNNCC-- - NNAAMMEE, GGRROOUUPPSS, HHIISSTTCCMMDD, LLIINNEENNOO, RRAANNDDOOMM, SSEECCOONNDDSS, or SSRRAANNDDOOMM are + CCOOMMPP__WWOORRDDBBRREEAAKKSS, DDIIRRSSTTAACCKK, EEPPOOCCHHRREEAALLTTIIMMEE, EEPPOOCCHHSSEECCOONNDDSS, FFUUNNCC-- + NNAAMMEE, GGRROOUUPPSS, HHIISSTTCCMMDD, LLIINNEENNOO, RRAANNDDOOMM, SSEECCOONNDDSS, or SSRRAANNDDOOMM are unset, they lose their special properties, even if they are sub- sequently reset. The exit status is true unless a _n_a_m_e is read- only or may not be unset. wwaaiitt [--ffnn] [--pp _v_a_r_n_a_m_e] [_i_d _._._.] Wait for each specified child process and return its termination - status. Each _i_d may be a process ID or a job specification; if - a job spec is given, all processes in that job's pipeline are - waited for. If _i_d is not given, wwaaiitt waits for all running - background jobs and the last-executed process substitution, if + status. Each _i_d may be a process ID or a job specification; if + a job spec is given, all processes in that job's pipeline are + waited for. If _i_d is not given, 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 a single job from + If the --nn option is supplied, wwaaiitt waits for a single job from the list of _i_ds or, if no _i_ds are supplied, any job, to complete - and returns its exit status. If none of the supplied arguments + and returns its exit status. If none of the supplied arguments 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 --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 - will be unset initially, before any assignment. This is useful - only when the --nn option is supplied. Supplying the --ff option, - when job control is enabled, forces wwaaiitt to wait for _i_d to ter- + 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 + will be unset initially, before any assignment. This is useful + only when the --nn option is supplied. Supplying the --ff option, + when job control is enabled, forces wwaaiitt to wait for _i_d to ter- minate before returning its status, instead of returning when it - changes status. If _i_d specifies a non-existent process or job, - the return status is 127. If wwaaiitt is interrupted by a signal, - the return status will be greater than 128, as described under - SSIIGGNNAALLSS above. Otherwise, the return status is the exit status + changes status. If _i_d specifies a non-existent process or job, + the return status is 127. If wwaaiitt is interrupted by a signal, + the return status will be greater than 128, as described under + SSIIGGNNAALLSS above. Otherwise, the return status is the exit status of the last process or job waited for. 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- - fied as a set of options to the shopt builtin ( ccoommppaatt3311, ccoommppaatt3322, - ccoommppaatt4400, ccoommppaatt4411, and so on). There is only one current compatibil- - ity level -- each option is mutually exclusive. The compatibility - level is intended to allow users to select behavior from previous ver- - sions that is incompatible with newer versions while they migrate - scripts to use current features and behavior. It's intended to be a + 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, + ccoommppaatt4400, ccoommppaatt4411, and so on). There is only one current compatibil- + ity level -- each option is mutually exclusive. The compatibility + level is intended to allow users to select behavior from previous ver- + sions that is incompatible with newer versions while they migrate + scripts to use current features and behavior. It's intended to be a temporary solution. - This section does not mention behavior that is standard for a particu- - lar version (e.g., setting ccoommppaatt3322 means that quoting the rhs of the - regexp matching operator quotes special regexp characters in the word, + This section does not mention behavior that is standard for a particu- + lar version (e.g., setting ccoommppaatt3322 means that quoting the rhs of the + regexp matching operator quotes special regexp characters in the word, which is default behavior in bash-3.2 and subsequent versions). - 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 has begun deprecating older compatibility - levels. Eventually, the options will be removed in favor of BBAASSHH__CCOOMM-- + Starting with bash-4.4, bbaasshh has begun deprecating older compatibility + levels. Eventually, the options will be removed in favor of BBAASSHH__CCOOMM-- PPAATT. - Bash-5.0 is the final version for which there will be an individual - shopt option for the previous version. Users should use BBAASSHH__CCOOMMPPAATT on + Bash-5.0 is the final version for which there will be an individual + shopt option for the previous version. Users should use BBAASSHH__CCOOMMPPAATT on bash-5.0 and later versions. - 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 @@ -6624,139 +6625,139 @@ 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 the shell does not print a warning message if an attempt - is made to use a quoted compound assignment as an argu- - ment to declare (e.g., declare -a foo='(1 2)'). Later + +o the shell does not print a warning message if an attempt + is made to use a quoted compound assignment as an argu- + ment to declare (e.g., declare -a foo='(1 2)'). Later versions warn that this usage is deprecated - +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- + 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 + +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 enabled - +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- + +o Bash-5.1 changed the way $$RRAANNDDOOMM is generated to intro- duce slightly more randomness. If the shell compatibility - 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 + 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 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 + +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 + +o the expressions in the $(( ... )) word expansion can be expanded 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 AAPP iiss aann + +o tteesstt --vv, when given an argument of AA[[@@]], where AAPP iiss aann eexxiissttiinngg aassssoocciiaattiivvee aarrrraayy,, wwiillll rreettuurrnn ttrruuee iiff tthhee aarrrraayy - hhaass aannyy sseett eelleemmeennttss.. BBaasshh--55..22 wwiillll llooookk ffoorr aanndd rreeppoorrtt + hhaass aannyy sseett eelleemmeennttss.. BBaasshh--55..22 wwiillll llooookk ffoorr aanndd rreeppoorrtt oonn aa kkeeyy nnaammeedd @@.. ++oo 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. RREESSTTRRIICCTTEEDD SSHHEELLLL If bbaasshh is started with the name rrbbaasshh, or the --rr option is supplied at - invocation, the shell becomes restricted. A restricted shell is used - to set up an environment more controlled than the standard shell. It - behaves identically to bbaasshh with the exception that the following are + invocation, the shell becomes restricted. A restricted shell is used + to set up an environment more controlled than the standard shell. It + behaves identically to 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 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 >> redirect- @@ -6765,28 +6766,28 @@ RREESSTTRRIICCTTEEDD SSHHEELLLL +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 _B_a_s_h _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, Brian Fox and Chet Ramey _T_h_e _G_n_u _R_e_a_d_l_i_n_e _L_i_b_r_a_r_y, Brian Fox and Chet Ramey _T_h_e _G_n_u _H_i_s_t_o_r_y _L_i_b_r_a_r_y, Brian Fox and Chet Ramey - _P_o_r_t_a_b_l_e _O_p_e_r_a_t_i_n_g _S_y_s_t_e_m _I_n_t_e_r_f_a_c_e _(_P_O_S_I_X_) _P_a_r_t _2_: _S_h_e_l_l _a_n_d _U_t_i_l_i_- + _P_o_r_t_a_b_l_e _O_p_e_r_a_t_i_n_g _S_y_s_t_e_m _I_n_t_e_r_f_a_c_e _(_P_O_S_I_X_) _P_a_r_t _2_: _S_h_e_l_l _a_n_d _U_t_i_l_i_- _t_i_e_s, IEEE -- http://pubs.opengroup.org/onlinepubs/9699919799/ http://tiswww.case.edu/~chet/bash/POSIX -- a description of posix mode @@ -6804,10 +6805,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 @@ -6821,15 +6822,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 - to mail that as well! Suggestions and `philosophical' bug reports may - be mailed to _b_u_g_-_b_a_s_h_@_g_n_u_._o_r_g or posted to the Usenet newsgroup + 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! Suggestions and `philosophical' bug reports may + be mailed to _b_u_g_-_b_a_s_h_@_g_n_u_._o_r_g or posted to the Usenet newsgroup ggnnuu..bbaasshh..bbuugg. ALL bug reports should include: @@ -6840,7 +6841,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 @@ -6857,10 +6858,10 @@ 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 + 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. Array variables may not (yet) be exported. @@ -6869,4 +6870,4 @@ BBUUGGSS -GNU Bash 5.3 2023 November 1 BASH(1) +GNU Bash 5.3 2023 November 6 BASH(1) diff --git a/doc/bash.1 b/doc/bash.1 index 116bf1ef..f55f3ef0 100644 --- a/doc/bash.1 +++ b/doc/bash.1 @@ -2290,7 +2290,7 @@ Control how the results of pathname expansion are sorted. The value of this variable specifies the sort criteria and sort order for the results of pathname expansion. If this variable is unset or set to the null string, pathname expansion -uses the historial behavior of sorting by name. +uses the historical behavior of sorting by name. If set, a valid value begins with an optional \fI+\fP, which is ignored, or \fI\-\fP, which reverses the sort order from ascending to descending, followed by a sort specifier. diff --git a/doc/bash.info b/doc/bash.info index c6d0d4be..eff23a09 100644 --- a/doc/bash.info +++ b/doc/bash.info @@ -1,9 +1,9 @@ This is bash.info, produced by makeinfo version 6.8 from bashref.texi. This text is a brief description of the features that are present in the -Bash shell (version 5.3, 1 November 2023). +Bash shell (version 5.3, 6 November 2023). - This is Edition 5.3, last updated 1 November 2023, of 'The GNU Bash + This is Edition 5.3, last updated 6 November 2023, of 'The GNU Bash Reference Manual', for 'Bash', Version 5.3. Copyright (C) 1988-2023 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, 1 November 2023). The Bash home page is +Bash shell (version 5.3, 6 November 2023). The Bash home page is . - This is Edition 5.3, last updated 1 November 2023, of 'The GNU Bash + This is Edition 5.3, last updated 6 November 2023, of 'The GNU Bash Reference Manual', for 'Bash', Version 5.3. Bash contains features that appear in other popular shells, and some @@ -4089,8 +4089,10 @@ standard. shared object FILENAME, on systems that support dynamic loading. Bash will use the value of the 'BASH_LOADABLES_PATH' variable as a colon-separated list of directories in which to search for - FILENAME. The default is system-dependent. The '-d' option will - delete a builtin loaded with '-f'. + FILENAME, if FILENAME does not contain a slash. The default is + system-dependent, and may include "." to force a search of the + current directory. The '-d' option will delete a builtin loaded + with '-f'. If there are no options, a list of the shell builtins is displayed. The '-s' option restricts 'enable' to the POSIX special builtins. @@ -5165,8 +5167,9 @@ This builtin allows you to change additional shell optional behavior. string is not translated, this has no effect. 'nullglob' - If set, Bash allows filename patterns which match no files to - expand to a null string, rather than themselves. + If set, filename expansion patterns which match no files + (*note Filename Expansion::) expand to nothing and are + removed, rather than expanding to themselves. 'patsub_replacement' If set, Bash expands occurrences of '&' in the replacement @@ -5246,8 +5249,8 @@ differently than the rest of the Bash builtin commands. The Bash POSIX mode is described in *note Bash POSIX Mode::. These are the POSIX special builtins: - break : . continue eval exec exit export readonly return set - shift trap unset + break : . source continue eval exec exit export readonly return set + shift times trap unset  File: bash.info, Node: Shell Variables, Next: Bash Features, Prev: Shell Builtin Commands, Up: Top @@ -5698,7 +5701,7 @@ Variables::). Control how the results of filename expansion are sorted. The value of this variable specifies the sort criteria and sort order for the results of filename expansion. If this variable is unset - or set to the null string, filename expansion uses the historial + or set to the null string, filename expansion uses the historical behavior of sorting by name. If set, a valid value begins with an optional '+', which is ignored, or '-', which reverses the sort order from ascending to descending, followed by a sort specifier. @@ -9678,6 +9681,13 @@ File: bash.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up: Bin result as shell commands. Bash attempts to invoke '$VISUAL', '$EDITOR', and 'emacs' as the editor, in that order. +'execute-named-command (M-x)' + 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 supplied + with a numeric argument, it passes that argument to the function it + executes. +  File: bash.info, Node: Readline vi Mode, Next: Programmable Completion, Prev: Bindable Readline Commands, Up: Command Line Editing @@ -11119,7 +11129,7 @@ does not provide the necessary support. another instance of the shell from the environment. This option is enabled by default. -'--enable-glob-asciirange-default' +'--enable-glob-asciiranges-default' Set the default value of the 'globasciiranges' shell option described above under *note The Shopt Builtin:: to be enabled. This controls the behavior of character ranges when used in pattern @@ -12159,26 +12169,26 @@ D.1 Index of Shell Builtin Commands (line 153) * hash: Bourne Shell Builtins. (line 197) -* help: Bash Builtins. (line 351) +* help: Bash Builtins. (line 353) * history: Bash History Builtins. (line 46) * jobs: Job Control Builtins. (line 27) * kill: Job Control Builtins. (line 58) -* let: Bash Builtins. (line 370) -* local: Bash Builtins. (line 378) -* logout: Bash Builtins. (line 395) -* mapfile: Bash Builtins. (line 400) +* let: Bash Builtins. (line 372) +* local: Bash Builtins. (line 380) +* logout: Bash Builtins. (line 397) +* mapfile: Bash Builtins. (line 402) * popd: Directory Stack Builtins. (line 35) -* printf: Bash Builtins. (line 446) +* printf: Bash Builtins. (line 448) * pushd: Directory Stack Builtins. (line 69) * pwd: Bourne Shell Builtins. (line 222) -* read: Bash Builtins. (line 514) -* readarray: Bash Builtins. (line 617) +* read: Bash Builtins. (line 516) +* readarray: Bash Builtins. (line 619) * readonly: Bourne Shell Builtins. (line 232) * return: Bourne Shell Builtins. @@ -12187,7 +12197,7 @@ D.1 Index of Shell Builtin Commands * shift: Bourne Shell Builtins. (line 272) * shopt: The Shopt Builtin. (line 9) -* source: Bash Builtins. (line 626) +* source: Bash Builtins. (line 628) * suspend: Job Control Builtins. (line 116) * test: Bourne Shell Builtins. @@ -12198,12 +12208,12 @@ D.1 Index of Shell Builtin Commands (line 393) * true: Bourne Shell Builtins. (line 455) -* type: Bash Builtins. (line 631) -* typeset: Bash Builtins. (line 669) -* ulimit: Bash Builtins. (line 675) +* type: Bash Builtins. (line 633) +* typeset: Bash Builtins. (line 671) +* ulimit: Bash Builtins. (line 677) * umask: Bourne Shell Builtins. (line 460) -* unalias: Bash Builtins. (line 781) +* unalias: Bash Builtins. (line 783) * unset: Bourne Shell Builtins. (line 478) * wait: Job Control Builtins. @@ -12581,6 +12591,8 @@ D.4 Function Index * end-of-line (C-e): Commands For Moving. (line 9) * exchange-point-and-mark (C-x C-x): Miscellaneous Commands. (line 37) +* execute-named-command (M-x): Miscellaneous Commands. + (line 146) * fetch-history (): Commands For History. (line 103) * forward-backward-delete-char (): Commands For Text. (line 21) @@ -12933,84 +12945,84 @@ Node: Shell Scripts137019 Node: Shell Builtin Commands140043 Node: Bourne Shell Builtins142078 Node: Bash Builtins165467 -Node: Modifying Shell Behavior198403 -Node: The Set Builtin198745 -Node: The Shopt Builtin209716 -Node: Special Builtins225851 -Node: Shell Variables226827 -Node: Bourne Shell Variables227261 -Node: Bash Variables229362 -Node: Bash Features264427 -Node: Invoking Bash265437 -Node: Bash Startup Files271568 -Node: Interactive Shells276696 -Node: What is an Interactive Shell?277104 -Node: Is this Shell Interactive?277750 -Node: Interactive Shell Behavior278562 -Node: Bash Conditional Expressions282188 -Node: Shell Arithmetic287098 -Node: Aliases290056 -Node: Arrays292947 -Node: The Directory Stack299578 -Node: Directory Stack Builtins300359 -Node: Controlling the Prompt304616 -Node: The Restricted Shell307578 -Node: Bash POSIX Mode310185 -Node: Shell Compatibility Mode326439 -Node: Job Control334684 -Node: Job Control Basics335141 -Node: Job Control Builtins340140 -Node: Job Control Variables345932 -Node: Command Line Editing347085 -Node: Introduction and Notation348753 -Node: Readline Interaction350373 -Node: Readline Bare Essentials351561 -Node: Readline Movement Commands353347 -Node: Readline Killing Commands354304 -Node: Readline Arguments356222 -Node: Searching357263 -Node: Readline Init File359446 -Node: Readline Init File Syntax360704 -Node: Conditional Init Constructs384726 -Node: Sample Init File388919 -Node: Bindable Readline Commands392040 -Node: Commands For Moving393241 -Node: Commands For History395289 -Node: Commands For Text400280 -Node: Commands For Killing404255 -Node: Numeric Arguments406956 -Node: Commands For Completion408092 -Node: Keyboard Macros412280 -Node: Miscellaneous Commands412965 -Node: Readline vi Mode419000 -Node: Programmable Completion419904 -Node: Programmable Completion Builtins427681 -Node: A Programmable Completion Example438798 -Node: Using History Interactively444043 -Node: Bash History Facilities444724 -Node: Bash History Builtins447732 -Node: History Interaction452820 -Node: Event Designators456630 -Node: Word Designators458165 -Node: Modifiers460027 -Node: Installing Bash461832 -Node: Basic Installation462966 -Node: Compilers and Options466685 -Node: Compiling For Multiple Architectures467423 -Node: Installation Names469112 -Node: Specifying the System Type471218 -Node: Sharing Defaults471932 -Node: Operation Controls472602 -Node: Optional Features473557 -Node: Reporting Bugs484773 -Node: Major Differences From The Bourne Shell486104 -Node: GNU Free Documentation License502959 -Node: Indexes528133 -Node: Builtin Index528584 -Node: Reserved Word Index535682 -Node: Variable Index538127 -Node: Function Index555258 -Node: Concept Index568976 +Node: Modifying Shell Behavior198516 +Node: The Set Builtin198858 +Node: The Shopt Builtin209829 +Node: Special Builtins226021 +Node: Shell Variables227010 +Node: Bourne Shell Variables227444 +Node: Bash Variables229545 +Node: Bash Features264611 +Node: Invoking Bash265621 +Node: Bash Startup Files271752 +Node: Interactive Shells276880 +Node: What is an Interactive Shell?277288 +Node: Is this Shell Interactive?277934 +Node: Interactive Shell Behavior278746 +Node: Bash Conditional Expressions282372 +Node: Shell Arithmetic287282 +Node: Aliases290240 +Node: Arrays293131 +Node: The Directory Stack299762 +Node: Directory Stack Builtins300543 +Node: Controlling the Prompt304800 +Node: The Restricted Shell307762 +Node: Bash POSIX Mode310369 +Node: Shell Compatibility Mode326623 +Node: Job Control334868 +Node: Job Control Basics335325 +Node: Job Control Builtins340324 +Node: Job Control Variables346116 +Node: Command Line Editing347269 +Node: Introduction and Notation348937 +Node: Readline Interaction350557 +Node: Readline Bare Essentials351745 +Node: Readline Movement Commands353531 +Node: Readline Killing Commands354488 +Node: Readline Arguments356406 +Node: Searching357447 +Node: Readline Init File359630 +Node: Readline Init File Syntax360888 +Node: Conditional Init Constructs384910 +Node: Sample Init File389103 +Node: Bindable Readline Commands392224 +Node: Commands For Moving393425 +Node: Commands For History395473 +Node: Commands For Text400464 +Node: Commands For Killing404439 +Node: Numeric Arguments407140 +Node: Commands For Completion408276 +Node: Keyboard Macros412464 +Node: Miscellaneous Commands413149 +Node: Readline vi Mode419515 +Node: Programmable Completion420419 +Node: Programmable Completion Builtins428196 +Node: A Programmable Completion Example439313 +Node: Using History Interactively444558 +Node: Bash History Facilities445239 +Node: Bash History Builtins448247 +Node: History Interaction453335 +Node: Event Designators457145 +Node: Word Designators458680 +Node: Modifiers460542 +Node: Installing Bash462347 +Node: Basic Installation463481 +Node: Compilers and Options467200 +Node: Compiling For Multiple Architectures467938 +Node: Installation Names469627 +Node: Specifying the System Type471733 +Node: Sharing Defaults472447 +Node: Operation Controls473117 +Node: Optional Features474072 +Node: Reporting Bugs485289 +Node: Major Differences From The Bourne Shell486620 +Node: GNU Free Documentation License503475 +Node: Indexes528649 +Node: Builtin Index529100 +Node: Reserved Word Index536198 +Node: Variable Index538643 +Node: Function Index555774 +Node: Concept Index569630  End Tag Table diff --git a/doc/bash.pdf b/doc/bash.pdf index d71ddf31..8cbf1310 100644 Binary files a/doc/bash.pdf and b/doc/bash.pdf differ diff --git a/doc/bashref.aux b/doc/bashref.aux index f0492513..c58af631 100644 --- a/doc/bashref.aux +++ b/doc/bashref.aux @@ -306,7 +306,7 @@ @xrdef{Programmable Completion-title}{Programmable Completion} @xrdef{Programmable Completion-snt}{Section@tie 8.6} @xrdef{Readline vi Mode-pg}{149} -@xrdef{Programmable Completion-pg}{149} +@xrdef{Programmable Completion-pg}{150} @xrdef{Programmable Completion Builtins-title}{Programmable Completion Builtins} @xrdef{Programmable Completion Builtins-snt}{Section@tie 8.7} @xrdef{Programmable Completion Builtins-pg}{152} diff --git a/doc/bashref.bt b/doc/bashref.bt index eb1771fa..6bcee5b7 100644 --- a/doc/bashref.bt +++ b/doc/bashref.bt @@ -36,7 +36,7 @@ \entry{mapfile}{63}{\code {mapfile}} \entry{printf}{64}{\code {printf}} \entry{read}{65}{\code {read}} -\entry{readarray}{66}{\code {readarray}} +\entry{readarray}{67}{\code {readarray}} \entry{source}{67}{\code {source}} \entry{type}{67}{\code {type}} \entry{typeset}{67}{\code {typeset}} diff --git a/doc/bashref.bts b/doc/bashref.bts index 792f7c8e..82afb1dc 100644 --- a/doc/bashref.bts +++ b/doc/bashref.bts @@ -57,7 +57,7 @@ \entry{\code {pwd}}{52} \initial {R} \entry{\code {read}}{65} -\entry{\code {readarray}}{66} +\entry{\code {readarray}}{67} \entry{\code {readonly}}{53} \entry{\code {return}}{53} \initial {S} diff --git a/doc/bashref.cp b/doc/bashref.cp index 82419930..8fc1e851 100644 --- a/doc/bashref.cp +++ b/doc/bashref.cp @@ -114,7 +114,7 @@ \entry{kill ring}{124}{kill ring} \entry{initialization file, readline}{125}{initialization file, readline} \entry{variables, readline}{126}{variables, readline} -\entry{programmable completion}{149}{programmable completion} +\entry{programmable completion}{150}{programmable completion} \entry{completion builtins}{152}{completion builtins} \entry{History, how to use}{158}{History, how to use} \entry{command history}{159}{command history} diff --git a/doc/bashref.cps b/doc/bashref.cps index 9cb152ee..5a4099c8 100644 --- a/doc/bashref.cps +++ b/doc/bashref.cps @@ -108,7 +108,7 @@ \entry{process group}{3} \entry{process group ID}{3} \entry{process substitution}{35} -\entry{programmable completion}{149} +\entry{programmable completion}{150} \entry{prompting}{107} \initial {Q} \entry{quoting}{6} diff --git a/doc/bashref.fn b/doc/bashref.fn index c8db4f78..6f865796 100644 --- a/doc/bashref.fn +++ b/doc/bashref.fn @@ -112,3 +112,4 @@ \entry{history-and-alias-expand-line ()}{149}{\code {history-and-alias-expand-line ()}} \entry{insert-last-argument (M-. or M-_)}{149}{\code {insert-last-argument (M-. or M-_)}} \entry{edit-and-execute-command (C-x C-e)}{149}{\code {edit-and-execute-command (C-x C-e)}} +\entry{execute-named-command (M-x)}{149}{\code {execute-named-command (M-x)}} diff --git a/doc/bashref.fns b/doc/bashref.fns index 31720235..608e8492 100644 --- a/doc/bashref.fns +++ b/doc/bashref.fns @@ -48,6 +48,7 @@ \entry{\code {end-of-history (M->)}}{140} \entry{\code {end-of-line (C-e)}}{139} \entry{\code {exchange-point-and-mark (C-x C-x)}}{147} +\entry{\code {execute-named-command (M-x)}}{149} \initial {F} \entry{\code {fetch-history ()}}{142} \entry{\code {forward-backward-delete-char ()}}{142} diff --git a/doc/bashref.info b/doc/bashref.info index 1171f18a..c7ecab62 100644 --- a/doc/bashref.info +++ b/doc/bashref.info @@ -2,9 +2,9 @@ This is bashref.info, produced by makeinfo version 6.8 from bashref.texi. This text is a brief description of the features that are present in the -Bash shell (version 5.3, 1 November 2023). +Bash shell (version 5.3, 6 November 2023). - This is Edition 5.3, last updated 1 November 2023, of 'The GNU Bash + This is Edition 5.3, last updated 6 November 2023, of 'The GNU Bash Reference Manual', for 'Bash', Version 5.3. Copyright (C) 1988-2023 Free Software Foundation, Inc. @@ -27,10 +27,10 @@ Bash Features ************* This text is a brief description of the features that are present in the -Bash shell (version 5.3, 1 November 2023). The Bash home page is +Bash shell (version 5.3, 6 November 2023). The Bash home page is . - This is Edition 5.3, last updated 1 November 2023, of 'The GNU Bash + This is Edition 5.3, last updated 6 November 2023, of 'The GNU Bash Reference Manual', for 'Bash', Version 5.3. Bash contains features that appear in other popular shells, and some @@ -4090,8 +4090,10 @@ standard. shared object FILENAME, on systems that support dynamic loading. Bash will use the value of the 'BASH_LOADABLES_PATH' variable as a colon-separated list of directories in which to search for - FILENAME. The default is system-dependent. The '-d' option will - delete a builtin loaded with '-f'. + FILENAME, if FILENAME does not contain a slash. The default is + system-dependent, and may include "." to force a search of the + current directory. The '-d' option will delete a builtin loaded + with '-f'. If there are no options, a list of the shell builtins is displayed. The '-s' option restricts 'enable' to the POSIX special builtins. @@ -5166,8 +5168,9 @@ This builtin allows you to change additional shell optional behavior. string is not translated, this has no effect. 'nullglob' - If set, Bash allows filename patterns which match no files to - expand to a null string, rather than themselves. + If set, filename expansion patterns which match no files + (*note Filename Expansion::) expand to nothing and are + removed, rather than expanding to themselves. 'patsub_replacement' If set, Bash expands occurrences of '&' in the replacement @@ -5247,8 +5250,8 @@ differently than the rest of the Bash builtin commands. The Bash POSIX mode is described in *note Bash POSIX Mode::. These are the POSIX special builtins: - break : . continue eval exec exit export readonly return set - shift trap unset + break : . source continue eval exec exit export readonly return set + shift times trap unset  File: bashref.info, Node: Shell Variables, Next: Bash Features, Prev: Shell Builtin Commands, Up: Top @@ -5699,7 +5702,7 @@ Variables::). Control how the results of filename expansion are sorted. The value of this variable specifies the sort criteria and sort order for the results of filename expansion. If this variable is unset - or set to the null string, filename expansion uses the historial + or set to the null string, filename expansion uses the historical behavior of sorting by name. If set, a valid value begins with an optional '+', which is ignored, or '-', which reverses the sort order from ascending to descending, followed by a sort specifier. @@ -9679,6 +9682,13 @@ File: bashref.info, Node: Miscellaneous Commands, Prev: Keyboard Macros, Up: result as shell commands. Bash attempts to invoke '$VISUAL', '$EDITOR', and 'emacs' as the editor, in that order. +'execute-named-command (M-x)' + 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 supplied + with a numeric argument, it passes that argument to the function it + executes. +  File: bashref.info, Node: Readline vi Mode, Next: Programmable Completion, Prev: Bindable Readline Commands, Up: Command Line Editing @@ -11120,7 +11130,7 @@ does not provide the necessary support. another instance of the shell from the environment. This option is enabled by default. -'--enable-glob-asciirange-default' +'--enable-glob-asciiranges-default' Set the default value of the 'globasciiranges' shell option described above under *note The Shopt Builtin:: to be enabled. This controls the behavior of character ranges when used in pattern @@ -12160,26 +12170,26 @@ D.1 Index of Shell Builtin Commands (line 153) * hash: Bourne Shell Builtins. (line 197) -* help: Bash Builtins. (line 351) +* help: Bash Builtins. (line 353) * history: Bash History Builtins. (line 46) * jobs: Job Control Builtins. (line 27) * kill: Job Control Builtins. (line 58) -* let: Bash Builtins. (line 370) -* local: Bash Builtins. (line 378) -* logout: Bash Builtins. (line 395) -* mapfile: Bash Builtins. (line 400) +* let: Bash Builtins. (line 372) +* local: Bash Builtins. (line 380) +* logout: Bash Builtins. (line 397) +* mapfile: Bash Builtins. (line 402) * popd: Directory Stack Builtins. (line 35) -* printf: Bash Builtins. (line 446) +* printf: Bash Builtins. (line 448) * pushd: Directory Stack Builtins. (line 69) * pwd: Bourne Shell Builtins. (line 222) -* read: Bash Builtins. (line 514) -* readarray: Bash Builtins. (line 617) +* read: Bash Builtins. (line 516) +* readarray: Bash Builtins. (line 619) * readonly: Bourne Shell Builtins. (line 232) * return: Bourne Shell Builtins. @@ -12188,7 +12198,7 @@ D.1 Index of Shell Builtin Commands * shift: Bourne Shell Builtins. (line 272) * shopt: The Shopt Builtin. (line 9) -* source: Bash Builtins. (line 626) +* source: Bash Builtins. (line 628) * suspend: Job Control Builtins. (line 116) * test: Bourne Shell Builtins. @@ -12199,12 +12209,12 @@ D.1 Index of Shell Builtin Commands (line 393) * true: Bourne Shell Builtins. (line 455) -* type: Bash Builtins. (line 631) -* typeset: Bash Builtins. (line 669) -* ulimit: Bash Builtins. (line 675) +* type: Bash Builtins. (line 633) +* typeset: Bash Builtins. (line 671) +* ulimit: Bash Builtins. (line 677) * umask: Bourne Shell Builtins. (line 460) -* unalias: Bash Builtins. (line 781) +* unalias: Bash Builtins. (line 783) * unset: Bourne Shell Builtins. (line 478) * wait: Job Control Builtins. @@ -12582,6 +12592,8 @@ D.4 Function Index * end-of-line (C-e): Commands For Moving. (line 9) * exchange-point-and-mark (C-x C-x): Miscellaneous Commands. (line 37) +* execute-named-command (M-x): Miscellaneous Commands. + (line 146) * fetch-history (): Commands For History. (line 103) * forward-backward-delete-char (): Commands For Text. (line 21) @@ -12934,84 +12946,84 @@ Node: Shell Scripts137172 Node: Shell Builtin Commands140199 Node: Bourne Shell Builtins142237 Node: Bash Builtins165629 -Node: Modifying Shell Behavior198568 -Node: The Set Builtin198913 -Node: The Shopt Builtin209887 -Node: Special Builtins226025 -Node: Shell Variables227004 -Node: Bourne Shell Variables227441 -Node: Bash Variables229545 -Node: Bash Features264613 -Node: Invoking Bash265626 -Node: Bash Startup Files271760 -Node: Interactive Shells276891 -Node: What is an Interactive Shell?277302 -Node: Is this Shell Interactive?277951 -Node: Interactive Shell Behavior278766 -Node: Bash Conditional Expressions282395 -Node: Shell Arithmetic287308 -Node: Aliases290269 -Node: Arrays293163 -Node: The Directory Stack299797 -Node: Directory Stack Builtins300581 -Node: Controlling the Prompt304841 -Node: The Restricted Shell307806 -Node: Bash POSIX Mode310416 -Node: Shell Compatibility Mode326673 -Node: Job Control334921 -Node: Job Control Basics335381 -Node: Job Control Builtins340383 -Node: Job Control Variables346178 -Node: Command Line Editing347334 -Node: Introduction and Notation349005 -Node: Readline Interaction350628 -Node: Readline Bare Essentials351819 -Node: Readline Movement Commands353608 -Node: Readline Killing Commands354568 -Node: Readline Arguments356489 -Node: Searching357533 -Node: Readline Init File359719 -Node: Readline Init File Syntax360980 -Node: Conditional Init Constructs385005 -Node: Sample Init File389201 -Node: Bindable Readline Commands392325 -Node: Commands For Moving393529 -Node: Commands For History395580 -Node: Commands For Text400574 -Node: Commands For Killing404552 -Node: Numeric Arguments407256 -Node: Commands For Completion408395 -Node: Keyboard Macros412586 -Node: Miscellaneous Commands413274 -Node: Readline vi Mode419312 -Node: Programmable Completion420219 -Node: Programmable Completion Builtins427999 -Node: A Programmable Completion Example439119 -Node: Using History Interactively444367 -Node: Bash History Facilities445051 -Node: Bash History Builtins448062 -Node: History Interaction453153 -Node: Event Designators456966 -Node: Word Designators458504 -Node: Modifiers460369 -Node: Installing Bash462177 -Node: Basic Installation463314 -Node: Compilers and Options467036 -Node: Compiling For Multiple Architectures467777 -Node: Installation Names469469 -Node: Specifying the System Type471578 -Node: Sharing Defaults472295 -Node: Operation Controls472968 -Node: Optional Features473926 -Node: Reporting Bugs485145 -Node: Major Differences From The Bourne Shell486479 -Node: GNU Free Documentation License503337 -Node: Indexes528514 -Node: Builtin Index528968 -Node: Reserved Word Index536069 -Node: Variable Index538517 -Node: Function Index555651 -Node: Concept Index569372 +Node: Modifying Shell Behavior198681 +Node: The Set Builtin199026 +Node: The Shopt Builtin210000 +Node: Special Builtins226195 +Node: Shell Variables227187 +Node: Bourne Shell Variables227624 +Node: Bash Variables229728 +Node: Bash Features264797 +Node: Invoking Bash265810 +Node: Bash Startup Files271944 +Node: Interactive Shells277075 +Node: What is an Interactive Shell?277486 +Node: Is this Shell Interactive?278135 +Node: Interactive Shell Behavior278950 +Node: Bash Conditional Expressions282579 +Node: Shell Arithmetic287492 +Node: Aliases290453 +Node: Arrays293347 +Node: The Directory Stack299981 +Node: Directory Stack Builtins300765 +Node: Controlling the Prompt305025 +Node: The Restricted Shell307990 +Node: Bash POSIX Mode310600 +Node: Shell Compatibility Mode326857 +Node: Job Control335105 +Node: Job Control Basics335565 +Node: Job Control Builtins340567 +Node: Job Control Variables346362 +Node: Command Line Editing347518 +Node: Introduction and Notation349189 +Node: Readline Interaction350812 +Node: Readline Bare Essentials352003 +Node: Readline Movement Commands353792 +Node: Readline Killing Commands354752 +Node: Readline Arguments356673 +Node: Searching357717 +Node: Readline Init File359903 +Node: Readline Init File Syntax361164 +Node: Conditional Init Constructs385189 +Node: Sample Init File389385 +Node: Bindable Readline Commands392509 +Node: Commands For Moving393713 +Node: Commands For History395764 +Node: Commands For Text400758 +Node: Commands For Killing404736 +Node: Numeric Arguments407440 +Node: Commands For Completion408579 +Node: Keyboard Macros412770 +Node: Miscellaneous Commands413458 +Node: Readline vi Mode419827 +Node: Programmable Completion420734 +Node: Programmable Completion Builtins428514 +Node: A Programmable Completion Example439634 +Node: Using History Interactively444882 +Node: Bash History Facilities445566 +Node: Bash History Builtins448577 +Node: History Interaction453668 +Node: Event Designators457481 +Node: Word Designators459019 +Node: Modifiers460884 +Node: Installing Bash462692 +Node: Basic Installation463829 +Node: Compilers and Options467551 +Node: Compiling For Multiple Architectures468292 +Node: Installation Names469984 +Node: Specifying the System Type472093 +Node: Sharing Defaults472810 +Node: Operation Controls473483 +Node: Optional Features474441 +Node: Reporting Bugs485661 +Node: Major Differences From The Bourne Shell486995 +Node: GNU Free Documentation License503853 +Node: Indexes529030 +Node: Builtin Index529484 +Node: Reserved Word Index536585 +Node: Variable Index539033 +Node: Function Index556167 +Node: Concept Index570026  End Tag Table diff --git a/doc/bashref.log b/doc/bashref.log index 99b84365..fd66d5b2 100644 --- a/doc/bashref.log +++ b/doc/bashref.log @@ -1,12 +1,12 @@ -This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/MacPorts 2021.58693_0) (preloaded format=pdfetex 2021.8.30) 11 OCT 2023 10:24 +This is pdfTeX, Version 3.141592653-2.6-1.40.22 (TeX Live 2021/MacPorts 2021.58693_0) (preloaded format=pdfetex 2021.8.30) 24 NOV 2023 12:20 entering extended mode restricted \write18 enabled. file:line:error style messages enabled. %&-line parsing enabled. -**\input /usr/local/src/bash/bash-20231007/doc/bashref.texi \input /usr/local/s -rc/bash/bash-20231007/doc/bashref.texi -(/usr/local/src/bash/bash-20231007/doc/bashref.texi -(/usr/local/src/bash/bash-20231007/doc/texinfo.tex +**\input /usr/local/src/bash/bash-20231114/doc/bashref.texi \input /usr/local/s +rc/bash/bash-20231114/doc/bashref.texi +(/usr/local/src/bash/bash-20231114/doc/bashref.texi +(/usr/local/src/bash/bash-20231114/doc/texinfo.tex Loading texinfo [version 2015-11-22.14]: \outerhsize=\dimen16 \outervsize=\dimen17 @@ -162,15 +162,15 @@ This is `epsf.tex' v2.7.4 <14 February 2011> texinfo.tex: doing @include of version.texi -(/usr/local/src/bash/bash-20231007/doc/version.texi) [1{/opt/local/var/db/texmf +(/usr/local/src/bash/bash-20231114/doc/version.texi) [1{/opt/local/var/db/texmf /fonts/map/pdftex/updmap/pdftex.map}] [2] -(/usr/local/build/bash/bash-20231007/doc/bashref.toc [-1] [-2] [-3]) [-4] -(/usr/local/build/bash/bash-20231007/doc/bashref.toc) -(/usr/local/build/bash/bash-20231007/doc/bashref.toc) Chapter 1 +(/usr/local/build/bash/bash-20231114/doc/bashref.toc [-1] [-2] [-3]) [-4] +(/usr/local/build/bash/bash-20231114/doc/bashref.toc) +(/usr/local/build/bash/bash-20231114/doc/bashref.toc) Chapter 1 \openout0 = `bashref.toc'. -(/usr/local/build/bash/bash-20231007/doc/bashref.aux) +(/usr/local/build/bash/bash-20231114/doc/bashref.aux) \openout1 = `bashref.aux'. Chapter 2 [1] [2] @@ -230,7 +230,7 @@ Overfull \hbox (5.95723pt too wide) in paragraph at lines 724--725 [49] [50] [51] [52] [53] [54] [55] [56] [57] [58] [59] [60] [61] [62] [63] [64] [65] [66] [67] [68] -Overfull \hbox (38.26585pt too wide) in paragraph at lines 5412--5412 +Overfull \hbox (38.26585pt too wide) in paragraph at lines 5414--5414 []@texttt set [-abefhkmnptuvxBCEHPT] [-o @textttsl option-name@texttt ] [--] [ -] [@textttsl ar-gu-ment []@texttt ][] @@ -243,7 +243,7 @@ Overfull \hbox (38.26585pt too wide) in paragraph at lines 5412--5412 .etc. -Overfull \hbox (38.26585pt too wide) in paragraph at lines 5413--5413 +Overfull \hbox (38.26585pt too wide) in paragraph at lines 5415--5415 []@texttt set [+abefhkmnptuvxBCEHPT] [+o @textttsl option-name@texttt ] [--] [ -] [@textttsl ar-gu-ment []@texttt ][] @@ -262,7 +262,7 @@ Overfull \hbox (38.26585pt too wide) in paragraph at lines 5413--5413 [119] [120] texinfo.tex: doing @include of rluser.texi - (/usr/local/src/bash/bash-20231007/lib/readline/doc/rluser.texi + (/usr/local/src/bash/bash-20231114/lib/readline/doc/rluser.texi Chapter 8 [121] [122] [123] [124] [125] [126] [127] [128] [129] [130] [131] [132] Underfull \hbox (badness 7540) in paragraph at lines 878--884 @@ -312,10 +312,10 @@ gnored[] texinfo.tex: doing @include of hsuser.texi -(/usr/local/src/bash/bash-20231007/lib/readline/doc/hsuser.texi Chapter 9 +(/usr/local/src/bash/bash-20231114/lib/readline/doc/hsuser.texi Chapter 9 [158] [159] [160] [161] [162] [163]) Chapter 10 [164] [165] [166] [167] [168] -Underfull \hbox (badness 10000) in paragraph at lines 9749--9758 +Underfull \hbox (badness 10000) in paragraph at lines 9759--9768 []@textrm All of the fol-low-ing op-tions ex-cept for `@texttt alt-array-implem entation[]@textrm '[], @@ -328,7 +328,7 @@ entation[]@textrm '[], .etc. -Underfull \hbox (badness 10000) in paragraph at lines 9749--9758 +Underfull \hbox (badness 10000) in paragraph at lines 9759--9768 @textrm `@texttt disabled-builtins[]@textrm '[], `@texttt direxpand-default[]@t extrm '[], `@texttt strict-posix-default[]@textrm '[], and @@ -344,13 +344,13 @@ extrm '[], `@texttt strict-posix-default[]@textrm '[], and [178] [179] Appendix C [180] texinfo.tex: doing @include of fdl.texi - (/usr/local/src/bash/bash-20231007/doc/fdl.texi + (/usr/local/src/bash/bash-20231114/doc/fdl.texi [181] [182] [183] [184] [185] [186] [187]) Appendix D [188] [189] [190] [191] [192] [193] [194] [195] [196] [197] ) Here is how much of TeX's memory you used: 4104 strings out of 497086 47614 string characters out of 6206517 - 142179 words of memory out of 5000000 + 141907 words of memory out of 5000000 4869 multiletter control sequences out of 15000+600000 34315 words of font info for 116 fonts, out of 8000000 for 9000 51 hyphenation exceptions out of 8191 @@ -372,10 +372,10 @@ texlive/fonts/type1/public/amsfonts/cm/cmtt12.pfb> -Output written on bashref.pdf (203 pages, 813993 bytes). +Output written on bashref.pdf (203 pages, 815170 bytes). PDF statistics: - 2824 PDF objects out of 2984 (max. 8388607) - 2574 compressed objects within 26 object streams + 2829 PDF objects out of 2984 (max. 8388607) + 2579 compressed objects within 26 object streams 331 named destinations out of 1000 (max. 500000) 1157 words of extra memory for PDF output out of 10000 (max. 10000000) diff --git a/doc/bashref.pdf b/doc/bashref.pdf index 9b6f44c2..1d2b2b76 100644 Binary files a/doc/bashref.pdf and b/doc/bashref.pdf differ diff --git a/doc/bashref.texi b/doc/bashref.texi index 033c0c15..d9f14da9 100644 --- a/doc/bashref.texi +++ b/doc/bashref.texi @@ -6649,7 +6649,7 @@ Control how the results of filename expansion are sorted. The value of this variable specifies the sort criteria and sort order for the results of filename expansion. If this variable is unset or set to the null string, filename expansion -uses the historial behavior of sorting by name. +uses the historical behavior of sorting by name. If set, a valid value begins with an optional @samp{+}, which is ignored, or @samp{-}, which reverses the sort order from ascending to descending, followed by a sort specifier. @@ -9863,7 +9863,7 @@ Include support for importing function definitions exported by another instance of the shell from the environment. This option is enabled by default. -@item --enable-glob-asciirange-default +@item --enable-glob-asciiranges-default Set the default value of the @code{globasciiranges} shell option described above under @ref{The Shopt Builtin} to be enabled. This controls the behavior of character ranges when used in pattern matching diff --git a/doc/bashref.toc b/doc/bashref.toc index 0a689500..f70717e6 100644 --- a/doc/bashref.toc +++ b/doc/bashref.toc @@ -112,7 +112,7 @@ @numsubsecentry{Keyboard Macros}{8.4.7}{Keyboard Macros}{146} @numsubsecentry{Some Miscellaneous Commands}{8.4.8}{Miscellaneous Commands}{147} @numsecentry{Readline vi Mode}{8.5}{Readline vi Mode}{149} -@numsecentry{Programmable Completion}{8.6}{Programmable Completion}{149} +@numsecentry{Programmable Completion}{8.6}{Programmable Completion}{150} @numsecentry{Programmable Completion Builtins}{8.7}{Programmable Completion Builtins}{152} @numsecentry{A Programmable Completion Example}{8.8}{A Programmable Completion Example}{156} @numchapentry{Using History Interactively}{9}{Using History Interactively}{159} diff --git a/examples/loadables/Makefile.in b/examples/loadables/Makefile.in index c2ffe4c6..d709a569 100644 --- a/examples/loadables/Makefile.in +++ b/examples/loadables/Makefile.in @@ -103,7 +103,7 @@ INC = -I. -I.. -I$(topdir) -I$(topdir)/lib -I$(topdir)/builtins -I${srcdir} \ ALLPROG = print truefalse sleep finfo logname basename dirname fdflags \ tty pathchk tee head mkdir rmdir mkfifo mktemp printenv id whoami \ uname sync push ln unlink realpath strftime mypid setpgid seq rm \ - accept csv dsv cut stat getconf kv + accept csv dsv cut stat getconf kv strptime OTHERPROG = necho hello cat pushd asort SUBDIRS = perl @@ -235,6 +235,9 @@ cut: cut.o strftime: strftime.o $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ strftime.o $(SHOBJ_LIBS) +strptime: strptime.o + $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ strptime.o $(SHOBJ_LIBS) + mypid: mypid.o $(SHOBJ_LD) $(SHOBJ_LDFLAGS) $(SHOBJ_XLDFLAGS) -o $@ mypid.o $(SHOBJ_LIBS) @@ -308,6 +311,14 @@ uninstall-unsupported: install: install-$(SHOBJ_STATUS) uninstall: uninstall-$(SHOBJ_STATUS) +OBJS = print.o truefalse.o accept.o sleep.o finfo.o getconf.o logname.o \ + basename.o dirname.o tty.o pathchk.o tee.o head.o rmdir.o necho.o \ + hello.o cat.o csv.o dsv.o kv.o cut.o printenv.o id.o whoami.o uname.o \ + sync.o push.o mkdir.o mktemp.o realpath.o strftime.o setpgid.o stat.o \ + fdflags.o seq.o asort.o strptime.o + +${OBJS}: ${BUILD_DIR}/config.h + print.o: print.c truefalse.o: truefalse.c accept.o: accept.c @@ -344,3 +355,4 @@ stat.o: stat.c fdflags.o: fdflags.c seq.o: seq.c asort.o: asort.c +strptime.o: strptime.c diff --git a/examples/loadables/fdflags.c b/examples/loadables/fdflags.c index fbb7f66a..e5579ee0 100644 --- a/examples/loadables/fdflags.c +++ b/examples/loadables/fdflags.c @@ -164,6 +164,7 @@ printone(int fd, int p, int verbose) if ((f = getflags(fd, p)) == -1) return; + /* maybe make the file descriptor printing optional if only one argument */ printf ("%d:", fd); for (i = 0; i < N_FLAGS; i++) @@ -224,16 +225,14 @@ parseflags(char *s, int *p, int *n) } static void -setone(int fd, char *v, int verbose) +setone(int fd, int pos, int neg, int verbose) { - int f, n, pos, neg, cloexec; + int f, n, cloexec; f = getflags(fd, 1); if (f == -1) return; - parseflags(v, &pos, &neg); - cloexec = -1; if ((pos & O_CLOEXEC) && (f & O_CLOEXEC) == 0) @@ -281,6 +280,7 @@ int fdflags_builtin (WORD_LIST *list) { int opt, maxfd, i, num, verbose, setflag; + int pos, neg; char *setspec; WORD_LIST *l; intmax_t inum; @@ -311,6 +311,9 @@ fdflags_builtin (WORD_LIST *list) if (list == 0 && setflag) return (EXECUTION_SUCCESS); + if (setflag) + parseflags (setspec, &pos, &neg); + if (list == 0) { maxfd = getmaxfd (); @@ -335,12 +338,12 @@ fdflags_builtin (WORD_LIST *list) } num = inum; /* truncate to int */ if (setflag) - setone (num, setspec, verbose); + setone (num, pos, neg, verbose); else printone (num, 1, verbose); } - return (opt); + return (sh_chkwrite (opt)); } char *fdflags_doc[] = diff --git a/examples/loadables/strptime.c b/examples/loadables/strptime.c new file mode 100644 index 00000000..194ca470 --- /dev/null +++ b/examples/loadables/strptime.c @@ -0,0 +1,241 @@ +/* strptime - take a date-time string and turn it into seconds since the epoch. */ + +/* See Makefile for compilation details. */ + +/* + Copyright (C) 2023 Free Software Foundation, Inc. + + This file is part of GNU Bash. + Bash is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Bash is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Bash. If not, see . +*/ + +#include + +#if defined (HAVE_UNISTD_H) +# include +#endif + +#include "bashtypes.h" +#include "posixtime.h" + +#include + +#include "builtins.h" +#include "shell.h" +#include "bashgetopt.h" +#include "common.h" + +struct date_modifier +{ + char *shorthand; + int incr; +}; + +static struct date_modifier date_time_modifiers[] = +{ + { "now", 0 }, + { "today", 0 }, + { "tomorrow", 24*60*60 }, + { "yesterday", -24*60*60 }, + { "day after tomorrow", 48*60*60 }, + { "two days ago", -48*60*60 }, + { "next week", 7*24*60*60 }, + { "last week", -7*24*60*60 }, + { "the day after tomorrow", 48*60*60 }, + { 0, 0 } +}; + +static char * const date_time_formats[] = +{ + "%a %b %d %T %Z %Y", /* Unix date */ + "%a %b %d %T %Y", /* Wkd Mon DD HH:MM:SS YYYY */ + "%FT%T%z", /* ISO8601 time YYYY-mm-ddTHH:MM:SSzone */ + "%FT%R%z", /* ISO8601 time YYYY-mm-ddTHH:MMzone */ + "%G-%m-%dT%T%z", /* ISO8601 time YYYY-mm-ddTHH:MM:SSzone */ + "%G-%m-%dT%R%z", /* ISO8601 time YYYY-mm-ddTHH:MMzone */ + "%G-%m-%d", /* ISO8601 time YYYY-mm-dd */ + /* Can't do 8601 time zone offset with colon or fractions of a second */ + "%a, %d %b %Y %T %Z", /* RFC822/RFC2822 time */ + "%a, %d %b %Y %T %z", /* RFC822/RFC2822 time */ + "%D %T", /* mm/dd/yy HH:MM:SS */ + "%D %R", /* mm/dd/yy HH:MM */ + "%D %r", /* mm/dd/yy HH:MM:SS a.m. */ + "%D %I:%M %p", /* mm/dd/yy HH:MM p.m. */ + "%m/%d/%Y %T", /* mm/dd/YYYY HH:MM:SS */ + "%m/%d/%Y %R", /* mm/dd/YYYY HH:MM */ + "%m/%d/%Y %r", /* mm/dd/YYYY HH:MM:SS a.m */ + "%m/%d/%Y %I:%M %p", /* mm/dd/YYYY HH:MM p.m. */ + "%m-%d-%Y %T", /* mm-dd-YYYY HH:MM:SS */ + "%m-%d-%Y %R", /* mm-dd-YYYY HH:MM */ + "%m-%d-%Y %r", /* mm-dd-YYYY HH:MM:SS a.m. */ + "%m-%d-%Y %I:%M %p", /* mm-dd-YYYY HH:MM p.m. */ + "%Y/%m/%d %T", /* YYYY/mm/dd HH:MM:SS */ + "%Y/%m/%d %R", /* YYYY/mm/dd HH:MM */ + "%Y/%m/%d %r", /* YYYY/mm/dd hh:MM:SS a.m. */ + "%F %T", /* YYYY-mm-dd HH:MM:SS */ + "%F %r", /* YYYY-mm-dd HH:MM:SS p.m. */ + "%F %R", /* YYYY-mm-dd HH:MM */ + "%F %I:%M %p", /* YYYY-mm-dd HH:MM a.m. */ + "%F", /* YYYY-mm-dd ISO8601 time */ + "%T", /* HH:MM:SS */ + "%H.%M.%S", /* HH.MM.SS */ + /* From coreutils-9.2 date */ + "%Y-%m-%dT%H:%M:%S%z", /* ISO8601 time */ + "%Y-%m-%dT%H%z", /* ISO8601 time */ + "%Y-%m-%dT%H:%M%z", /* ISO8601 time */ + /* RFC 3339 time */ + "%Y-%m-%d %H:%M:%S%z", /* RFC 3339 time */ + "%Y-%m-%dT%H:%M:%S%z", /* RFC 3339 time */ + /* more oddball formats */ + "%m.%d.%Y %T", /* mm.dd.YYYY HH:MM:SS */ + "%m.%d.%Y %R", /* mm.dd.YYYY HH:MM */ + "%m.%d.%Y %r", /* mm.dd.YYYY HH:MM:SS a.m. */ + "%m.%d.%Y %I:%M %p", /* mm.dd.YYYY HH:MM p.m. */ + "%m/%d/%Y", /* mm/dd/YYYY */ + "%d %B %Y %T", /* dd Month YYYY HH:MM:SS */ + "%d %B %Y %R", /* dd Month YYYY HH:MM */ + "%d %B %Y %r", /* dd Month YYYY HH:MM:SS a.m. */ + "%d %B %Y %I:%M %p", /* dd Month YYYY HH:MM p.m. */ + "%d %b %Y %T", /* dd Mon YYYY HH:MM:SS */ + "%d %b %Y %R", /* dd Mon YYYY HH:MM */ + "%d %b %Y %r", /* dd Mon YYYY HH:MM:SS a.m. */ + "%d %b %Y %I:%M %p", /* dd Mon YYYY HH:MM p.m. */ + "%b %d, %Y %T", /* Mon dd, YYYY HH:MM:SS */ + "%b %d, %Y %R", /* Mon dd, YYYY HH:MM */ + "%b %d, %Y %r", /* Mon dd, YYYY HH:MM:SS a.m. */ + "%b %d, %Y %I:%M %p", /* Mon dd, YYYY HH:MM p.m. */ + "%m-%b-%Y", /* dd-Mon-YYYY */ + "%m-%b-%Y %T", /* dd-Mon-YYYY HH:MM:SS */ + "%m-%b-%Y %R", /* dd-Mon-YYYY HH:MM */ + "%m-%b-%Y %r", /* dd-Mon-YYYY HH:MM:SS a.m. */ + "%m-%b-%Y %I:%M %p", /* dd-Mon-YYYY HH:MM p.m. */ + "%d/%b/%Y:%T %z", /* NCSA log format dd/Mon/YYYY:HH:MM:SS zone */ + "%d/%b/%Y:%T%z", /* NCSA log format dd/Mon/YYYY:HH:MM:SSzone */ + /* No delimiters */ + "%Y%m%d %T", /* YYYYMMDD HH:MM:SS */ + "%Y%m%d %R", /* YYYYMMDD HH:MM */ + "%Y%m%d %r", /* YYYYMMDD HH:MM:SS a.m. */ + "%Y%m%d %I:%M %p", /* YYYYMMDD HH:MM p.m. */ + "%Y%m%d %H:%M:%S%z", /* YYYYMMDD HH:MM:SSzone */ + "%Y%m%dT%H:%M:%S%z", /* YYYYMMDDTHH:MM:SSzone */ + "%Y%m%dT%T", /* YYYYMMDDTHH:MM:SS */ + "%Y%m%dT%R", /* YYYYMMDDTHH:MM */ + /* Non-US formats */ + "%d-%m-%Y", /* dd-mm-YYYY */ + "%d-%m-%Y %T", /* dd-mm-YYYY HH:MM:SS */ + "%d-%m-%Y %R", /* dd-mm-YYYY HH:MM */ + "%d-%m-%Y %r", /* dd-mm-YYYY HH:MM:SS a.m. */ + "%d-%m-%Y %I:%M %p", /* dd-mm-YYYY HH:MM p.m. */ + "%d/%m/%Y %T", /* dd/mm/YYYY HH:MM:SS */ + "%d/%m/%Y %R", /* dd/mm/YYYY HH:MM */ + "%d/%m/%Y %r", /* dd/mm/YYYY HH:MM:SS a.m. */ + "%d/%m/%Y %I:%M %p", /* dd/mm/YYYY HH:MM p.m. */ + "%Y-%d-%m %T", /* YYYY-dd-mm HH:MM:SS */ + "%Y-%d-%m %R", /* YYYY-dd-mm HH:MM */ + "%d-%m-%Y %T", /* dd-mm-YYYY HH:MM:SS */ + "%d-%m-%Y %R", /* dd-mm-YYYY HH:MM */ + "%d-%m-%Y %r", /* dd-mm-YYYY HH:MM:SS a.m. */ + "%d-%m-%Y %I:%M %p", /* dd-mm-YYYY HH:MM p.m. */ + "%d.%m.%Y %T", /* dd.mm.YYYY HH:MM:SS */ + "%d.%m.%Y %R", /* dd.mm.YYYY HH:MM */ + "%d.%m.%Y %r", /* dd.mm.YYYY HH:MM:SS a.m. */ + "%d.%m.%Y %I:%M %p", /* dd.mm.YYYY HH:MM p.m. */ + 0 +}; + +static void +inittime (time_t *clock, struct tm *timeptr) +{ + timeptr = localtime (clock); /* for now */ + + /* but default to midnight */ + timeptr->tm_hour = timeptr->tm_min = timeptr->tm_sec = 0; + /* and let the system figure out the right DST offset */ + timeptr->tm_isdst = -1; +} + +int +strptime_builtin (WORD_LIST *list) +{ + char *s; + struct tm t, *tm; + time_t now, secs; + char *datestr; + int i; + + if (no_options (list)) /* for now */ + return (EX_USAGE); + + list = loptend; + if (list == 0) + { + builtin_usage (); + return (EX_USAGE); + } + + datestr = string_list (list); + if (datestr == 0 || *datestr == 0) + return (EXECUTION_SUCCESS); + + now = getnow (); + secs = -1; + for (i = 0; date_time_modifiers[i].shorthand; i++) + { + if (STREQ (datestr, date_time_modifiers[i].shorthand)) + { + secs = now + date_time_modifiers[i].incr; + break; + } + } + + if (secs == -1) + { + /* init struct tm */ + inittime (&now, tm); + t = *tm; + for (i = 0; date_time_formats[i]; i++) + { + s = strptime (datestr, date_time_formats[i], &t); + if (s == 0) + continue; + /* skip extra characters at the end for now */ + secs = mktime (&t); + break; + } + } + + printf ("%ld\n", secs); + return (EXECUTION_SUCCESS); +} + +char *strptime_doc[] = { + "Convert a date-time string to seconds since the epoch.", + "", + "Take DATE-TIME, a date-time string, parse it against a set of common", + "date-time formats. If the string matches one of the formats, convert", + "it into seconds since the epoch and display the result.", + (char *)NULL +}; + +/* The standard structure describing a builtin command. bash keeps an array + of these structures. The flags must include BUILTIN_ENABLED so the + builtin can be used. */ +struct builtin strptime_struct = { + "strptime", /* builtin name */ + strptime_builtin, /* function implementing the builtin */ + BUILTIN_ENABLED, /* initial flags for builtin */ + strptime_doc, /* array of long documentation strings. */ + "strptime date-time", /* usage synopsis; becomes short_doc */ + 0 /* reserved for internal use */ +}; diff --git a/lib/intl/Makefile.in b/lib/intl/Makefile.in index 60b7da39..a2fbd0ff 100644 --- a/lib/intl/Makefile.in +++ b/lib/intl/Makefile.in @@ -63,7 +63,7 @@ ARFLAGS = @ARFLAGS@ LOCAL_DEFS = @LOCAL_DEFS@ DEFS = -DLOCALEDIR=\"$(localedir)\" -DLOCALE_ALIAS_PATH=\"$(aliaspath)\" \ - -DLIBDIR=\"$(libdir)\" -DIN_LIBINTL -DBUILDING_LIBINTL + -DLIBDIR=\"$(libdir)\" -DIN_LIBINTL -DBUILDING_LIBINTL @DEFS@ # XXX - use this? RELOCATABLE_DEFS = -DENABLE_RELOCATABLE=1 -DIN_LIBRARY \ diff --git a/lib/intl/vasnprintf.c b/lib/intl/vasnprintf.c index 69927444..5a7bf818 100644 --- a/lib/intl/vasnprintf.c +++ b/lib/intl/vasnprintf.c @@ -290,7 +290,7 @@ local_wcsnlen (const wchar_t *s, size_t maxlen) static size_t wctomb_fallback (char *s, wchar_t wc) { - static char hex[16] = "0123456789ABCDEF"; + static char const hex[16] = "0123456789ABCDEF"; s[0] = '\\'; if (sizeof (wchar_t) > 2 && wc > 0xffff) diff --git a/lib/malloc/malloc.c b/lib/malloc/malloc.c index f57e3aea..78115b9a 100644 --- a/lib/malloc/malloc.c +++ b/lib/malloc/malloc.c @@ -997,10 +997,13 @@ internal_free (PTR_T mem, const char *file, int line, int flags) #if defined (USE_MMAP) if (nunits > malloc_mmap_threshold) { + int o; + o = errno; munmap (p, binsize (nunits)); #if defined (MALLOC_STATS) _mstats.nlesscore[nunits]++; #endif + errno = o; /* POSIX says free preserves errno */ goto free_return; } #endif @@ -1015,7 +1018,10 @@ internal_free (PTR_T mem, const char *file, int line, int flags) there's already a block on the free list. */ if ((nunits >= LESSCORE_FRC) || busy[nunits] || nextf[nunits] != 0) { + int o; + o = errno; lesscore (nunits); + errno = o; /* keeps the tracing and registering code in one place */ goto free_return; } diff --git a/lib/malloc/sbrk.c b/lib/malloc/sbrk.c new file mode 100644 index 00000000..3083caca --- /dev/null +++ b/lib/malloc/sbrk.c @@ -0,0 +1,80 @@ +/* Copyright (C) 2023 Free Software Foundation, Inc. + + This file is part of GNU Bash, the Bourne Again SHell. + + Bash is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + Bash is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with Bash. If not, see . +*/ +#include +#include +#include + +#if defined (HAVE_BRK) && !defined (HAVE_SBRK) + +static void *initialbrk; +static void *curbrk; + +static int +brkinit (void) +{ + if (initialbrk == 0) + { + void *b; + + b = brk (NULL); + if (b == (void *)-1) + return -1; + initialbrk = curbrk = b; + } + return (0); +} + +/* sbrk(3) implementation in terms of brk(2). Good enough for malloc to use. */ +void * +sbrk (intptr_t incr) +{ + void *newbrk, *oldbrk; + + if (initialbrk == 0 && initbrk () == -1) + { + errno = ENOMEM; + return (void *)-1; + } + + if (incr == 0) + return curbrk; + + /* bounds checking, overflow */ + if ((incr > 0 && (uintptr_t) curbrk + incr < (uintptr_t) curbrk) || + (incr < 0 && (uintptr_t) curbrk + incr > (uintptr_t) curbrk)) + { + errno = ENOMEM; + return (void *)-1; + } + + newbrk = curbrk + incr; + if (newbrk < initialbrk) + { + errno = EINVAL; + return (void *)-1; + } + + if (brk (newbrk) == (void *)-1) + return (void *)-1; /* preserve errno */ + + oldbrk = curbrk; + curbrk = newbrk; + + return (oldbrk); +} +#endif /* HAVE_BRK && !HAVE_SBRK */ diff --git a/lib/readline/complete.c b/lib/readline/complete.c index d202e089..79e37ccc 100644 --- a/lib/readline/complete.c +++ b/lib/readline/complete.c @@ -2190,7 +2190,8 @@ rl_complete_internal (int what_to_do) } /*FALLTHROUGH*/ - case '%': + case '%': /* used by menu_complete */ + case '|': /* add this for unconditional display */ do_display = 1; break; diff --git a/lib/sh/fmtulong.c b/lib/sh/fmtulong.c index be30d51a..329e48c7 100644 --- a/lib/sh/fmtulong.c +++ b/lib/sh/fmtulong.c @@ -54,8 +54,8 @@ extern int errno; #endif -#define x_digs "0123456789abcdef" -#define X_digs "0123456789ABCDEF" +static char const x_digs[16] = "0123456789abcdef"; +static char const X_digs[16] = "0123456789ABCDEF"; static char * const all_digs = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@_"; diff --git a/lib/sh/snprintf.c b/lib/sh/snprintf.c index a356cb70..d0363dcb 100644 --- a/lib/sh/snprintf.c +++ b/lib/sh/snprintf.c @@ -173,9 +173,6 @@ extern char *fmtullong (unsigned long long int, int, char *, size_t, int); #define ASBUFSIZE 128 -#define x_digs "0123456789abcdef" -#define X_digs "0123456789ABCDEF" - static char intbuf[INT_STRLEN_BOUND(unsigned long) + 1]; static int decpoint; diff --git a/po/ro.gmo b/po/ro.gmo index f1036a70..949bd91f 100644 Binary files a/po/ro.gmo and b/po/ro.gmo differ diff --git a/po/ro.po b/po/ro.po index 9c79e28c..82cacdd3 100644 --- a/po/ro.po +++ b/po/ro.po @@ -4,7 +4,7 @@ # # Eugen Hoanca , 2003. # Daniel Șerbănescu , 2019. -# Remus-Gabriel Chelu , 2022. +# Remus-Gabriel Chelu , 2022 - 2023. # # Cronologia traducerii fișierului „bash”: # Traducerea inițială, făcută de EH, pentru versiunea bash 3.2 (19% - tradus). @@ -12,13 +12,15 @@ # Actualizare a traducerii pentru versiunea 5.0, făcută de DȘ (29% - tradus). # Actualizare a traducerii pentru versiunea 5.1, făcută de R-GC (100% - tradus). # Actualizare a traducerii pentru versiunea 5.2-rc1, făcută de R-GC. +# Corectare a unei greșeli de dactilografiere prezentă din versiunea 5.1, făcută de R-GC, noi-2023. +# Actualizare a traducerii pentru versiunea Y, făcută de X, Z(luna-anul). # msgid "" msgstr "" "Project-Id-Version: bash 5.2-rc1\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2022-01-11 14:50-0500\n" -"PO-Revision-Date: 2022-06-18 01:02+0200\n" +"PO-Revision-Date: 2023-11-14 18:38+0100\n" "Last-Translator: Remus-Gabriel Chelu \n" "Language-Team: Romanian \n" "Language: ro\n" @@ -27,7 +29,7 @@ msgstr "" "Content-Transfer-Encoding: 8bit\n" "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : (n==0 || ((n%100) > 0 && (n%100) < 20)) ? 1 : 2);\n" "X-Bugs: Report translation errors to the Language-Team address.\n" -"X-Generator: Poedit 2.3.1\n" +"X-Generator: Poedit 3.2.2\n" "X-Poedit-SourceCharset: UTF-8\n" #: arrayfunc.c:66 @@ -4839,7 +4841,7 @@ msgstr "" " ȘIR1 = ȘIR2 Adevărat dacă șirurile sunt egale.\n" " ȘIR1 != ȘIR2 Adevărat dacă șirurile nu sunt egale.\n" " ȘIR1 < ȘIR2 Adevărat dacă ȘIR1 se ordonează lexicografic înainte de ȘIR2.\n" -" ȘIR1 > ȘIR2 Adevărat dacă ȘIR1 se ordonează lexicografic după ȘIR2.n\n" +" ȘIR1 > ȘIR2 Adevărat dacă ȘIR1 se ordonează lexicografic după ȘIR2.\n" " \n" " Alți operatori:\n" " \n"