mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-23 13:57:58 +02:00
updated translations; minor change to DEBUG trap
This commit is contained in:
@@ -3686,3 +3686,34 @@ print_cmd.c
|
||||
----
|
||||
configure.ac
|
||||
- bumped version to bash-5.2-rc1
|
||||
|
||||
6/15
|
||||
----
|
||||
parse.y
|
||||
- parse_string_to_word_list: save the parser state before any state-
|
||||
changing functions like bash_history_disable(). Reported by
|
||||
Clark Wang <dearvoid@gmail.com>
|
||||
|
||||
6/16
|
||||
----
|
||||
doc/bash.1
|
||||
- play tricks with the value of the zZ number register to refer to
|
||||
`bash(1)' instead of `above' or `below' when creating the builtins
|
||||
man page
|
||||
|
||||
6/17
|
||||
----
|
||||
doc/{bash.1,bashref.texi}
|
||||
- wait: note that wait will return > 128 if interrupted by a signal.
|
||||
Reported by AA <aathan_github@memeplex.com>
|
||||
|
||||
execute_cmd.c
|
||||
- {execute_cond_node,execute_arith_command,eval_arith_for_expr}: make
|
||||
sure to reset this_command_name after running any DEBUG trap so the
|
||||
DEBUG trap doesn't overwrite it.
|
||||
Reported by Emanuele Torre <torreemanuele6@gmail.com>.
|
||||
- execute_select_command: set this_command_name to NULL after running
|
||||
any DEBUG trap like execute_for_command does
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1077,6 +1077,7 @@ tests/errors5.sub f
|
||||
tests/errors6.sub f
|
||||
tests/errors7.sub f
|
||||
tests/errors8.sub f
|
||||
tests/errors9.sub f
|
||||
tests/execscript f
|
||||
tests/exec.right f
|
||||
tests/exec1.sub f 755
|
||||
|
||||
@@ -627,7 +627,6 @@ valgrind:
|
||||
gcov:
|
||||
${MAKE} ${MFLAGS} CFLAGS=-g ADDON_CFLAGS='${GCOV_XCFLAGS}' ADDON_LDFLAGS='${GCOV_XLDFLAGS}' .made
|
||||
|
||||
|
||||
# have to make this separate because making tests depend on $(PROGRAM)
|
||||
asan-tests: asan $(TESTS_SUPPORT)
|
||||
@-test -d tests || mkdir tests
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#! /bin/sh
|
||||
# From configure.ac for Bash 5.2, version 5.041.
|
||||
# From configure.ac for Bash 5.2, version 5.042.
|
||||
# Guess values for system-dependent variables and create Makefiles.
|
||||
# Generated by GNU Autoconf 2.71 for bash 5.2-rc1.
|
||||
#
|
||||
@@ -5317,7 +5317,7 @@ CFLAGS=${CFLAGS-"$AUTO_CFLAGS"}
|
||||
if test "$opt_profiling" = "yes"; then
|
||||
PROFILE_FLAGS=-pg
|
||||
case "$host_os" in
|
||||
solaris2*|linux*) ;;
|
||||
solaris2*|linux*|darwin*) ;;
|
||||
*) opt_static_link=yes ;;
|
||||
esac
|
||||
DEBUG= MALLOC_DEBUG=
|
||||
|
||||
+2
-2
@@ -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 <http://www.gnu.org/licenses/>.
|
||||
|
||||
AC_REVISION([for Bash 5.2, version 5.041])dnl
|
||||
AC_REVISION([for Bash 5.2, version 5.042])dnl
|
||||
|
||||
define(bashvers, 5.2)
|
||||
define(relstatus, rc1)
|
||||
@@ -497,7 +497,7 @@ dnl these must come after the test for cc/gcc
|
||||
if test "$opt_profiling" = "yes"; then
|
||||
PROFILE_FLAGS=-pg
|
||||
case "$host_os" in
|
||||
solaris2*|linux*) ;;
|
||||
solaris2*|linux*|darwin*) ;;
|
||||
*) opt_static_link=yes ;;
|
||||
esac
|
||||
DEBUG= MALLOC_DEBUG=
|
||||
|
||||
+120
-45
@@ -5,12 +5,12 @@
|
||||
.\" Case Western Reserve University
|
||||
.\" chet.ramey@case.edu
|
||||
.\"
|
||||
.\" Last Change: Fri Jun 3 10:47:26 EDT 2022
|
||||
.\" Last Change: Thu Jun 16 17:10:54 EDT 2022
|
||||
.\"
|
||||
.\" bash_builtins, strip all but Built-Ins section
|
||||
.if \n(zZ=1 .ig zZ
|
||||
.if \n(zY=1 .ig zY
|
||||
.TH BASH 1 "2022 June 3" "GNU Bash 5.2"
|
||||
.TH BASH 1 "2022 June 16" "GNU Bash 5.2"
|
||||
.\"
|
||||
.\" There's some problem with having a `@'
|
||||
.\" in a tagged paragraph with the BSD man macros.
|
||||
@@ -8083,7 +8083,9 @@ If any of \fB\-D\fP, \fB\-E\fP, or \fB\-I\fP are supplied, any other
|
||||
specified by the option.
|
||||
.sp 1
|
||||
The process of applying these completion specifications when word completion
|
||||
is attempted is described above under \fBProgrammable Completion\fP.
|
||||
is attempted is described
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP.
|
||||
.el above under \fBProgrammable Completion\fP.
|
||||
.sp 1
|
||||
Other options, if specified, have the following meanings.
|
||||
The arguments to the \fB\-G\fP, \fB\-W\fP, and \fB\-X\fP options
|
||||
@@ -8371,12 +8373,14 @@ to give variables attributes:
|
||||
.B \-a
|
||||
Each \fIname\fP is an indexed array variable (see
|
||||
.B Arrays
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
.TP
|
||||
.B \-A
|
||||
Each \fIname\fP is an associative array variable (see
|
||||
.B Arrays
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
.TP
|
||||
.B \-f
|
||||
Use function names only.
|
||||
@@ -8385,7 +8389,9 @@ Use function names only.
|
||||
The variable is treated as an integer; arithmetic evaluation (see
|
||||
.SM
|
||||
.B "ARITHMETIC EVALUATION"
|
||||
above) is performed when the variable is assigned a value.
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP)
|
||||
.el above)
|
||||
is performed when the variable is assigned a value.
|
||||
.TP
|
||||
.B \-l
|
||||
When the variable is assigned a value, all upper-case characters are
|
||||
@@ -8448,7 +8454,9 @@ an attempt is made to assign a value to a readonly variable,
|
||||
an attempt is made to assign a value to an array variable without
|
||||
using the compound assignment syntax (see
|
||||
.B Arrays
|
||||
above), one of the \fInames\fP is not a valid shell variable name,
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP),
|
||||
.el above),
|
||||
one of the \fInames\fP is not a valid shell variable name,
|
||||
an attempt is made to turn off readonly status for a readonly variable,
|
||||
an attempt is made to turn off array status for an array variable,
|
||||
or an attempt is made to display a non-existent function with \fB\-f\fP.
|
||||
@@ -9233,7 +9241,8 @@ Each
|
||||
is an arithmetic expression to be evaluated (see
|
||||
.SM
|
||||
.B "ARITHMETIC EVALUATION"
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
If the last
|
||||
.I arg
|
||||
evaluates to 0,
|
||||
@@ -9544,7 +9553,10 @@ invalid option is supplied.
|
||||
\fBread\fP [\fB\-ers\fP] [\fB\-a\fP \fIaname\fP] [\fB\-d\fP \fIdelim\fP] [\fB\-i\fP \fItext\fP] [\fB\-n\fP \fInchars\fP] [\fB\-N\fP \fInchars\fP] [\fB\-p\fP \fIprompt\fP] [\fB\-t\fP \fItimeout\fP] [\fB\-u\fP \fIfd\fP] [\fIname\fP ...]
|
||||
One line is read from the standard input, or from the file descriptor
|
||||
\fIfd\fP supplied as an argument to the \fB\-u\fP option,
|
||||
split into words as described above under \fBWord Splitting\fP,
|
||||
split into words as described
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under \fBWord Splitting\fP,
|
||||
and the first word
|
||||
is assigned to the first
|
||||
.IR name ,
|
||||
@@ -9560,7 +9572,10 @@ The characters in
|
||||
.SM
|
||||
.B IFS
|
||||
are used to split the line into words using the same rules the shell
|
||||
uses for expansion (described above under \fBWord Splitting\fP).
|
||||
uses for expansion (described
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under \fBWord Splitting\fP).
|
||||
The backslash character (\fB\e\fP) may be used to remove any special
|
||||
meaning for the next character read and for line continuation.
|
||||
Options, if supplied, have the following meanings:
|
||||
@@ -9589,7 +9604,9 @@ is coming from a terminal,
|
||||
(see
|
||||
.SM
|
||||
.B READLINE
|
||||
above) is used to obtain the line.
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP)
|
||||
.el above)
|
||||
is used 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.
|
||||
.TP
|
||||
@@ -9779,7 +9796,9 @@ or a \fIcompound command\fP
|
||||
(see
|
||||
.SM
|
||||
.B SHELL GRAMMAR
|
||||
above), exits with a non-zero status.
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP),
|
||||
.el 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
|
||||
.B while
|
||||
@@ -9807,7 +9826,9 @@ This option applies to the shell environment and each subshell environment
|
||||
separately (see
|
||||
.SM
|
||||
.B "COMMAND EXECUTION ENVIRONMENT"
|
||||
above), and may cause
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP),
|
||||
.el above),
|
||||
and may cause
|
||||
subshells to exit before executing all the commands in the subshell.
|
||||
.if t .sp 0.5
|
||||
.if n .sp 1
|
||||
@@ -9839,7 +9860,8 @@ by default for interactive shells on systems that support
|
||||
it (see
|
||||
.SM
|
||||
.B JOB CONTROL
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
All processes run in a separate process group.
|
||||
When a background job completes, the shell prints a line
|
||||
containing its exit status.
|
||||
@@ -9890,7 +9912,10 @@ Same as
|
||||
.BR \-H .
|
||||
.TP 8
|
||||
.B history
|
||||
Enable command history, as described above under
|
||||
Enable command history, as described
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under
|
||||
.SM
|
||||
.BR HISTORY .
|
||||
This option is on by default in interactive shells.
|
||||
@@ -9902,7 +9927,8 @@ The effect is as if the shell command
|
||||
had been executed
|
||||
(see
|
||||
.B Shell Variables
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
.TP 8
|
||||
.B keyword
|
||||
Same as
|
||||
@@ -9957,7 +9983,9 @@ from the POSIX standard to match the standard (\fIposix mode\fP).
|
||||
See
|
||||
.SM
|
||||
.B "SEE ALSO"
|
||||
below for a reference to a document that details how posix mode affects
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el below
|
||||
for a reference to a document that details how posix mode affects
|
||||
bash's behavior.
|
||||
.TP 8
|
||||
.B privileged
|
||||
@@ -10049,7 +10077,9 @@ or associated word list.
|
||||
.B \-B
|
||||
The shell performs brace expansion (see
|
||||
.B Brace Expansion
|
||||
above). This is on by default.
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
This is on by default.
|
||||
.TP 8
|
||||
.B \-C
|
||||
If set,
|
||||
@@ -10242,8 +10272,9 @@ the exit to be deferred until a second exit is attempted without an
|
||||
intervening command (see
|
||||
.SM
|
||||
.B "JOB CONTROL"
|
||||
above). The shell always
|
||||
postpones exiting if any jobs are stopped.
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
The shell always postpones exiting if any jobs are stopped.
|
||||
.TP 8
|
||||
.B checkwinsize
|
||||
If set, \fBbash\fP checks the window size after each external (non-builtin)
|
||||
@@ -10262,7 +10293,10 @@ 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
|
||||
history is enabled, as described
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under
|
||||
.SM
|
||||
.BR HISTORY .
|
||||
.PD 0
|
||||
@@ -10287,7 +10321,8 @@ These control aspects of the shell's compatibility mode
|
||||
(see
|
||||
.SM
|
||||
.B "SHELL COMPATIBILITY MODE"
|
||||
below).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el below).
|
||||
.TP 8
|
||||
.B complete_fullquote
|
||||
If set,
|
||||
@@ -10346,7 +10381,10 @@ builtin command. An interactive shell does not exit if
|
||||
fails.
|
||||
.TP 8
|
||||
.B expand_aliases
|
||||
If set, aliases are expanded as described above under
|
||||
If set, aliases are expanded as described
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under
|
||||
.SM
|
||||
.BR ALIASES .
|
||||
This option is enabled by default for interactive shells.
|
||||
@@ -10380,7 +10418,9 @@ a call to \fBreturn\fP.
|
||||
and
|
||||
.SM
|
||||
.B BASH_ARGV
|
||||
are updated as described in their descriptions above.
|
||||
are updated as described in their descriptions
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
.TP
|
||||
.B 5.
|
||||
Function tracing is enabled: command substitution, shell functions, and
|
||||
@@ -10394,7 +10434,10 @@ subshells invoked with \fB(\fP \fIcommand\fP \fB)\fP inherit the
|
||||
.RE
|
||||
.TP 8
|
||||
.B extglob
|
||||
If set, the extended pattern matching features described above under
|
||||
If set, the extended pattern matching features described
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under
|
||||
\fBPathname Expansion\fP are enabled.
|
||||
.TP 8
|
||||
.B extquote
|
||||
@@ -10416,7 +10459,9 @@ the ignored words are the only possible completions.
|
||||
See
|
||||
.SM
|
||||
\fBSHELL VARIABLES\fP
|
||||
above for a description of
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
for a description of
|
||||
.SM
|
||||
.BR FIGNORE .
|
||||
This option is enabled by default.
|
||||
@@ -10425,7 +10470,9 @@ This option is enabled by default.
|
||||
If set, range expressions used in pattern matching bracket expressions (see
|
||||
.SM
|
||||
.B Pattern Matching
|
||||
above) behave as if in the traditional C locale when performing
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP)
|
||||
.el above)
|
||||
behave as if in the traditional C locale when performing
|
||||
comparisons. That is, the current locale's collating sequence
|
||||
is not taken into account, so
|
||||
.B b
|
||||
@@ -10483,7 +10530,8 @@ word containing a \fB@\fP is being completed (see
|
||||
under
|
||||
.SM
|
||||
.B READLINE
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
This is enabled by default.
|
||||
.TP 8
|
||||
.B huponexit
|
||||
@@ -10504,7 +10552,9 @@ to cause that word and all remaining characters on that
|
||||
line to be ignored in an interactive shell (see
|
||||
.SM
|
||||
.B COMMENTS
|
||||
above). This option is enabled by default.
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
This option is enabled by default.
|
||||
.TP 8
|
||||
.B lastpipe
|
||||
If set, and job control is not active, the shell runs the last command of
|
||||
@@ -10531,7 +10581,8 @@ at the current function scope.
|
||||
The shell sets this option if it is started as a login shell (see
|
||||
.SM
|
||||
.B "INVOCATION"
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
The value may not be changed.
|
||||
.TP 8
|
||||
.B mailwarn
|
||||
@@ -10556,7 +10607,8 @@ If set,
|
||||
matches filenames in a case\-insensitive fashion when performing pathname
|
||||
expansion (see
|
||||
.B Pathname Expansion
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
.TP 8
|
||||
.B nocasematch
|
||||
If set,
|
||||
@@ -10579,19 +10631,25 @@ If set,
|
||||
allows patterns which match no
|
||||
files (see
|
||||
.B Pathname Expansion
|
||||
above)
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP)
|
||||
.el above)
|
||||
to expand to a null string, rather than themselves.
|
||||
.TP 8
|
||||
.B patsub_replacement
|
||||
If set, \fBbash\fP
|
||||
expands occurrences of \fB&\fP in the replacement string of pattern
|
||||
substitution to the text matched by the pattern, as described
|
||||
under \fBParameter Expansion\fP above.
|
||||
under \fBParameter Expansion\fP
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP.
|
||||
.el above.
|
||||
This option is enabled by default.
|
||||
.TP 8
|
||||
.B progcomp
|
||||
If set, the programmable completion facilities (see
|
||||
\fBProgrammable Completion\fP above) are enabled.
|
||||
\fBProgrammable Completion\fP
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP)
|
||||
.el above)
|
||||
are enabled.
|
||||
This option is enabled by default.
|
||||
.TP 8
|
||||
.B progcomp_alias
|
||||
@@ -10606,14 +10664,17 @@ parameter expansion, command substitution, arithmetic
|
||||
expansion, and quote removal after being expanded as described in
|
||||
.SM
|
||||
.B PROMPTING
|
||||
above. This option is enabled by default.
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP.
|
||||
.el above.
|
||||
This option is enabled by default.
|
||||
.TP 8
|
||||
.B restricted_shell
|
||||
The shell sets this option if it is started in restricted mode
|
||||
(see
|
||||
.SM
|
||||
.B "RESTRICTED SHELL"
|
||||
below).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el below).
|
||||
The value may not be changed.
|
||||
This is not reset when the startup files are executed, allowing
|
||||
the startup files to discover whether or not a shell is restricted.
|
||||
@@ -10637,7 +10698,9 @@ If set, the shell automatically closes file descriptors assigned using the
|
||||
\fI{varname}\fP redirection syntax (see
|
||||
.SM
|
||||
.B REDIRECTION
|
||||
above) instead of leaving them open when the command completes.
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP)
|
||||
.el above)
|
||||
instead of leaving them open when the command completes.
|
||||
.TP 8
|
||||
.B xpg_echo
|
||||
If set, the \fBecho\fP builtin expands backslash-escape sequences
|
||||
@@ -10668,8 +10731,10 @@ Return a status of 0 (true) or 1 (false) depending on
|
||||
the evaluation of the conditional expression
|
||||
.IR expr .
|
||||
Each operator and operand must be a separate argument.
|
||||
.if \n(zZ=0 Expressions are composed of the primaries described above under
|
||||
.if \n(zZ=1 Expressions are composed of the primaries described in the \fBbash\fP manual page under
|
||||
Expressions are composed of the primaries described
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under
|
||||
.SM
|
||||
.BR "CONDITIONAL EXPRESSIONS" .
|
||||
\fBtest\fP does not accept any options, nor does it accept and ignore
|
||||
@@ -10722,7 +10787,9 @@ The expression is true if and only if the argument is not null.
|
||||
2 arguments
|
||||
If the first argument is \fB!\fP, the expression is true if and
|
||||
only if the second argument is null.
|
||||
If the first argument is one of the unary conditional operators listed above
|
||||
If the first argument is one of the unary conditional operators listed
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under
|
||||
.SM
|
||||
.BR "CONDITIONAL EXPRESSIONS" ,
|
||||
@@ -10732,7 +10799,9 @@ is false.
|
||||
.TP
|
||||
3 arguments
|
||||
The following conditions are applied in the order listed.
|
||||
If the second argument is one of the binary conditional operators listed above
|
||||
If the second argument is one of the binary conditional operators listed
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP
|
||||
.el above
|
||||
under
|
||||
.SM
|
||||
.BR "CONDITIONAL EXPRESSIONS" ,
|
||||
@@ -10837,7 +10906,8 @@ is executed before every \fIsimple command\fP, \fIfor\fP command,
|
||||
command, and before the first command executes in a shell function (see
|
||||
.SM
|
||||
.B SHELL GRAMMAR
|
||||
above).
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP).
|
||||
.el above).
|
||||
Refer to the description of the \fBextdebug\fP option to the
|
||||
\fBshopt\fP builtin for details of its effect on the \fBDEBUG\fP trap.
|
||||
If a
|
||||
@@ -11236,8 +11306,13 @@ forces \fBwait\fP to wait for \fIid\fP to terminate before returning
|
||||
its status, instead of returning when it changes status.
|
||||
If
|
||||
.I id
|
||||
specifies a non-existent process or job, the return status is
|
||||
127. Otherwise, the return status is the exit status of the last
|
||||
specifies a non-existent process or job, the return status is 127.
|
||||
If \fBwait\fP is interrupted by a signal, the return status will be greater
|
||||
than 128, as described under
|
||||
.B SIGNALS
|
||||
.ie \n(zZ=1 in \fIbash(1)\fP.
|
||||
.el above.
|
||||
Otherwise, the return status is the exit status of the last
|
||||
process or job waited for.
|
||||
.SH "SHELL COMPATIBILITY MODE"
|
||||
Bash-4.0 introduced the concept of a \fIshell compatibility level\fP,
|
||||
@@ -11257,7 +11332,7 @@ behavior. It's intended to be a temporary solution.
|
||||
This section does not mention behavior that is standard for a particular
|
||||
version (e.g., setting \fBcompat32\fP 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 above).
|
||||
default behavior in bash-3.2 and subsequent versions).
|
||||
.PP
|
||||
If a user enables, say, \fBcompat32\fP, it may affect the behavior of other
|
||||
compatibility levels up to and including the current compatibility level.
|
||||
|
||||
+5
-1
@@ -8464,7 +8464,7 @@ behavior. It's intended to be a temporary solution.
|
||||
This section does not mention behavior that is standard for a particular
|
||||
version (e.g., setting @code{compat32} 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 above).
|
||||
default behavior in bash-3.2 and subsequent versions).
|
||||
|
||||
If a user enables, say, @code{compat32}, it may affect the behavior of other
|
||||
compatibility levels up to and including the current compatibility level.
|
||||
@@ -8896,6 +8896,10 @@ terminate before returning its status, intead of returning when it changes
|
||||
status.
|
||||
If neither @var{jobspec} nor @var{pid} specifies an active child process
|
||||
of the shell, the return status is 127.
|
||||
If @code{wait} is interrupted by a signal, the return status will be greater
|
||||
than 128, as described above (@pxref{Signals}).
|
||||
Otherwise, the return status is the exit status
|
||||
of the last process or job waited for.
|
||||
|
||||
@item disown
|
||||
@btindex disown
|
||||
|
||||
+6
-2
@@ -3055,7 +3055,6 @@ eval_arith_for_expr (l, okp)
|
||||
{
|
||||
if (echo_command_at_execute)
|
||||
xtrace_print_arith_cmd (new);
|
||||
this_command_name = "(("; /* )) for expression error messages */
|
||||
|
||||
command_string_index = 0;
|
||||
print_arith_command (new);
|
||||
@@ -3069,6 +3068,7 @@ eval_arith_for_expr (l, okp)
|
||||
/* In debugging mode, if the DEBUG trap returns a non-zero status, we
|
||||
skip the command. */
|
||||
eflag = (shell_compatibility_level > 51) ? 0 : EXP_EXPANDED;
|
||||
this_command_name = "(("; /* )) for expression error messages */
|
||||
|
||||
#if defined (DEBUGGER)
|
||||
if (debugging_mode == 0 || r == EXECUTION_SUCCESS)
|
||||
@@ -3423,6 +3423,8 @@ execute_select_command (select_command)
|
||||
return (EXECUTION_SUCCESS);
|
||||
#endif
|
||||
|
||||
this_command_name = (char *)0;
|
||||
|
||||
loop_level++;
|
||||
identifier = select_command->name->word;
|
||||
|
||||
@@ -3819,6 +3821,7 @@ execute_arith_command (arith_command)
|
||||
}
|
||||
#endif
|
||||
|
||||
this_command_name = "(("; /* )) */
|
||||
t = (char *)NULL;
|
||||
new = arith_command->exp;
|
||||
exp = (new->next) ? (t = string_list (new)) : new->word->word;
|
||||
@@ -4016,7 +4019,6 @@ execute_cond_command (cond_command)
|
||||
|
||||
save_line_number = line_number;
|
||||
|
||||
this_command_name = "[[";
|
||||
SET_LINE_NUMBER (cond_command->line);
|
||||
/* If we're in a function, update the line number information. */
|
||||
if (variable_context && interactive_shell && sourcelevel == 0)
|
||||
@@ -4048,6 +4050,8 @@ execute_cond_command (cond_command)
|
||||
}
|
||||
#endif
|
||||
|
||||
this_command_name = "[["; /* ]] */
|
||||
|
||||
#if 0
|
||||
debug_print_cond_command (cond_command);
|
||||
#endif
|
||||
|
||||
@@ -12,9 +12,7 @@
|
||||
#include <errno.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#ifdef HAVE_LOCALE_H
|
||||
# include <locale.h>
|
||||
#endif
|
||||
#include <locale.h>
|
||||
|
||||
/* Standard readline include files. */
|
||||
#if defined (READLINE_LIBRARY)
|
||||
|
||||
@@ -4186,6 +4186,7 @@ xparse_dolparen (base, string, indp, flags)
|
||||
sflags = SEVAL_NONINT|SEVAL_NOHIST|SEVAL_NOFREE;
|
||||
if (flags & SX_NOLONGJMP)
|
||||
sflags |= SEVAL_NOLONGJMP;
|
||||
|
||||
save_parser_state (&ps);
|
||||
save_input_line_state (&ls);
|
||||
|
||||
@@ -4609,6 +4610,7 @@ cond_term ()
|
||||
tleft = make_cond_node (COND_TERM, yylval.word, (COND_COM *)NULL, (COND_COM *)NULL);
|
||||
|
||||
/* binop */
|
||||
/* tok = cond_skip_newlines (); ? */
|
||||
tok = read_token (READ);
|
||||
if (tok == WORD && test_binop (yylval.word->word))
|
||||
{
|
||||
@@ -6302,13 +6304,13 @@ parse_string_to_word_list (s, flags, whom)
|
||||
sh_parser_state_t ps;
|
||||
int ea;
|
||||
|
||||
orig_line_number = line_number;
|
||||
save_parser_state (&ps);
|
||||
|
||||
#if defined (HISTORY)
|
||||
bash_history_disable ();
|
||||
#endif
|
||||
|
||||
orig_line_number = line_number;
|
||||
save_parser_state (&ps);
|
||||
|
||||
push_stream (1);
|
||||
if (ea = expanding_alias ())
|
||||
parser_save_alias ();
|
||||
|
||||
Binary file not shown.
+438
-417
File diff suppressed because it is too large
Load Diff
Binary file not shown.
+464
-438
File diff suppressed because it is too large
Load Diff
+7
-1
@@ -196,7 +196,13 @@ ok 4
|
||||
ok 5
|
||||
./errors8.sub: line 14: set: notanoption: invalid option name
|
||||
ok 6
|
||||
DEBUG
|
||||
./errors9.sub: line 6: [[: ++: syntax error: operand expected (error token is "+")
|
||||
DEBUG
|
||||
./errors9.sub: line 8: ((: -- : syntax error: operand expected (error token is "- ")
|
||||
DEBUG
|
||||
./errors9.sub: line 10: ((: -- : syntax error: operand expected (error token is "- ")
|
||||
bash: line 1: return: can only `return' from a function or sourced script
|
||||
after return
|
||||
bash: line 1: return: can only `return' from a function or sourced script
|
||||
./errors.tests: line 304: `!!': not a valid identifier
|
||||
./errors.tests: line 305: `!!': not a valid identifier
|
||||
|
||||
@@ -292,6 +292,7 @@ ${THIS_SH} ./errors7.sub
|
||||
${THIS_SH} -o posix ./errors7.sub
|
||||
|
||||
${THIS_SH} ./errors8.sub
|
||||
${THIS_SH} ./errors9.sub
|
||||
|
||||
${THIS_SH} -c 'return ; echo after return' bash
|
||||
${THIS_SH} -o posix -c 'return ; echo after return' bash
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
trap 'echo DEBUG' DEBUG
|
||||
|
||||
# make sure that the right command name appears in the error messages and
|
||||
# that the DEBUG trap doesn't overwrite it
|
||||
|
||||
[[ ++ -gt 3 ]]
|
||||
|
||||
(( -- ))
|
||||
|
||||
for (( -- ; ++; -- ))
|
||||
do
|
||||
echo bogus
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user