File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ core.trap_add() {
2020 local function=" $1 "
2121
2222 core.private.util.validate_args " $function " $#
23+ local signal_spec=
2324 for signal_spec in " ${@: 2} " ; do
2425 core.private.util.validate_signal " $function " " $signal_spec "
2526
@@ -62,6 +63,7 @@ core.trap_remove() {
6263 local function=" $1 "
6364
6465 core.private.util.validate_args " $function " $#
66+ local signal_spec=
6567 for signal_spec in " ${@: 2} " ; do
6668 core.private.util.validate_signal " $function " " $signal_spec "
6769
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ core.private.util.validate_signal() {
6060 if [[ " $signal_spec " =~ $regex ]]; then
6161 core.panic ' Passing numbers for the signal specs is prohibited'
6262 fi ; unset -v regex
63- signal_spec=" ${signal_spec# SIG} "
63+ signal_spec=${signal_spec# SIG}
6464 if ! declare -f " $function " & > /dev/null; then
6565 core.panic " Function '$function ' is not defined"
6666 fi
You can’t perform that action at this time.
0 commit comments