* Ben Klein [2014.02.14 14:00]:
> When I echom something from the command line using system():
> :echom system("echo \"testing\"")
> I get a ^@ (null) at the end of the result:
> testing^@
> If I instead use echo, which doesn't translate unprintable characters but
> displays them:
> :echo system("echo \"testing\")
> I get the result of the command line command with an added newline:
> testing
You don't say what your operating system is, but
in a posix shell you could do:
:echo system("printf \"testing\"")
I almost never use echo in the shell. Too much of
a pain.
--
JR
--
--
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment