Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Well that's kind of my point. `ls` and `find` are "supposed to be" POSIX `ls` and `find`.

Obviously on a GNU system one can't just drop the GNU extensions, but what Rust Coreutils is fighting is (IIUC) to a large extent the goal of becoming bug-compatible, or unspecified-compatible.

For unspecified-compatible, to support users who relied on it (Hyrum's law), the same case could be made that lots of people relied on /bin/sh being bash.

dash may not have been aiming to be drop-in replacement for bash, but when OS vendors change /bin/sh to dash, what's the difference?



> Well that's kind of my point. `ls` and `find` are "supposed to be" POSIX `ls` and `find`.

I don't know about that, I at least wouldn't 100% agree on that. Mostly since POSIX only defines short args it kinda makes just not want to use them, since I like to spell out the long arg in scripts for clarity. So by default I just assume I am using GNU coreutils (since BSD coreutils have slightly different names in some places IIRC). And since there isn't such a destinction between "POSIX coreutils" and "GNU coreutils" like there is with "POSIX shell" (sh) and "bash" I wouldn't call the situations equivalent.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: