VirtualBox

source: kBuild/vendor/grep/3.7/tests/grep-dev-null@ 3576

Last change on this file since 3576 was 3529, checked in by bird, 3 years ago

Imported grep 3.7 from grep-3.7.tar.gz (sha256: c22b0cf2d4f6bbe599c902387e8058990e1eee99aef333a203829e5fd3dbb342), applying minimal auto-props.

  • Property svn:executable set to *
File size: 613 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
5require_en_utf8_locale_
6
7LC_ALL=en_US.UTF-8
8export LC_ALL
9
10echo x | returns_ 1 grep -f /dev/null || fail=1
11echo x | returns_ 1 grep -if /dev/null || fail=1
12echo x | returns_ 1 grep -Ff /dev/null || fail=1
13echo x | returns_ 1 grep -Fif /dev/null || fail=1
14
15returns_ 1 grep -f /dev/null < /dev/null || fail=1
16returns_ 1 grep -if /dev/null < /dev/null || fail=1
17returns_ 1 grep -Ff /dev/null < /dev/null || fail=1
18returns_ 1 grep -Fif /dev/null < /dev/null || fail=1
19
20Exit $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