4 ms·
Agreed. Besides crappy formatting, he also makes his programs do confusing things. Why does the first example run in the infinite loop?
by k_kisiel 15y ago
Agreed. Besides crappy formatting, he also makes his programs do confusing things. Why does the first example run in the infinite loop?
- philwelch 15y agoBecause that's what the "yes" utility does: "By itself, the yes command outputs 'y' or whatever is specified as an argument, followed by a newline repeatedly until stopped by the user or otherwise killed; when piped into a command, it will continue until the pipe breaks (i.e., the program completes its execution)." http://en.wikipedia.org/wiki/Yes_(Unix) http://en.wikipedia.org/wiki/Yes_(Unix)
- maartenscholl 15y agoThe first example is a basic implementation of the 'yes' unix shell utility.
- Lozzer 15y agoFrom the first line of the man page for yes: yes - output a string repeatedly until killed