3 ms·
...? `yes` is not part of the C standard library.
by wool_gather 6y ago
...? `yes` is not part of the C standard library.
- bigbubba 6y agoI think they meant to draw attention to the implementation of `yes` to showcase crustiness the C stdlib imposes on even a trivial program. But of course GNU is kind of notorious in this regard. Compare their `yes` to OpenBSD's. It's night and day. https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
- identity0 6y agoIt's not that GNU is incompetent or overly bureaucratic or anything. It's that they really didn't want to infringe on Unix, and they presumed that Unix's yes would have been implemented in the most obvious, dead-simple way. And, as a plus, GNU yes can stream y's at like 10 GB/s, if you need that.