bug-bash
[Top][All Lists]
Advanced

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

Re: exit status issue


From: Greg Wooledge
Subject: Re: exit status issue
Date: Fri, 18 Nov 2011 15:35:30 -0500
User-agent: Mutt/1.4.2.3i

On Fri, Nov 18, 2011 at 02:23:54PM -0600, Dallas Clement wrote:
> [pid  6747] execve("/bin/touch", ["touch", "/mnt/array1/.accesstest"],
> [/* 14 vars */]) = 0
> 
> The = 0 at the end is the exit status.

That is the return value of the execve() call.  All it means is that
the /bin/touch program was successfully launched.

$ strace -f bash -c false
...
execve("/bin/bash", ["bash", "-c", "false"], [/* 32 vars */]) = 0
...

arc3:~$ bash -c false; echo $?
1



reply via email to

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