Yasuhiro Matsumoto wrote:

> $ vim -u NONE -i NONE -N -e -c NonExistCommand -c qall
> $ echo $?
> 1
> 
> This command exit with exit code 1. I'm thinking this is reasonable to
> return non-zero value into shell, and quit vim properly. But I'm
> thinking, when the NonExistCommand was executed with "silent!", this
> command should return 0.
> 
> $ vim -u NONE -i NONE -N -e -c "silent! NonExistCommand" -c qall

Good idea.

I can't find the place in the docs where the exit value is documented...


-- 
E  M  A  C  S
s  e  l  o  h
c  t  t  n  i
a  a     t  f
p        r  t
e        o
         l

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
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/d/optout.

Raspunde prin e-mail lui