You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the following script using elvish script.elv fails with the following error Exception: exec: "str:trim": executable file not found in $PATH. However, copy-pasting each line in the REPL works as expected.
Script:
var lines = [one two three]
for line $lines { echo (str:trim $line ' ') }
You probably have that line in rc.elv, but elvish doesn't read the init files when executing a script. (To see what I mean, try your example in an interactive shell started as elvish -norc.)
What happened, and what did you expect to happen?
When running the following script using
elvish script.elv
fails with the following errorException: exec: "str:trim": executable file not found in $PATH
. However, copy-pasting each line in the REPL works as expected.Script:
Using Elvish 0.21.0
Output of "elvish -version"
0.21.0
Code of Conduct
The text was updated successfully, but these errors were encountered: