JohnSundell / ShellOut

Easily run shell commands from a Swift script or command line tool
MIT License
872 stars 85 forks source link

Support paths relative to the user’s home directory #21

Closed JohnSundell closed 6 years ago

JohnSundell commented 6 years ago

This patch fixes a bug that would cause shelling out at a path containing a tilde to fail. The reason was that ShellOut was wrapping all paths in quotes, in order to escape spaces. With this, spaces are properly escaped instead.

Resolves https://github.com/JohnSundell/ShellOut/issues/12