diff options
author | Bram Moolenaar <Bram@vim.org> | 2017-01-08 13:26:03 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2017-01-08 13:26:03 +0100 |
commit | 12c4492dd35e0cd83c8816be2ec849b836109882 (patch) | |
tree | 95f4c3fe9930a7d42630659e7571175f5f2c2a22 /runtime | |
parent | 7069bf18e1b1b7bc7640335e07d1022b5acc9048 (diff) |
patch 8.0.0151: passing buffer content to system() is clumsyv8.0.0151
Problem: To pass buffer content to system() and systemlist() one has to
first create a string or list.
Solution: Allow passing a buffer number. (LemonBoy, closes #1240)
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/eval.txt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 1f54372e97..f5ea0780a9 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -7561,7 +7561,11 @@ system({expr} [, {input}]) *system()* *E677* If {input} is given and is a |List| it is written to the file in a way |writefile()| does with {binary} set to "b" (i.e. with a newline between each list item with newlines inside - list items converted to NULs). + list items converted to NULs). + When {input} is given and is a number that is a valid id for + an existing buffer then the content of the buffer is written + to the file line by line, each line terminated by a NL and + NULs characters where the text has a NL. Pipes are not used, the 'shelltemp' option is not used. |