[Close #71] Do not escape to local system shell #72
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.
Right now if someone wrote this code:
It would be interpreted as:
Which is surprising at best and harmful at worst. This PR auto escapes commands by default. This was the default behavior before 59f76d4 which removed shellescape-ing, but this edge case was not considered.
If the user wants more flexibility, they can specify they're using their own escaping by passing in
raw: true
.I also updated the method signature for
App#run
so that theheroku:
option can be used without having to specify anil
argument in the middle, I'm deprecating the ReplRunner interface (which was pretty broken and I don't believe used) so that we can simplify the method signature in the future.