Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
msm_
· 2y ago · 0 comments
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
Comments
[–]
pixelbeat
2y ago
yes(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.