Subject: Re: Returned values in shell scripts
To: None <netbsd-users@netbsd.org>
From: Jan Schaumann <jschauma@netbsd.org>
List: netbsd-users
Date: 07/06/2002 21:51:51
Andy Ball <ball@cyberspace.org> wrote:
> If I call a program (I'm thinking of xmessage initially,
> but it would be helful to know in general), and that
> program returns an exit value, how do I access that in
> the next line of the shell script? Is it stuffed in an
> environment variable somewhere?
$? usually, I think. At least in bourne- and korn-shell.
-Jan
--
Tradition is the illusion of permanence. -- Woody Allen