4 ms·
"Elvish has no concept of exit status. Instead, it has exceptions that, when thrown, interrupt the flow of execution." ... "Non-zero exit status from external c
by hossbeast 9y ago
"Elvish has no concept of exit status. Instead, it has exceptions that, when thrown, interrupt the flow of execution." ... "Non-zero exit status from external commands are turned into exceptions"
You had me up until this point.
- hota_mazi 9y agoWhat's wrong with that?
- enz 9y agoIt is similar to `set -o errexit` in Bash, I guess.
- vortico 9y agoBut think of how useful this would be in a complex-hierarchy shell system. Some commands might fail when processing in the tree, and you might want to just remove that one leaf instead of halt further processing of data in another part of the tree.