The easy way to describe this is by an example:
:echo system('printf "a\0b\n"')
prints "a". The output of "system(command)" is truncated at the first
NUL character in command's output.
This affects all functions calling get_cmd_output(), including
"make", "grep", and friends, and that's particularly annoying since some
compilers (f.i. ghc-mod Haskell compiler) include NULs in their error
messages.
Now, looking at get_cmd_output() it's pretty clear why this happens.
It isn't obvious how to fix that though, since once we're out of the
said function we lose all information about the real length of command's
output.
/lcd
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.