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

Fix dev-scripts/split-cmdline: quote ';' arguments #73287

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

atrick
Copy link
Member

@atrick atrick commented Apr 26, 2024

When printing an argument that contains ';', add back the quotes that are normally stripped.

I regularly waste half a day building Swift only to find that I built the wrong thing because everything after the semicolon is dropped from the build script when it contains arguments like this:

'--llvm-install-components=libclang;libclang-headers'

Ideally, split-cmdline would just preserve the original quotes. But this quick fix solves the problem in the cases that I care about.

When printing an argument that contains ';', add back
the quotes that are normally stripped.

I regularly waste half a day building Swift only to find that I built
the wrong thing because everything after the semicolon is dropped from
the build script when it contains arguments like this:

'--llvm-install-components=libclang;libclang-headers'

Ideally, split-cmdline would just preserve the original quotes. But
this quick fix solves the problem in the cases that I care about.
@atrick atrick requested a review from eeckstein April 26, 2024 16:03
@atrick
Copy link
Member Author

atrick commented Apr 26, 2024

@swift-ci test

@atrick
Copy link
Member Author

atrick commented Apr 26, 2024

@swift-ci smoke test linux

Copy link
Member

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, lgtm!

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.

None yet

2 participants