New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
interp: add BashOpts for shopt options, just like Params for set options #962
Comments
You're right that there's an asymmetry here, so we should fix that. I'm not entirely sure why I called the existing API We should be careful about the behavior of |
interp.New()
currently has a field for accepting a set ofinterp.Params(params...)
. This allows us to set POSIX options likeset -e
. However, we are not able to pass Bash opts (likeshopt -s pipefail
), despite the project supporting them. This leads to us having to manually prepend these commands in Task. See this related issue and PR.It would be really nice if we has something like
interp.BashOpts(opts...)
to do this for us.I've been meaning to open a PR for a while for this, but simply haven't had the time. I'm opening this issue for now in case anyone has more bandwidth to work on this.
The text was updated successfully, but these errors were encountered: