Open racingmars opened 1 year ago
Thanks. I wonder what the GNU folks were thinking when they perpetrated those warning messages. It seems like an extraordinarily bad idea. I wonder if sufficiently old Unices have "egrep" but not "grep -E". If so, the better solution would be to throw in another redirect of stderr to /dev/null (on the egrep command, not just on the ip or ifconfig command).
Apparently "egrep" was never standardized by POSIX and "grep -E" was preferred at least as far back as the 1992 version of the POSIX spec, IEEE standard 1003.2-1992.
Sending the stderr of egrep to /dev/null could certainly be a safe option for now. I wonder if new versions of GNU grep are starting to loudly complain about it in preparation to actually drop installing the egrep wrapper shell script.
Wow, it's a shell script? Bizarre, what a crude hack.. Mac OS just does these as hardlinks (those are BSD grep, not GNU).
Context
When I run, e.g. the vax780 simulator, and attach an XU device, several warning messages are displayed:
My system has GNU grep 3.8.
the output of "sim> SHOW VERSION" while running the simulator which is having the issue
how you built the simulator or that you're using prebuilt binaries
I built from source with
make vax780
the simulator configuration file (or commands) which were used when the problem occurred.
The following vax780.ini reproduces the problem (I have an existing tap interface on my system named tapVAX):
the expected behavior and the actual behavior
Expected behavior: no warning messages from the system tools simh is executing.
Actual behavior: many messages about using the deprecated egrep instead of grep -E.
Fix
Changing the
egrep
on lines 1786 and 1788 in sim_ether.c togrep -E
prevents the warnings.