V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m52s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m52s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -19,7 +19,7 @@ sourcing, which are frequent sources of bugs and side effects in modular Bash-ba
|
||||
## 2.1. Purpose and Functionality
|
||||
|
||||
- **0005_guard_sourcing.sh**
|
||||
Defines the `guard_sourcing()` function, which programmatically prevents a Bash library file from being sourced multiple
|
||||
Defines the `guard_sourcing || return "${ERR_GUARD_SOURCE}"()` function, which programmatically prevents a Bash library file from being sourced multiple
|
||||
times. It constructs a uniquely scoped read-only environment variable guard to mark the sourced state.
|
||||
|
||||
- **0006_source_guard.sh**
|
||||
@@ -36,7 +36,7 @@ sourcing, which are frequent sources of bugs and side effects in modular Bash-ba
|
||||
- Bash version ≥ 5.1
|
||||
- Active error trapping via `trap 'trap_err' ERR`
|
||||
- `do_log()` must be declared elsewhere in the global context
|
||||
- All libraries must be sourced via `source_guard()` and invoke `guard_sourcing` on top
|
||||
- All libraries must be sourced via `source_guard()` and invoke `guard_sourcing || return "${ERR_GUARD_SOURCE}"` on top
|
||||
|
||||
## 2.3. Dependencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user