1 # $FreeBSD: head/bin/sh/tests/builtins/dot1.0 208629 2010-05-28 22:08:34Z jilles $
5 echo "Error at line $1" >&2
9 T=$(mktemp -d ${TMPDIR:-/tmp}/sh-test.XXXXXX) || exit
13 echo 'x=2' >testscript
15 [ "$x" = 2 ] || failure $LINENO
18 PATH=$T:$PATH . testscript
19 [ "$x" = 2 ] || failure $LINENO