Y
Hacker News
new
|
ask
|
show
|
jobs
by
ben165
2539 days ago
Nice project. Just looked for the source code of "yes" (
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.
1 comments
yjftsjthsd-h
2539 days ago
Yeah, `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.h...
?
link