Linus Was Right, Never Break Userspace #Linux #YouTube https://youtu.be/cy1Mopeze1k
Linus Was Right, Never Break Userspace
Recently this Reddit post was floating around about deprecated functionality in grep, specifically fgrep and egrep and whether it's ever ok to actually break...YouTube
yianiris
in reply to Brodie Robertson • • •@BrodieOnLinux
Mehrad :kde: :emacs: :rstats:
in reply to Brodie Robertson • • •I watched you video some hours ago and here is my 2cents:
Software in general is like a living organism. Essential parts for survival will retain and vestigial parts will eventually get removed. therefore, deprication is unavoidable, especially for things that are not integral and central or for things that can/should be updated.
As for me, I was aware of `egrep` and `fgerp`, but I have never ever used them as I prefer `-E` and `-F` in grep.
🧵 👇🏼
Random Tux User
in reply to Brodie Robertson • • •Honestly, even if they do this, I cannot see why linux distributions can't just make the alias themselves.
As you said, it is not an extra maintainance burden. Some distros already have aliases for stuff like 'ls -a'. It could either be in the default bash config, or an actual script redirecting to the new command.
Brodie Robertson
in reply to Random Tux User • • •Odoben
in reply to Brodie Robertson • • •I actually really like openSUSE's solution to this where
egrep
andfgrep
are just scripts:#!/bin/sh
exec grep -E "$@"
#!/bin/sh
exec grep -F "$@"