diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-09-27 19:34:08 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-09-27 19:34:08 +0200 |
commit | 5be4ceecea5520265066eac972460ebb1cdf05e7 (patch) | |
tree | 818c9471879de5c5fb956c21f125cc8de9a42341 /runtime/doc/eval.txt | |
parent | a7f6c3cf071bb6267e0bd2eb3d27ca240381ba87 (diff) |
Update runtime files.
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index f8f7e48443..927651ce02 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.1. Last change: 2019 Sep 26 +*eval.txt* For Vim version 8.1. Last change: 2019 Sep 27 VIM REFERENCE MANUAL by Bram Moolenaar @@ -9634,9 +9634,14 @@ systemlist({expr} [, {input}]) *systemlist()* Same as |system()|, but returns a |List| with lines (parts of output separated by NL) with NULs transformed into NLs. Output is the same as |readfile()| will output with {binary} argument - set to "b". Note that on MS-Windows you may get trailing CR - characters. + set to "b", except that there is no extra empty item when the + result ends in a NL. + Note that on MS-Windows you may get trailing CR characters. + To see the difference between "echo hello" and "echo -n hello" + use |system()| and |split()|: > + echo system('echo hello')->split('\n', 1) +< Returns an empty string on error. Can also be used as a |method|: > |