I found /etc/rc.subr in releng 15.0 contains a line "egrep" , i.e. a bug
Should this not be "grep -E".
Can someone confirm
Should this not be "grep -E".
Can someone confirm
From manpage of grep(1):I found /etc/rc.subr in releng 15.0 contains a line "egrep" , i.e. a bug
Should this not be "grep -E".
Can someone confirm
-E, --extended-regexp
Interpret pattern as an extended regular expression (i.e., force
grep to behave as egrep).
Not only that, it's the same executable.And /usr/bin/egrep exisits at least on stable/15
root@williscorto:~ # ll -i /usr/bin/egrep /usr/bin/grep
701188 -r-xr-xr-x 4 root wheel 29624 Dec 25 11:52 /usr/bin/egrep*
701188 -r-xr-xr-x 4 root wheel 29624 Dec 25 11:52 /usr/bin/grep*
Not read the codes, but maybe the same case between ex and vi.Not only that, it's the same executable.
(inodes are the same, in other words it's a hard-linked file)Code:root@williscorto:~ # ll -i /usr/bin/egrep /usr/bin/grep 701188 -r-xr-xr-x 4 root wheel 29624 Dec 25 11:52 /usr/bin/egrep* 701188 -r-xr-xr-x 4 root wheel 29624 Dec 25 11:52 /usr/bin/grep*
% ls -l /usr/bin/*grep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/bzegrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/bzfgrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/bzgrep
-r-xr-xr-x 4 root wheel 30888 1月 18 10:38 /usr/bin/egrep
-r-xr-xr-x 4 root wheel 30888 1月 18 10:38 /usr/bin/fgrep
-r-xr-xr-x 4 root wheel 30888 1月 18 10:38 /usr/bin/grep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/lzegrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/lzfgrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/lzgrep
lrwxr-xr-x 1 root wheel 15 1月 18 10:38 /usr/bin/pgrep -> ../../bin/pgrep
-r-xr-xr-x 4 root wheel 30888 1月 18 10:38 /usr/bin/rgrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/xzegrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/xzfgrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/xzgrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/zegrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/zfgrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/zgrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/zstdegrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/zstdfgrep
-r-xr-xr-x 15 root wheel 4955 1月 18 10:38 /usr/bin/zstdgrep