sh: Test that . /dev/null returns exit status 0 and does not preserve $?.
authorPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Dec 2011 17:43:46 +0000 (09:43 -0800)
committerPeter Avalos <pavalos@dragonflybsd.org>
Sun, 25 Dec 2011 17:43:46 +0000 (09:43 -0800)
commitdbdce6a73b0458db3f9dec0f4a3de3100aff5566
tree1d2151aef43756fa4c188d715b8a109ca6270bc4
parent690a7448b8b79bdbea6ae6b108ed5380a8548ccc
sh: Test that . /dev/null returns exit status 0 and does not preserve $?.

Preserving $? may cause problems particularly if set -e is in effect.

It may be useful to preserve the old value of $? in the dot script but this
must not be implemented in such a way that it would break this test.

Obtained-from:  FreeBSD 219390
tools/regression/bin/sh/builtins/dot3.0 [new file with mode: 0644]