Skip to content

[windows] Quote argument for Windows compatibility. #28199

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

Conversation

drodriguez
Copy link
Contributor

In Windows the dollar doesn't introduce variables, so it doesn't need to
be escaped, and was creating an error when running the test on Windows.
However, the unescaped dollar will be interpreted like a variable in
Unix shells, and will fail the test. The solution is quoting the inside
of the argument, which disables the variable substitution on Linux, and
doesn't seem to affect the Windows command line parser.

The error was introduced in #28027 and started appearing in CI on Friday afternoon. https://ci-external.swift.org/job/oss-swift-windows-x86_64/1924/ shows the error in a run from today.

In Windows the dollar doesn't introduce variables, so it doesn't need to
be escaped, and was creating an error when running the test on Windows.
Howerver, the unescaped dollar will be interpreted like a variable in
Unix shells, and will fail the test. The solution is quoting the inside
of the argument, which disables the variable substitution on Linux, and
doesn't seem to affect the Windows command line parser.
@drodriguez
Copy link
Contributor Author

@swift-ci please smoke test

@drodriguez
Copy link
Contributor Author

@swift-ci please test Windows platform

@drodriguez drodriguez merged commit c5c3c4e into swiftlang:master Nov 12, 2019
@drodriguez drodriguez deleted the windows-quote-print-type-interface-argument branch November 12, 2019 00:50
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