*BSD News Article 22664


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!munnari.oz.au!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!swrinde!emory!tackle!irbs!jc
From: jc@irbs.UUCP (John Capo)
Newsgroups: comp.os.386bsd.bugs
Subject: elvis exit code bug
Message-ID: <518@irbs.UUCP>
Date: 20 Oct 93 21:31:29 GMT
Organization: Irbs Engineering
Lines: 23


Elvis exits with a status of 1 if the file being edited has not
been modified and therefore has not been written. This upsets some
things like elm, cvs, and anything else that invokes elvis for
editing.

*** ../elvis/main.c	Thu Jun 17 22:00:04 1993
--- main.c	Wed Sep 22 12:42:57 1993
***************
*** 418,423 ****
--- 418,426 ----
  	refresh();
  	endwin();
  
+ 	if (exitcode == 1)
+ 	    exitcode = 0;
+ 
  	exit(exitcode);
  	/*NOTREACHED*/
  }

---
John Capo   jcapo@netcom.com