3 ms·
What is annoying is coreutils has deprecated egrep, fgrep, and now made them print stupid messages. $ egrep foo /etc/motd egrep: warning: egrep is obsolesc
by rwmj 3y ago
What is annoying is coreutils has deprecated egrep, fgrep, and now made them print stupid messages.
$ egrep foo /etc/motd
egrep: warning: egrep is obsolescent; using grep -E
There's no reason why we can't keep egrep and fgrep around forever, but instead we have to change all existing scripts and programs that might use them.
- hcfman 3y agoTotally agree. Plus it adds stress to us old people who have been using egrep for years. “Why they wanna go break all my shell scripts ?”
- Dutchie987 3y agoYou could alias egrep="grep -E" to avoid changing existing scripts. Sure, it's not ideal but it might tide you over in the meantime.
- rwmj 3y agoalias doesn't work in scripts. I could manually patch /usr/bin/egrep, but really why? What are we saving by getting rid of two microscopic shell scripts?
- Something1234 3y agoAlias at the top of your script. Sure /bin/bash doesn't read .bashrc when ran in batch mode, doesn't mean you can't patch your script.