variable

BASH_LOADABLES_PATH

Colon-delimited directories searched for loadable builtin objects by enable -f. Such objects contain executable native code; do not load untrusted files. This example tests a missing object using only an empty private search directory; no module is loaded. Run in a fresh private directory with HOME set to that directory and LC_ALL=C. Expected output (one item per line): missing module rejected.

Formal Syntax & Structure

bash syntaxbash
BASH_LOADABLES_PATH

Return Value

shell variable

Expansion yields the current value; it has no independent command exit status.

Working Example

Example Snippetbash
mkdir emptyBASH_LOADABLES_PATH=$PWD/emptyif enable -f bm_nonexistent_v32 bm_nonexistent_v32 2> diagnostic; then exit 1; fi[[ -s diagnostic ]] || exit 1printf 'missing module rejected\n'
Bash Reference