Skip to content

bash: bleopt/check:import_path: No such file or directory #465

Answered by akinomyoga
Freed-Wu asked this question in Q&A
Discussion options

You must be logged in to vote

This is the summary.

If one expects the commands executed through the command line to work properly, one shouldn't override the builtin commands of Bash to have a different meaning. In the reported case, the declare builtin was overridden. If one wants to make shell functions using the builtin work properly, one needs to unset the overriding functions/aliases/etc. and recover the original builtins.

Note: Even if you try to override builtins without changing their behavior, it is impossible to emulate the behavior of builtin, eval, declare, type, local, unset, exec, return, break, continue, trap, etc. Their behavior changes if they are called inside a shell function indirectly.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
8 replies
@akinomyoga
Comment options

@Freed-Wu
Comment options

@akinomyoga
Comment options

@akinomyoga
Comment options

@akinomyoga
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by Freed-Wu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants