1 # $FreeBSD: head/bin/sh/tests/builtins/dot2.0 208630 2010-05-28 22:40:24Z 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