mirror of
https://git.freebsd.org/src.git
synced 2026-01-11 19:57:22 +00:00
Remove obsolete BUGS section from zgrep(1) man page, add test
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
Some checks are pending
Cross-build Kernel / amd64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-22.04 (clang-15) (push) Waiting to run
Cross-build Kernel / amd64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 ubuntu-24.04 (clang-18) (push) Waiting to run
Cross-build Kernel / amd64 macos-latest (clang-18) (push) Waiting to run
Cross-build Kernel / aarch64 macos-latest (clang-18) (push) Waiting to run
I forgot to check/update the man page with D54217. While here add a test for multiple -e flags. Reviewed by: markj Approved by: markj MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D54632
This commit is contained in:
parent
4250d2ad99
commit
da5d94d29a
2 changed files with 11 additions and 18 deletions
|
|
@ -126,6 +126,16 @@ qflag_body()
|
|||
atf_check zgrep -q '1 2' in
|
||||
}
|
||||
|
||||
atf_test_case eflags
|
||||
eflags_body()
|
||||
{
|
||||
# Test use with more than one -e expression
|
||||
printf "aaa bbb ccc\n111 222 333\ndon't match this line" > in
|
||||
|
||||
atf_check -o 'inline:aaa bbb ccc\n111 222 333\n' \
|
||||
/tmp/zgrep.sh -eaaa -e333 in
|
||||
}
|
||||
|
||||
atf_init_test_cases()
|
||||
{
|
||||
atf_add_test_case grep_r_implied
|
||||
|
|
@ -134,4 +144,5 @@ atf_init_test_cases()
|
|||
atf_add_test_case zflag
|
||||
atf_add_test_case color_dupe
|
||||
atf_add_test_case qflag
|
||||
atf_add_test_case eflags
|
||||
}
|
||||
|
|
|
|||
|
|
@ -92,21 +92,3 @@ This version of the
|
|||
.Nm
|
||||
utility was written by
|
||||
.An Thomas Klausner Aq Mt wiz@NetBSD.org .
|
||||
.Sh BUGS
|
||||
.Xr zgrep 1
|
||||
does not handle flags that take arguments if there is no whitespace
|
||||
between the flag and the argument, for example:
|
||||
.Pp
|
||||
.Dl "zgrep -enfs /etc/rpc"
|
||||
.Pp
|
||||
When more than one
|
||||
.Fl e
|
||||
flag is used matching
|
||||
should occur for any of the patterns (similar to multiple patterns
|
||||
supplied in a file with the
|
||||
.Fl f
|
||||
flag).
|
||||
.Xr zgrep 1
|
||||
only matches the last
|
||||
.Fl e
|
||||
pattern.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue