2 # test that the empty file means no pattern
3 # and an empty pattern means match all.
9 # should return 0 found a match
10 echo "abcd" | ${GREP} -E -e '' > /dev/null 2>&1
11 if test $? -ne 0 ; then
12 echo "Status: Wrong status code, test \#1 failed"
16 # should return 1 found no match
17 echo "abcd" | ${GREP} -E -f /dev/null > /dev/null 2>&1
18 if test $? -ne 1 ; then
19 echo "Status: Wrong status code, test \#2 failed"
23 # should return 0 found a match
24 echo "abcd" | ${GREP} -E -f /dev/null -e "abc" > /dev/null 2>&1
25 if test $? -ne 0 ; then
26 echo "Status: Wrong status code, test \#3 failed"