updated translations; minor change to DEBUG trap

This commit is contained in:
Chet Ramey
2022-06-22 10:51:18 -04:00
parent 6392d7af0e
commit eb2d46d77c
35 changed files with 5098 additions and 4706 deletions
+7 -1
View File
@@ -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
+1
View File
@@ -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
+14
View File
@@ -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