bash: bleopt/check:import_path: No such file or directory #465
-
bleopt import_path="${XDG_DATA_HOME:-$HOME/.local/share}/blesh/local:/usr/share/blesh/contrib" It will give me:
What happened? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 8 replies
-
One possibility is that you use an old version of ble.sh with the POSIX mode of the unreleased Bash 5.3. What is the output of the following command? $ echo "$SHELLOPTS"
$ (set +o posix; ble/widget/display-shell-version) |
Beta Was this translation helpful? Give feedback.
-
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 Note: Even if you try to override builtins without changing their behavior, it is impossible to emulate the behavior of |
Beta Was this translation helpful? Give feedback.
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.