test the exit status inside a shell

Larry Autry larry at sgistl.SGI.COM
Wed Sep 28 22:59:17 AEST 1988


Is there a way to test the exit status of the previously executed process
while in a shell?  In other words, if the previous program returned an exit
status of (2) (or even (0)), then perform something based upon that return 
value.
-- 
					Larry Autry
larry at sgistl.sgi.com
       or
{ucbvax,sun,ames,pyramid,decwrl}!sgi!sgistl!larry



More information about the Comp.unix.questions mailing list