Path: utzoo!attcan!uunet!husc6!bbn!mit-eddie!ll-xn!ames!sgi!sgistl!larry From: larry@sgistl.SGI.COM (Larry Autry) Newsgroups: comp.unix.questions Subject: test the exit status inside a shell Keywords: exit status Message-ID: <5651@sgistl.SGI.COM> Date: 28 Sep 88 12:59:17 GMT Organization: Silicon Graphics in St.Louis, MO Lines: 9 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@sgistl.sgi.com or {ucbvax,sun,ames,pyramid,decwrl}!sgi!sgistl!larry