sh: Test that . /dev/null returns exit status 0 and does not preserve $?.
[dragonfly.git] / tools / regression / bin / sh / builtins / dot3.0
1 # $FreeBSD: src/tools/regression/bin/sh/builtins/dot3.0,v 1.1 2011/03/07 23:52:23 jilles Exp $
2
3 # . should return 0 if no command was executed.
4
5 if false; then
6         exit 3
7 else
8         . /dev/null
9         exit $?
10 fi