14
14
# core.trap_remove 'some_handler' 'USR1'
15
15
core.trap_add () {
16
16
if ! [ ${___global_bash_core_has_init__+x} ]; then
17
- core.util.init
17
+ core.private. util.init
18
18
fi
19
19
local function=" $1 "
20
20
@@ -48,7 +48,7 @@ core.trap_add() {
48
48
printf -v global_trap_handler_name ' %q' " core.trap_handler_${signal_spec} "
49
49
50
50
if ! eval " $global_trap_handler_name () {
51
- core.util.trap_handler_common '$signal_spec '
51
+ core.private. util.trap_handler_common '$signal_spec '
52
52
}" ; then
53
53
core.panic ' Could not eval function'
54
54
fi
@@ -68,7 +68,7 @@ core.trap_add() {
68
68
# core.trap_remove 'some_handler' 'USR1'
69
69
core.trap_remove () {
70
70
if ! [ ${___global_bash_core_has_init__+x} ]; then
71
- core.util.init
71
+ core.private. util.init
72
72
fi
73
73
local function=" $1 "
74
74
@@ -130,7 +130,7 @@ core.trap_remove() {
130
130
# core.shopt_pop
131
131
core.shopt_push () {
132
132
if ! [ ${___global_bash_core_has_init__+x} ]; then
133
- core.util.init
133
+ core.private. util.init
134
134
fi
135
135
local shopt_action=" $1 "
136
136
local shopt_name=" $2 "
@@ -177,7 +177,7 @@ core.shopt_push() {
177
177
# core.shopt_pop
178
178
core.shopt_pop () {
179
179
if ! [ ${___global_bash_core_has_init__+x} ]; then
180
- core.util.init
180
+ core.private. util.init
181
181
fi
182
182
183
183
if (( ${# ___global_shopt_stack___[@]} == 0 )) ; then
@@ -255,7 +255,7 @@ core.panic() {
255
255
fi
256
256
257
257
if core.err_exists; then
258
- core.util.err_print
258
+ core.private. util.err_print
259
259
fi
260
260
core.print_stacktrace
261
261
exit " $code "
@@ -419,7 +419,7 @@ core.get_package_info() {
419
419
# this function is called automatically by functions that use global variables
420
420
# @noargs
421
421
core.init () {
422
- core.util.init
422
+ core.private. util.init
423
423
}
424
424
425
425
# @description (DEPRECATED) Prints stacktrace
0 commit comments