Friday, February 14, 2014

Re: Trimming newlines from calls to system()

On Feb 14, 2014, at 1:33 PM, Jean-Rene David <vim_use@levelnine.net> wrote:

> 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.

Sorry. I am on OS X, and could indeed have used printf. echo was just an example of a command from the figurative top of my head -- it's not really relevant to the discussion; I just wanted an example of command line output. :-)

Ben

--
b

Sent from my iPhone

--
--
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: