grep: Fix -v output and exit status
Previously, it printed lines that didn't match some pattern. Instead, it should print lines that don't match *any* pattern. Test case: out=$(echo foo | ./grep -v -e foo -e bar) if [ "$?" = 1 ] && [ -z "$out" ] ; then echo pass else echo fail fimaster
parent
e6b3af07cf
commit
0ba879cdba
Loading…
Reference in New Issue