Replies: 1 comment 5 replies
-
So, you have only the function body directly in the file. This is not the expected usage of
Yes, this is the reason.
How do you think so? The generated stub is basically like
This is because the loaded file did not define the function
This message is output in the "loading phase", but not by the defined function
It is also failing for the first time. The message you saw in the first attempt of calling |
Beta Was this translation helpful? Give feedback.
-
Hello again. I was trying to convert some zsh autoload functions to ble.sh
So initially I thought it was because it lacked either a function closure (
name() {
). But looking at the source it does seem to do what I expect:ble.sh/src/util.sh
Lines 5254 to 5258 in 3b2b4b8
I have my own hack for sourcing fpath functions from zsh, this works.
Works here:
Also.. On second invocation it seems to unset itself.
Maybe because
ble-import
fails second time, for whatever reason?ble.sh/src/util.sh
Lines 5255 to 5258 in 3b2b4b8
Beta Was this translation helpful? Give feedback.
All reactions