I'm not sure this can be reconciled with "printing a deprecation warning is a breaking change".
We are stuck with egrep and fgrep (unless you like beating people)
141–150 of 354 posts
Re: We are stuck with egrep and fgrep (unless you like beating people)
#142Re: We are stuck with egrep and fgrep (unless you like beating people)
#143I use fgrep all the time. Why should I spend time converting scripts, and retraining my fingers, and forever after taking longer to type grep -F? This is a breaking change that has no upside, only downside. It is idiocy. Just to elaborate, there must be many thousands (hundreds of thousands? millions?) of shell scripts out there that use fgrep. For no reason at all (whatever maintenance burden fgrep represents must b…
But the cost of keeping an alias around for decades is negligible I think. It's cheaper than breaking every existing usage in any case.
Re: We are stuck with egrep and fgrep (unless you like beating people)
#144Earlier quoted context omitted.
Frankly I can count on two hands the number of times I’ve used egrep in my life (same for grep -E). As long as I can remember I’ve relied on sed, awk, or find -regex for filtering output with regex. I only say this because I can’t relate to those that are upset about the change. That said, to answer your questions directly: hopefully you aren’t auto updating anywhere in production or important, so this won’t effect a…
> Frankly I can count on two hands Emphasis on "I", which says strictly nothing of the rest of CLI users out there. We're very glad to learn that it is not a problem for you , but it brings very little to the conversation.
Worth reading the guidelines [0].
Re: We are stuck with egrep and fgrep (unless you like beating people)
#145Happy to have left the mess that is grep, awk, bash, zsh, fish, etc. behind and just use Python for scripting.
Re: We are stuck with egrep and fgrep (unless you like beating people)
#146https://git.savannah.gnu.org/gitweb/?p=grep.git;a=blobdiff;f...
I remember around ~10 years ago being told "you should never use `egrep` because it is slower than `grep -E`." precisely because the former requires extra forks() compared to the latter. However I'd counter that advice saying "if you're concerned about the performance of forks() then why are you running your code as a shell script to begin with?"... and I stand by that assessment now. In fact it would probably take me longer to type `-E` than it would for any modern system to run fork() (and I'm sure as hell not planning on using `grep` inside any hot loops!)
I think what will likely happen here is that distro maintainers will either remove that warning themselves or take ownership of the `egrep` and `fgrep` shell scripts. I'd be surprised if that warning made its way to the mainstream distros. I also wouldn't be surprised if the GNU grep maintainers did a u-turn on this change -- though it has already been committed to git for more than a year now and this is the first I've heard people complain about the change.
Re: We are stuck with egrep and fgrep (unless you like beating people)
#147I use fgrep all the time. Why should I spend time converting scripts, and retraining my fingers, and forever after taking longer to type grep -F? This is a breaking change that has no upside, only downside. It is idiocy. Just to elaborate, there must be many thousands (hundreds of thousands? millions?) of shell scripts out there that use fgrep. For no reason at all (whatever maintenance burden fgrep represents must b…
Re: We are stuck with egrep and fgrep (unless you like beating people)
#148Yet another reason why shellscripts are bad huh.
Re: We are stuck with egrep and fgrep (unless you like beating people)
#149I use fgrep all the time. Why should I spend time converting scripts, and retraining my fingers, and forever after taking longer to type grep -F? This is a breaking change that has no upside, only downside. It is idiocy. Just to elaborate, there must be many thousands (hundreds of thousands? millions?) of shell scripts out there that use fgrep. For no reason at all (whatever maintenance burden fgrep represents must b…
I think the larger issue is that people generally don't do dependency management for their scripts. Scripts are programs, and they are dependent on the shell environments they are written for.
Re: We are stuck with egrep and fgrep (unless you like beating people)
#150 which
being deprecated, replaced by: command -v