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

xcode-select -p with unescaped characters #21

Open
sandersaelmans opened this issue Nov 7, 2017 · 2 comments
Open

xcode-select -p with unescaped characters #21

sandersaelmans opened this issue Nov 7, 2017 · 2 comments

Comments

@sandersaelmans
Copy link

sandersaelmans commented Nov 7, 2017

Hey Johannes,

Within our server setup we use the SimCtl gem to spin up simulators for test automation. One of the problems we have is that we support multiple versions of xcode. Each version of xcode is separated by a space, and then the version number (so you get Xcode 9.1.0, Xcode 8.3.3, etc).

This however breaks the SimCtl gem since the var HOME in path.rb doesn't escape shell specific characters.

A simple fix would be to use shellwords to escape the outcome of xcode-select -p

Best regards,
Sander Saelmans

@plu
Copy link
Owner

plu commented Nov 7, 2017

Escaping that sounds like a good idea. Would you like to create a pull request for that?

@sandersaelmans
Copy link
Author

Sure, will do!

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

No branches or pull requests

2 participants