bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to echo the return value of a program


From: Christopher Roy Bratusek
Subject: Re: How to echo the return value of a program
Date: Sat, 22 Jan 2011 10:24:32 +0100
User-agent: KMail/1.13.5 (Linux/2.6.36-zen1; KDE/4.5.3; x86_64; ; )

On Saturday 22 January 2011 09:29:11 ali hagigat wrote:
> I want to print the return value of an executable like:
> make -q -f makefile22
> The above command returns non-zero if the targets are not up to date.
> How can i see that value by shell commands. I am using /bin/bash,
> Fedora gnome-terminal.

simply use 

$?

to get it.

Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]