3 ms·
Gnu yes is actually pretty bloated. It's 130 lines of code for something so trivial [1]! ;) [1] https://github.com/coreutils/coreutils/blob/master/src/yes.c ht
by msm_ 3y ago
Gnu yes is actually pretty bloated. It's 130 lines of code for something so trivial [1]! ;)
[1] https://github.com/coreutils/coreutils/blob/master/src/yes.c https://github.com/coreutils/coreutils/blob/master/src/yes.c
- pixelbeat 3y agoyes(1) is the standard unix way of generating repeated data. It's good to do this as quickly as possible. I really don't understand why so many get annoyed with this code. 130 lines isn't that complicated in the scheme of things.