Closed mizhi closed 6 years ago
Thanks for the info, but what is the advantage of Process.spawn
over system
or exec
?
That's a fair question. My interest was in not using '`' to shell out because of the quoting issue, but exec
or system
should work too. I'll update the PR to use those instead.
Looks good now. Thanks!
I encountered errors in this script due to the use of ` (backtic). When a file contained a ' (single quote), it would cause errors with the shell commands since the ' would not be properly escaped. Specifically, these errors would look like:
Replacing with
Process.spawn
version seems to correct these errors.