vi exit status

Jean-Pierre A. Radley appl at jpr.com
Sun Jun 17 15:29:01 PDT 2007


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.

-- 
JP
	==> http://www.frappr.com/cusm <==


More information about the Filepro-list mailing list