refactor: remove sh dependence in core hilbish code (and add snail library - for shell script) #337
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
the hilbish website basically states shell script as being as something disgusting (which it kind of is) but a good part of the go core of hilbish is dependent on specific, odd behavior of the shell script interpreter (because hilbish still does use shell script for interactive code, and lua as well).
code changes in the fs module had to be made so the
cd
command would also change the working directory of the shell interpreter. i'm kinda annoyed of that, and also, i want to be able to do a few things:this pr introduces the
snail
library to provide functions to use the hilbish provided shell script interpreter library via lua. this would be the same as thesh
runner. i can also clean up some hilbish exec code this way.depends on #335