* src/sanity/style.test: Make sure grep supports the options put
into GREP_OPTIONS.
This commit is contained in:
parent
b61fab1eb0
commit
c0ed084e7d
2 changed files with 9 additions and 4 deletions
|
|
@ -15,10 +15,12 @@ diag()
|
|||
rm -f failures
|
||||
|
||||
# Get some help from GNU grep.
|
||||
GREP_OPTIONS='--color=auto -n'
|
||||
GREP_COLOR='1;31'
|
||||
export GREP_OPTIONS
|
||||
export GREP_COLOR
|
||||
if (grep --color=auto -n --version)>/dev/null 2>&1; then
|
||||
GREP_OPTIONS='--color=auto -n'
|
||||
GREP_COLOR='1;31'
|
||||
export GREP_OPTIONS
|
||||
export GREP_COLOR
|
||||
fi
|
||||
|
||||
tmp=incltest.tmp
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue