[prev in list] [next in list] [prev in thread] [next in thread]
List: bash-bug
Subject: Re: How to echo the return value of a program
From: Christopher Roy Bratusek <zanghar () freenet ! de>
Date: 2011-01-22 9:24:32
Message-ID: 201101221024.32907.zanghar () freenet ! de
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic