vi exit status

Bill Campbell bill at celestial.com
Sun Jun 17 16:55:00 PDT 2007


On Sun, Jun 17, 2007, Jean-Pierre A. Radley wrote:
>John Esak propounded (on Sun, Jun 17, 2007 at 05:57:09PM -0400):
>| Well, I tried these on FreeBSD and the exit status was 0.  However, wouldn't
>| you expect it to be thus?
>| 
>| Isn't it the exit status of the last command (which I would think is the vi
>| itself, not commands that worked or didn't work inside vi) the only thing
>| one can check... and didn't vi succeed?  So, wouldn't you expect it to be 0?
>
>Not if it conforms to an older Posix standard, as does the vi binary on
>SCO or Solaris.

Are you saying that if anything one does in a vi editing session
fails, that it should show as an abnormal termination?  If that
were the case, I doubt that I could ever get out of an editing
session without an error of some kind.

Bill
--
INTERNET:   bill at Celestial.COM  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``The children who know how to think for themselves spoil the harmony of
the collective society that is coming, where everyone would be
interdependent.''  1899 John Dewey, educational philosopher, proponent of
modern public schools.


More information about the Filepro-list mailing list