mail1.0 revision 203576
155714Skris# $FreeBSD: head/tools/regression/bin/sh/parameters/mail1.0 203576 2010-02-06 22:57:24Z jilles $ 255714Skris# Test that a non-interactive shell does not access $MAIL. 355714Skris 455714Skrisgoodfile=/var/empty/sh-test-goodfile 559191Skrismailfile=/var/empty/sh-test-mailfile 659191SkrisT=$(mktemp sh-test.XXXXXX) || exit 755714SkrisMAIL=$mailfile ktrace -i -f "$T" sh -c "[ -s $goodfile ]" 2>/dev/null 855714Skrisif ! grep -q $goodfile "$T"; then 955714Skris # ktrace problem 1079998Skris rc=0 1155714Skriselif ! grep -q $mailfile "$T"; then 1255714Skris rc=0 1379998Skrisfi 1479998Skrisrm "$T" 1555714Skrisexit ${rc:-3} 1655714Skris