llvm-6502/test/Scripts/grep-not
Chris Lattner 35f7ba9120 Handle quoting right
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6954 91177308-0d34-0410-b5e6-96231b3b80d8
2003-06-28 22:43:58 +00:00

20 lines
469 B
Bash
Executable File

#!/bin/sh
#
# Program: grep-not
#
# Synopsis: Search the input to the program for a regular expression, working
# just like grep. The only difference is that we return success if
# the pattern was not found, and failure if it was. This is useful
# for TestRunner tests which want to make sure something DOES NOT
# occur in the output of a command.
#
# Syntax: The same as grep
if grep "$@"
then exit 1
else exit 0
fi