News for hackers. Stuff that matters.
Re:How is GNU `yes` so fast? by exxo_ on Tuesday June 13, 2017 @05:15AM (#14543671)
Re:How is GNU `yes` so fast? by h2hn on Tuesday June 13, 2017 @08:15AM (#14544198)
Re:How is GNU `yes` so fast? by alkonaut on Tuesday June 13, 2017 @09:49AM (#14544658)
And the motivation: it's used as test inputs. Not sure I agree with completely destroying the readability of a perfectly readable file - but ok.
Re:How is GNU `yes` so fast? by acqq on Tuesday June 13, 2017 @02:58PM (#14547542)
The motivation, as far as I see, was only that it "may be used."

But see the post of belorn where he argues that the error handling seems to be good.

Re:How is GNU `yes` so fast? by Paul-ish on Tuesday June 13, 2017 @01:45PM (#14546835)
Is the date on that accurate, did that happen in 2016? Kinda hurts the theory that they were trying to avoid Unix similarity.
Re:How is GNU `yes` so fast? by jwilk on Tuesday June 13, 2017 @06:13PM (#14549121)
It says: Mar 9, 2015
Re:How is GNU `yes` so fast? by simias on Tuesday June 13, 2017 @09:41AM (#14544619)
One point in favor of this simple version is that it's immediately obvious that it doesn't do the same thing as the OpenBSD version. In OpenBSD `yes a b c` will only print "a" while in GNU it prints "a b c". I did not catch that when I was reading the more complicated modern version.
Re:How is GNU `yes` so fast? by pulse7 on Tuesday June 13, 2017 @05:55AM (#14543775)
(joke) They copied the API of the main() function... :-)