[Bug 237873] Inconsistent behavior between the program and its man page bsdgrep(1)

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 29 Apr 2024 08:26:29 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=237873

Wolfram Schneider <wosch@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |wosch@FreeBSD.org
             Blocks|                            |230332
             Status|New                         |Open

--- Comment #4 from Wolfram Schneider <wosch@FreeBSD.org> ---
It seems that the -p option does not work in bsdgrep. How to reproduce:


date > date
ln -s date symlink

# two results expected
grep -r .
./date:Mon Apr 29 08:21:22 UTC 2024
./symlink:Mon Apr 29 08:21:22 UTC 2024

# one result expected
grep -pr .
./date:Mon Apr 29 08:21:22 UTC 2024
./symlink:Mon Apr 29 08:21:22 UTC 2024


# gnu grep works fine, two hits for -R and one for -r options
ggrep -R .
date:Mon Apr 29 08:21:22 UTC 2024
symlink:Mon Apr 29 08:21:22 UTC 2024

ggrep -r .
date:Mon Apr 29 08:21:22 UTC 2024


Referenced Bugs:

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=230332
[Bug 230332] TRACKING: bsdgrep as /usr/bin/grep
-- 
You are receiving this mail because:
You are the assignee for the bug.