File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ core.trap_add() {
44
44
printf ' %s\n' " Error: core.trap_add: Passing numbers for the signal specs is prohibited"
45
45
return 1
46
46
fi ; unset regex
47
- signal_spec=" ${signal_spec# SIG} "
47
+ signal_spec=${signal_spec# SIG}
48
48
if ! declare -f " $function " & > /dev/null; then
49
49
printf ' %s\n' " Error: core.trap_add: Function '$function ' not defined" >&2
50
50
return 1
@@ -54,10 +54,10 @@ core.trap_add() {
54
54
___global_trap_table___[" $signal_spec " ]=" ${___global_trap_table___[$signal_spec]} " $' \x1C ' " $function "
55
55
56
56
local global_trap_handler_name=
57
- printf -v global_trap_handler_name ' %q' " ___global_trap_ ${signal_spec} _handler___ "
57
+ printf -v global_trap_handler_name ' %q' " core.trap_handler_ ${signal_spec} "
58
58
59
59
if ! eval " $global_trap_handler_name () {
60
- core.trap_common_global_handler " $signal_spec "
60
+ core.trap_handler_common " $signal_spec "
61
61
}" ; then
62
62
printf ' %s\n' " Error: core.trap_add: Could not eval function"
63
63
return 1
Original file line number Diff line number Diff line change 1
1
# shellcheck shell=bash
2
2
3
- core.trap_common_global_handler () {
3
+ core.trap_handler_common () {
4
4
local signal_spec=" $1 "
5
5
6
6
local trap_handlers=
You can’t perform that action at this time.
0 commit comments