diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-01-11 02:19:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-11 02:19:11 +0100 |
commit | a08d2f54a0bd8cb9b6a4072a6adcc7eeee4690c2 (patch) | |
tree | ef535e346a41133994bd616bc5239a7d5c912955 /runtime | |
parent | 15c85d8462ce1cf58a162caccb2911c51bec7455 (diff) | |
parent | 9ecdce1d530aa2ae1db5982794f615050c3af05a (diff) | |
download | rneovim-a08d2f54a0bd8cb9b6a4072a6adcc7eeee4690c2.tar.gz rneovim-a08d2f54a0bd8cb9b6a4072a6adcc7eeee4690c2.tar.bz2 rneovim-a08d2f54a0bd8cb9b6a4072a6adcc7eeee4690c2.zip |
Merge #5910 from justinmk/win32-jobstart
Windows: fix jobstart()
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 78124debe1..69c8d0285a 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -4666,11 +4666,16 @@ jobstart({cmd}[, {opts}]) {Nvim} *jobstart()* Spawns {cmd} as a job. If {cmd} is a |List| it is run directly. If {cmd} is a |String| it is processed like this: > :call jobstart(split(&shell) + split(&shellcmdflag) + ['{cmd}']) -< NOTE: read |shell-unquoting| before constructing any lists - with 'shell' or 'shellcmdflag' options. The above call is - only written to show the idea, one needs to perform unquoting - and do split taking quotes into account. - +< NOTE: This only shows the idea; see |shell-unquoting| before + constructing lists with 'shell' or 'shellcmdflag'. + + NOTE: On Windows if {cmd} is a List, cmd[0] must be a valid + executable (.exe, .com). If the executable is in $PATH it can + be called by name, with or without an extension: > + :call jobstart(['ping', 'neovim.io']) +< If it is a path (not a name), it must include the extension: > + :call jobstart(['System32\ping.exe', 'neovim.io']) +< {opts} is a dictionary with these keys: on_stdout: stdout event handler (function name or |Funcref|) on_stderr: stderr event handler (function name or |Funcref|) @@ -7099,9 +7104,8 @@ synstack({lnum}, {col}) *synstack()* valid positions. system({cmd} [, {input}]) *system()* *E677* - Get the output of the shell command {cmd} as a |string|. {cmd} - will be run the same as in |jobstart()|. See |systemlist()| - to get the output as a |List|. + Get the output of {cmd} as a |string| (use |systemlist()| to + get a |List|). {cmd} is treated exactly as in |jobstart()|. Not to be used for interactive commands. If {input} is a string it is written to a pipe and passed as |