Use shell to parse command when using JobStart

Also changed all occurrences of JobStart to JobSpawn in the linter
plugin.
This commit is contained in:
Zachary Yedidia
2016-12-09 10:34:39 -05:00
parent e1d231baa3
commit 291b1d1efc
4 changed files with 40 additions and 21 deletions

View File

@@ -99,8 +99,8 @@ as Go's GOOS variable, so `darwin`, `windows`, `linux`, `freebsd`...)
`userargs` are the arguments which will get passed to the callback functions
* `JobStart(cmd string, onStdout, onStderr, onExit string, userargs ...string)`:
Starts running the given shell command in the background.
This function is a shorthand for `JobSpawn`.
Starts running the given shell command in the background. Note that the command execute
is first parsed by a shell when using this command. It is executed with `sh -c`.
* `JobSend(cmd *exec.Cmd, data string)`: send a string into the stdin of the job process