4 ms·
Those are not provided by GNU grep, they are an Arch thing (could exist on other distros as well, I'm not sure). The scripts are hand-written for keeping the su
by augusto-moura 4y ago
Those are not provided by GNU grep, they are an Arch thing (could exist on other distros as well, I'm not sure). The scripts are hand-written for keeping the support with older scripts.
I imagine Arch is not using GNU's egrep and fgrep anymore because of the deprecation.
This also answer the question on why is not necessary to GNU to maintain those different commands. Distros can easily shim them to grep if they want to, similar to how a lot of them already link /bin/sh to bash
- LukeShu 4y ago> Those are not provided by GNU grep, they are an Arch thing No, they're a GNU grep thing. GNU grep 3.7: https://git.savannah.gnu.org/cgit/grep.git/tree/src/egrep.sh?h=v3.7 https://git.savannah.gnu.org/cgit/grep.git/tree/src/egrep.sh... GNU grep 3.8 (with the warning): https://git.savannah.gnu.org/cgit/grep.git/tree/src/egrep.sh?h=v3.8 https://git.savannah.gnu.org/cgit/grep.git/tree/src/egrep.sh... And you can see that the Arch package isn't doing anything special to add it: https://github.com/archlinux/svntogit-packages/blob/packages/grep/trunk/PKGBUILD https://github.com/archlinux/svntogit-packages/blob/packages... In general, Arch avoids doing Arch-specific things and prefers to provide vanilla upstream packages, a lot more than other distros avoid doing distro-specific things.