Skip to content

Don't export SHELLOPTS#22

Merged
dantesun merged 1 commit intogdubw:masterfrom
guyboltonking:gbk-remove-export-shellopts
Oct 13, 2021
Merged

Don't export SHELLOPTS#22
dantesun merged 1 commit intogdubw:masterfrom
guyboltonking:gbk-remove-export-shellopts

Conversation

@guyboltonking
Copy link
Contributor

Exporting SHELLOPTS has the potential to break any shell script invoked
by gradle, since any shell script that invokes set -e will have
that setting exported to all shell scripts invoked as
descendant processes, changing behaviour (and in my case,
breaking the build).

Exporting SHELLOPTS has the potential to break any shell script invoked
by gradle, since any shell script that invokes `set -e` will have
that setting exported to _all_ shell scripts invoked as
descendant processes, changing behaviour (and in my case,
breaking the build).
@dantesun dantesun merged commit 173943b into gdubw:master Oct 13, 2021
@hverlin
Copy link

hverlin commented Mar 22, 2022

@dantesun @guyboltonking

Would it be possible to get a new release with this fix included?

It took me a while to understand why a npm install failed when run through Gradle (using gw) as it was passing set -u .
I could validate that this commit fixes my problem by applying this change locally.

Thanks again for this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants