mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-03 18:30:49 +02:00
updated translations; minor change to DEBUG trap
This commit is contained in:
+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