nsomar/Swiftline

splitCommandToArgs should honor quotes while splitting

m25lazi opened this issue · 0 comments

If I do a run operation with a directory name with space, operation fails.
For example:
run("open '/Users/myname/path with space'")
or even
run("open \"/Users/myname/path with space\"")

Issue is with the splitCommandToArgs method implemented in RunResults.swift which uses components(separatedBy:) API