mail1.0 revision 213738
12089Ssos# $FreeBSD: head/tools/regression/bin/sh/parameters/mail1.0 213738 2010-10-12 18:20:38Z obrien $ 22089Ssos# Test that a non-interactive shell does not access $MAIL. 32089Ssos 42089Ssosgoodfile=/var/empty/sh-test-goodfile 5mailfile=/var/empty/sh-test-mailfile 6T=$(mktemp sh-test.XXXXXX) || exit 7MAIL=$mailfile ktrace -i -f "$T" ${SH} -c "[ -s $goodfile ]" 2>/dev/null 8if ! grep -q $goodfile "$T"; then 9 # ktrace problem 10 rc=0 11elif ! grep -q $mailfile "$T"; then 12 rc=0 13fi 14rm "$T" 15exit ${rc:-3} 16