Skip to content

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

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

Merged
merged 1 commit into from
May 23, 2024

Conversation

atrick
Copy link
Contributor

@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
Contributor Author

atrick commented Apr 26, 2024

@swift-ci test

@atrick
Copy link
Contributor Author

atrick commented Apr 26, 2024

@swift-ci smoke test linux

Copy link
Contributor

@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!

@atrick atrick merged commit c64a95b into swiftlang:main May 23, 2024
@atrick atrick deleted the fix-splitcmd branch May 23, 2024 23:36
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.

2 participants