Last change
on this file since 3627 was 2595, checked in by bird, 13 years ago |
gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)
|
File size:
752 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 | # Case-insensitive grep with a 0-size input file would fail in grep up to 2.6.3
|
---|
3 | . "${srcdir=.}/init.sh"; path_prepend_ ../src
|
---|
4 |
|
---|
5 | mkdir a || framework_failure
|
---|
6 |
|
---|
7 | echo x | grep -f a/; { test $? -gt 1 && test $? -lt 128; } || fail=1
|
---|
8 | echo x | grep -if a/; { test $? -gt 1 && test $? -lt 128; } || fail=1
|
---|
9 | echo x | grep -Ff a/; { test $? -gt 1 && test $? -lt 128; } || fail=1
|
---|
10 | echo x | grep -Fif a/; { test $? -gt 1 && test $? -lt 128; } || fail=1
|
---|
11 |
|
---|
12 | grep -f a/ < /dev/null; { test $? -gt 1 && test $? -lt 128; } || fail=1
|
---|
13 | grep -if a/ < /dev/null; { test $? -gt 1 && test $? -lt 128; } || fail=1
|
---|
14 | grep -Ff a/ < /dev/null; { test $? -gt 1 && test $? -lt 128; } || fail=1
|
---|
15 | grep -Fif a/ < /dev/null; { test $? -gt 1 && test $? -lt 128; } || fail=1
|
---|
16 |
|
---|
17 | Exit $fail
|
---|
Note:
See
TracBrowser
for help on using the repository browser.