Skip to content
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

Double-quote variable values for set and export commands #1865

Merged
merged 5 commits into from
Mar 9, 2020

Conversation

native-api
Copy link
Contributor

@native-api native-api force-pushed the quote_varvalues branch 3 times, most recently from cd27841 to e1d0b46 Compare March 5, 2020 23:54
@BanzaiMan
Copy link
Contributor

Planning to merge and deploy on Monday.

@BanzaiMan BanzaiMan merged commit 4a41f03 into travis-ci:master Mar 9, 2020
@native-api native-api deleted the quote_varvalues branch March 9, 2020 13:27
@daviddavis
Copy link

I think one of these changes might have broken Travis variables: https://travis-ci.community/t/travis-incorrectly-double-quotes-environment-variables/7496

@BanzaiMan
Copy link
Contributor

Sorry about that. We've reverted this and deployed the revert. Please restart the affected build(s). We'll look at the issue that this PR aimed to address at a later time.

@native-api
Copy link
Contributor Author

As per https://travis-ci.community/t/travis-incorrectly-double-quotes-environment-variables/7496/9, this turns out to be an undocumented grey area thus the behavior change wasn't caught by tests.

We should decide what the expected behavior would be before trying this again.

Why unquoting doesn't restore the old behavior is a mystery to me for now.

@native-api
Copy link
Contributor Author

Why unquoting doesn't restore the old behavior is a mystery to me for now.

For the record, found it.

[^"'\ ]+ # some bare word, not containing " or '
splits at whitespace if there are no quotes -- to allow multiple var=value pairs per entry.

@native-api native-api restored the quote_varvalues branch June 24, 2020 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants