DragonFly commits List (threaded) for 2011-08
git: sh: Set $? to 0 for background commands.
Author: Peter Avalos <email@example.com>
Date: Sat Jul 2 13:59:09 2011 -1000
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.
Obtained-from: FreeBSD SVN rev 221027
Summary of changes:
bin/sh/eval.c | 11 +++++++----
tools/regression/bin/sh/execution/bg1.0 | 3 +++
tools/regression/bin/sh/execution/bg2.0 | 5 +++++
tools/regression/bin/sh/execution/bg3.0 | 5 +++++
4 files changed, 20 insertions(+), 4 deletions(-)
create mode 100644 tools/regression/bin/sh/execution/bg1.0
create mode 100644 tools/regression/bin/sh/execution/bg2.0
create mode 100644 tools/regression/bin/sh/execution/bg3.0
DragonFly BSD source repository