diff 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
line wrap: on
line diff
--- 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}])				*syste
 		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|: >