summaryrefslogtreecommitdiff
path: root/runtime/doc
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2014-04-05 19:44:40 +0200
committerBram Moolenaar <Bram@vim.org>2014-04-05 19:44:40 +0200
commit39c29ed5118ab513554d1d51d6a98e65f32784ba (patch)
tree01f3df4888dd4be45f2098fe71b574436d1e3a72 /runtime/doc
parent57ebe6e2f94edad6adc43246d98919e728095211 (diff)
downloadvim-39c29ed5118ab513554d1d51d6a98e65f32784ba.zip
updated for version 7.4.248
Problem: Cannot distinguish between NL and NUL in output of system(). Solution: Add systemlist(). (ZyX)
Diffstat (limited to 'runtime/doc')
-rw-r--r--runtime/doc/eval.txt14
1 files changed, 13 insertions, 1 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index a4bb1f40e..5cab95d09 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -2002,6 +2002,7 @@ synIDtrans( {synID}) Number translated syntax ID of {synID}
synconcealed( {lnum}, {col}) List info about concealing
synstack( {lnum}, {col}) List stack of syntax IDs at {lnum} and {col}
system( {expr} [, {input}]) String output of shell command/filter {expr}
+systemlist( {expr} [, {input}]) List output of shell command/filter {expr}
tabpagebuflist( [{arg}]) List list of buffer numbers in tab page
tabpagenr( [{arg}]) Number number of current or last tab page
tabpagewinnr( {tabarg}[, {arg}])
@@ -5963,7 +5964,8 @@ synstack({lnum}, {col}) *synstack()*
valid positions.
system({expr} [, {input}]) *system()* *E677*
- Get the output of the shell command {expr}.
+ Get the output of the shell command {expr} as a string. See
+ |systemlist()| to get the output as a List.
When {input} is given and is a string this string is written
to a file and passed as stdin to the command. The string is
@@ -6011,6 +6013,16 @@ system({expr} [, {input}]) *system()* *E677*
Use |:checktime| to force a check.
+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".
+
+ Returns an empty string on error, so be careful not to run
+ into |E706|.
+
+
tabpagebuflist([{arg}]) *tabpagebuflist()*
The result is a |List|, where each item is the number of the
buffer associated with each window in the current tab page.