VirtualBox

source: kBuild/vendor/grep/2.12/tests/grep-dir@ 3627

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
5mkdir a || framework_failure
6
7echo x | grep -f a/; { test $? -gt 1 && test $? -lt 128; } || fail=1
8echo x | grep -if a/; { test $? -gt 1 && test $? -lt 128; } || fail=1
9echo x | grep -Ff a/; { test $? -gt 1 && test $? -lt 128; } || fail=1
10echo x | grep -Fif a/; { test $? -gt 1 && test $? -lt 128; } || fail=1
11
12grep -f a/ < /dev/null; { test $? -gt 1 && test $? -lt 128; } || fail=1
13grep -if a/ < /dev/null; { test $? -gt 1 && test $? -lt 128; } || fail=1
14grep -Ff a/ < /dev/null; { test $? -gt 1 && test $? -lt 128; } || fail=1
15grep -Fif a/ < /dev/null; { test $? -gt 1 && test $? -lt 128; } || fail=1
16
17Exit $fail
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette