Skip to content

Comments

util (ble/util/load-standard-builtin): actually load from $loadable_path#611

Merged
akinomyoga merged 1 commit intoakinomyoga:masterfrom
xarblu:fix_builtin_load
Jul 30, 2025
Merged

util (ble/util/load-standard-builtin): actually load from $loadable_path#611
akinomyoga merged 1 commit intoakinomyoga:masterfrom
xarblu:fix_builtin_load

Conversation

@xarblu
Copy link
Contributor

@xarblu xarblu commented Jul 30, 2025

I'm pretty sure the way this is currently written all possible ${loadable_paths[@]} are checked for a valid builtin... only to then completely ignore the checks and load from $bash_prefix/lib/bash/. It should probably load from the just validated $loadable_path.

Noticed this because on my system builtins are in /usr/lib64/bash/ so the checks passed for that directory.
ble.sh then "loaded" the wrong builtins which resulted in every call to them printing bash: builtin: xxxxx: not a shell builtin to the console.

@akinomyoga
Copy link
Owner

Ah, thanks. This is an oversight in the recent modification 044c016.

@akinomyoga akinomyoga merged commit 52c3897 into akinomyoga:master Jul 30, 2025
4 checks passed
@akinomyoga akinomyoga added the bug label Jul 30, 2025
@akinomyoga
Copy link
Owner

Thank you for identifying the cause and fixing it! I've merged it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants