Date: Mon, 25 Apr 2011 20:54:12 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/bin/sh eval.c src/tools/regression/bin/sh/execution bg1.0 bg2.0 bg3.0 Message-ID: <201104252055.p3PKtix0004222@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
jilles 2011-04-25 20:54:12 UTC
FreeBSD src repository
Modified files:
bin/sh eval.c
Added files:
tools/regression/bin/sh/execution bg1.0 bg2.0 bg3.0
Log:
SVN rev 221027 on 2011-04-25 20:54:12Z by jilles
sh: Set $? to 0 for background commands.
For backgrounded pipelines and subshells, the previous value of $? was being
preserved, which is incorrect.
For backgrounded simple commands containing a command substitution, the
status of the last command substitution was returned instead of 0.
If fork() fails, this is an error.
Revision Changes Path
1.103 +6 -3 src/bin/sh/eval.c
1.1 +3 -0 src/tools/regression/bin/sh/execution/bg1.0 (new)
1.1 +5 -0 src/tools/regression/bin/sh/execution/bg2.0 (new)
1.1 +5 -0 src/tools/regression/bin/sh/execution/bg3.0 (new)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201104252055.p3PKtix0004222>
