vcastellm / guard-go

Run and restart go programs when changed
MIT License
24 stars 13 forks source link

Kernel.exec ignores second args if string #19

Open ceaser opened 7 years ago

ceaser commented 7 years ago

This pull request resolves an issue on Ubuntu 16.04 when using multiple args/flags with values. I followed the behavior through the childprocess gem to Ruby's 2.4.1 Kernel.exec method.

When multiple arguments and values combined into a string is passed to Kernel.exec the application receives only one argument, which can not be parsed. This behavior could change based on the platform .e.g. Linux, Windows, OS X.

This pull request keeps the arguments separated as suggested in the ruby documentation.