mail1.0 revision 203576
1224006Shrs# $FreeBSD: head/tools/regression/bin/sh/parameters/mail1.0 203576 2010-02-06 22:57:24Z jilles $ 2224006Shrs# Test that a non-interactive shell does not access $MAIL. 3224006Shrs 4224006Shrsgoodfile=/var/empty/sh-test-goodfile 5224006Shrsmailfile=/var/empty/sh-test-mailfile 6224006ShrsT=$(mktemp sh-test.XXXXXX) || exit 7224006ShrsMAIL=$mailfile ktrace -i -f "$T" sh -c "[ -s $goodfile ]" 2>/dev/null 8224006Shrsif ! grep -q $goodfile "$T"; then 9224006Shrs # ktrace problem 10224006Shrs rc=0 11224006Shrselif ! grep -q $mailfile "$T"; then 12224006Shrs rc=0 13224006Shrsfi 14224006Shrsrm "$T" 15224006Shrsexit ${rc:-3} 16224006Shrs