We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 991c463 commit 0bb6431Copy full SHA for 0bb6431
pkg/lib/public/bash-core.sh
@@ -1,7 +1,14 @@
1
# shellcheck shell=bash
2
3
-declare -Ag ___global_trap_table___=()
4
-declare -ag ___global_shopt_stack___=()
+core.init() {
+ if [ ${___global_bash_core_has_init__+x} ]; then
5
+ return
6
+ fi
7
+
8
+ ___global_bash_core_has_init__=
9
+ declare -Ag ___global_trap_table___=()
10
+ declare -ag ___global_shopt_stack___=()
11
+}
12
13
# @description Get version of the package, from the point of the
14
# callsite. In other words, it returns the version of the package
0 commit comments