NetBSD-Bugs archive

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

Re: bin/46327: sh background commands have old return value



The following reply was made to PR bin/46327; it has been noted by GNATS.

From: Jukka Ruohonen <jruohonen%iki.fi@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: gnats-admin%NetBSD.org@localhost, netbsd-bugs%NetBSD.org@localhost
Subject: Re: bin/46327: sh background commands have old return value
Date: Fri, 13 Apr 2012 08:47:21 +0300

 On Thu, Apr 12, 2012 at 10:10:01PM +0000, dmandelb%bbn.com@localhost wrote:
 > # true; true & echo $?
 > 0
 > # false; true & echo $?
 > 1
 
 This does not seem to occur with '-c':
 
 $ /bin/sh -c "true; true & echo $?"  
 0
 $ /bin/sh -c "false; true & echo $?"
 0
 


Home | Main Index | Thread Index | Old Index