mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-29 10:32:47 +00:00
Initial checkin of grep-not script
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6951 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d6b73035b7
commit
cf36d1c6d1
19
test/Scripts/grep-not
Executable file
19
test/Scripts/grep-not
Executable file
@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user