comparison runtime/doc/eval.txt @ 18186:03b854983b14

Update runtime files. Commit: https://github.com/vim/vim/commit/5be4ceecea5520265066eac972460ebb1cdf05e7 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Sep 27 19:34:08 2019 +0200 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Fri, 27 Sep 2019 19:45:06 +0200
parents 4ac8161e92e0
children 375a7ecdb351
comparison
equal deleted inserted replaced
18185:75f204e14e28 18186:03b854983b14
1 *eval.txt* For Vim version 8.1. Last change: 2019 Sep 26 1 *eval.txt* For Vim version 8.1. Last change: 2019 Sep 27
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
9632 9632
9633 systemlist({expr} [, {input}]) *systemlist()* 9633 systemlist({expr} [, {input}]) *systemlist()*
9634 Same as |system()|, but returns a |List| with lines (parts of 9634 Same as |system()|, but returns a |List| with lines (parts of
9635 output separated by NL) with NULs transformed into NLs. Output 9635 output separated by NL) with NULs transformed into NLs. Output
9636 is the same as |readfile()| will output with {binary} argument 9636 is the same as |readfile()| will output with {binary} argument
9637 set to "b". Note that on MS-Windows you may get trailing CR 9637 set to "b", except that there is no extra empty item when the
9638 characters. 9638 result ends in a NL.
9639 9639 Note that on MS-Windows you may get trailing CR characters.
9640
9641 To see the difference between "echo hello" and "echo -n hello"
9642 use |system()| and |split()|: >
9643 echo system('echo hello')->split('\n', 1)
9644 <
9640 Returns an empty string on error. 9645 Returns an empty string on error.
9641 9646
9642 Can also be used as a |method|: > 9647 Can also be used as a |method|: >
9643 :echo GetCmd()->systemlist() 9648 :echo GetCmd()->systemlist()
9644 9649