|
Last change
on this file was 2595, checked in by bird, 12 years ago |
|
gnu grep version 2.12 (grep-2.12.tar.xz, md5sum=8d2f0346d08b13c18afb81f0e8aa1e2f)
|
|
File size:
424 bytes
|
| Line | |
|---|
| 1 | #!/bin/sh
|
|---|
| 2 | # grep must ignore --devices=ACTION (-D) when reading stdin
|
|---|
| 3 | # For grep-2.11, this test would fail.
|
|---|
| 4 |
|
|---|
| 5 | . "${srcdir=.}/init.sh"; path_prepend_ ../src
|
|---|
| 6 |
|
|---|
| 7 | # Test both with no file argument, and with "-".
|
|---|
| 8 | echo foo | grep -D skip foo - || fail=1
|
|---|
| 9 | echo foo | grep --devices=skip foo || fail=1
|
|---|
| 10 |
|
|---|
| 11 | # It's more insidious when the skip option is via the envvar:
|
|---|
| 12 | echo foo | GREP_OPTIONS=--devices=skip grep foo || fail=1
|
|---|
| 13 |
|
|---|
| 14 | Exit $fail
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.