simctl icon indicating copy to clipboard operation
simctl copied to clipboard

xcode-select -p with unescaped characters

Open sandersaelmans opened this issue 8 years ago • 2 comments

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

sandersaelmans avatar Nov 07 '17 12:11 sandersaelmans

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

plu avatar Nov 07 '17 18:11 plu

Sure, will do!

sandersaelmans avatar Nov 09 '17 09:11 sandersaelmans