Re-enable egrep and fgrep instead of using the stupid scripts. --- ./src/grep.c.orig 2024-12-22 20:42:23.002065261 +0100 +++ ./src/grep.c 2024-12-22 20:48:08.290498031 +0100 @@ -2469,6 +2469,25 @@ intmax_t default_context; FILE *fp; exit_failure = EXIT_TROUBLE; + + /* check basename to preset matcher */ + do { + const char *basename; + + /* find and skip last slash */ + basename = strrchr(argv[0], '/'); + if (basename) + basename++; + else + basename = argv[0]; + + /* update matcher on known names */ + if (strcmp(basename, "egrep") == 0) + matcher = setmatcher ("egrep", matcher); + else if (strcmp(basename, "fgrep") == 0) + matcher = setmatcher ("fgrep", matcher); + } while (0); + initialize_main (&argc, &argv); /* Which command-line options have been specified for filename output.