3 ms·
There are millions of lines of shell scripts relying on those flags.
by Maro 2y ago
There are millions of lines of shell scripts relying on those flags.
- chongli 2y agoI would place the blame for that on the GNU coreutils project. At best, it’s feature creep. At worst, it’s embrace and extend on the POSIX standard.
- erik_seaberg 2y agoPOSIX doesn't forbid new flags or options. It's up to the author to read the spec and test his portability, or else willingly rely on certain distros. Some GNU tools have had strict modes as a courtesy (they used to jokingly call it POSIX_ME_HARDER).
- prmoustache 2y agoAnd those scripts should check they are indeed calling the gnu coreutils version before they proceed.
- tankenmate 2y agoin the real world this would not work; it's putting the cart in front of the horse.
- wodenokoto 2y agoWould they work on BSD/MacOS? It’s not just gnu vs rust out there.