4 ms·
I’m a little surprised there’s no references to the gnu coreutil yes source. I love speculation as much as the next guy but a lot of it could be satisfied by re
by fnordpiglet 4y ago
I’m a little surprised there’s no references to the gnu coreutil yes source. I love speculation as much as the next guy but a lot of it could be satisfied by reading the source code. It’s fascinating that the BSD code is linked but not the primary subject!
Source for yes which does all the buffer malarkey:
https://github.com/coreutils/coreutils/blob/master/src/yes.c https://github.com/coreutils/coreutils/blob/master/src/yes.c
Source for the actual output:
https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_plain;f=lib/full-write.c;hb=refs/heads/master https://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob_pla...
- gjm11 4y agoMaybe the OP was edited in response to this, but right now it does link to exactly the same thing as you do. Search for "Let's see how yes does it".
- alpaca128 4y agoCan 4 year old posts still be edited?
- jwilk 4y agoNo idea, but the link was there back in 2020: https://web.archive.org/web/20200122231049/https://old.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes_so_fast/ https://web.archive.org/web/20200122231049/https://old.reddi...
- mcronce 4y agoThey recently-ish lifted the restriction on only replying/voting in threads 6 months and younger - I'm not sure if that also applies to editing, though, nor how far back it goes
- fnordpiglet 4y agoNo it wasn’t edited I just didn’t notice the link.