stripe / subprocess

A port of Python's subprocess module to Ruby
MIT License
208 stars 17 forks source link

Why do not use Shellwords.join method? #47

Open SwagDevOps opened 6 years ago

SwagDevOps commented 6 years ago

https://github.com/stripe/subprocess/blob/b914fb4748ec7fbcc7433cfe92a89e8ba20ce0c1/lib/subprocess.rb#L149

@command, @status = Shellwords.join(cmd), status

https://ruby-doc.org/stdlib-2.5.0/libdoc/shellwords/rdoc/Shellwords.html#method-c-shelljoin