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



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