Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 186 by [email protected]: After initial failure, then
eventual success, Vim still exits with EXIT_FAILURE
http://code.google.com/p/vim/issues/detail?id=186
Greetings, lovely people!
I *believe* I've found a bug, although I could be wrong:
What steps will reproduce the problem?
$ vi test
:wq
$ echo $?
0
I correctly get an exit status of EXIT_SUCCESS.
$ vi test
:Wq
:wq
$ echo $?
1
I get an exit status of EXIT_FAILURE. I realise that it's clearly my own
trigger happy fault to typo :Wq, which correctly gives me an error
message. However, subsequently correctly typing :wq and therefore
successfully saving the file should surely override this, counting as a
successful exit?
This would help me no end as, I believe, it would stop Git then throwing
away the file -- the commit message -- with an error message, believing it
to be faulty.
What is the expected output? What do you see instead?
I'd expect a 0 (EXIT_SUCCESS) if the write-and-quit command :wq was
successful upon leaving the problem, even if I made a typo typing in a
command earlier on.
Instead, I see a 1 (EXIT_FAILURE).
What version of the product are you using? On what operating system?
I'm using Vim on Apple's OS X Mavericks, as it's supplied out of the box.
This is:
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 24 2013 18:58:47)
Please provide any additional information below.
Sorry I couldn't find out whether the issue is OS X specific or not. My
other computer is a Raspberry Pi, and happens to be running a different
flavour of vi. (For what it's worth, it appears to be vanilla vi "Version
4.0 (gritter) 3/25/05", and it exits with EXIT_SUCCESS in both instances.)
Thank you very much for looking at this!
All the best,
Zoƫ.
(A big fan of both vi in general and Vim in particular.)
--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings
--
--
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.