4 ms·
I betcha most people didn't even know they were considered "deprecated".
by Beltalowda 4y ago
I betcha most people didn't even know they were considered "deprecated".
- ozim 4y agoThere is so much outdated info on the internet in various forms that it is hard even to realize what is "proper modern way" of doing things unless you really are into Linux \ config stuff. I am casual user so I can get around system but modern ways always surprise me when I finally find out about it.
- Beltalowda 4y agoAnd for all you know "grep -E" isn't supported on some system people use. This is not really a concern if you're just writing script for yourself (which are really >90% of scripts; portability often isn't really a concern), but knowing it will work on all systems – new and old – is pretty hard, and sometimes it does matter. Does it work on NetBSD? HP-UX? Solaris? Last year autoconf changed the `..` command substitution syntax to the "new" $(..) syntax and someone complained it broke on their ancient Solaris system. So ... people will stick with what works, like "egrep".
- kibwen 4y agoAnd now they do, so perhaps it's working as intended. :P
- LinuxBender 4y agoI learned about the deprecation from ShellCheck [1] that warns if using egrep instead of `grep -E`. That tool deprogrammed many of my bad habits. I had never seen any discussions about it otherwise. [1] - https://www.shellcheck.net/ https://www.shellcheck.net/
- tmtvl 4y agoThat's a cool tool, it's neat seeing Haskell in the wild. Unfortunately (or not?) I tend to use actual programming languages to make my tools rather than doing shell scripting, so I don't have anything interesting to put in there, but I'll keep a bookmark of it around.
- gw99 4y agoYes. This is the first I've heard of it and I've got a ton of scripts that are probably going to break.
- dspillett 4y agoI for one didn't know they were properly deprecated. Though I've not used either since uni over two decades ago¹ on a somewhat off-standard Unix a few of the machines ran, so until this thread I can't say I was remembering that they existed at all. ---- [1] using grep -E when needed since² [2] and presumably grep -F too though I don't remember ever actually doing that
- vultour 4y agoMost people shouldn’t have been using this in the first place. If you’ve been taught to use these in the last ~10 years then someone, somewhere, has failed horribly.