[Bug 222201] fgrep / grep -F broken if WITH_BSD_GREP set

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun Sep 10 17:54:17 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222201

            Bug ID: 222201
           Summary: fgrep / grep -F broken if WITH_BSD_GREP set
           Product: Base System
           Version: 11.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: rozhuk.im at gmail.com

fgrep / grep -F broken if WITH_BSD_GREP set in /etc/src.conf
in all cases return: literal expressions not supported at compile time.
Test: fgrep "mail" /etc/defaults/rc.conf
will fail with: literal expressions not supported at compile time

/usr/src/usr.bin/grep/grep.c:
        case GREP_FIXED:
#if defined(REG_NOSPEC)
                cflags |= REG_NOSPEC;
#elif defined(REG_LITERAL)
                cflags |= REG_LITERAL;
#else
                errx(2, "literal expressions not supported at compile time");
#endif
                break;

Make buildworld broken/fail.

To fix system I copy grep from more old system and rebuild+reinstall world
without WITH_BSD_GREP in /etc/src.conf.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list