Comment on Yes command – output a string repeatedly until killedComments−Someone3yFor comparison, the OpenBSD version: https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.cThat’s a lot simpler, but also slower (see https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes..., discussed in https://news.ycombinator.com/item?id=14542938)
Comments
For comparison, the OpenBSD version: https://github.com/openbsd/src/blob/master/usr.bin/yes/yes.c
That’s a lot simpler, but also slower (see https://www.reddit.com/r/unix/comments/6gxduc/how_is_gnu_yes..., discussed in https://news.ycombinator.com/item?id=14542938)