Re: [dev] [sbase][bug] cat -u is not unbuffered

2016-03-01 Thread quinq
> > So I was studying sbase and found a bug in cat > Thanks for the report, this has been fixed on HEAD. Thanks Ryan!

Re: [dev] [sbase][bug] cat -u is not unbuffered

2016-03-01 Thread Dimitris Papastamos
On Tue, Mar 01, 2016 at 12:23:52AM -0600, Ryan Wilson wrote: > So I was studying sbase and found a bug in cat. POSIX says that cat -u should > "Write bytes from the input file to the standard output without delay as each > is read." But if you try feeding cat input slowly you can see this is not

[dev] [sbase][bug] cat -u is not unbuffered

2016-02-29 Thread Ryan Wilson
So I was studying sbase and found a bug in cat. POSIX says that cat -u should "Write bytes from the input file to the standard output without delay as each is read." But if you try feeding cat input slowly you can see this is not the case: # Feed one byte per second to cat: $ yes | pv -