How to build /usr/bin/grep?

2023-08-17 Thread Christian Kujau
Hi folks, I stumbled across a bug in /usr/bin/grep and noticed that this had been fixed upstream a long time ago[0], but before creating a PR I wanted to understand if I'm missing something. The bug is quite "simple": when using "--devices=skip", grep fails to match on stdin, because stdin is

Re: How to build /usr/bin/grep?

2023-08-17 Thread RVP
On Thu, 17 Aug 2023, Christian Kujau wrote: So, I guess my questions are: * Why is /usr/src/usr.bin/grep/grep different from /usr/bin/grep? /usr/src/usr.bin/grep/grep: is the FreeBSD grep (only built if MKBSDGREP=yes) /usr/bin/grep: is actually the GNU grep (bec. MKBSDGREP=no; see mk.conf(5)