6 ms·
Nice project. Just looked for the source code of "yes" (https://github.com/coreutils/coreutils/blob/master/src/yes.c https://github.com/coreutils/coreutils/blob
by ben165 7y ago
Nice project. Just looked for the source code of "yes" (https://github.com/coreutils/coreutils/blob/master/src/yes.c https://github.com/coreutils/coreutils/blob/master/src/yes.c), cause it seems to be the easiest code to understand.
I didn't get it. Damn. Looks still complicated.
- yjftsjthsd-h 7y agoYeah, `yes` ended up complex in order to get better performance; if you want something simpler, maybe try https://www.maizure.org/projects/decoded-gnu-coreutils/env.html https://www.maizure.org/projects/decoded-gnu-coreutils/env.h... ?