Re: read() builtin doesnt read integer value /proc files (but bashs does)

2010-12-15 Thread Jonathan Nieder
Hi Cristian, Cristian Ionescu-Idbohrn wrote: On Sun, 28 Nov 2010, Herbert Xu wrote: On Sat, Sep 04, 2010 at 07:35:04PM +, Jilles Tjoelker wrote: This discarding is still bad as it throws away valid data if the open file description is shared. This happens if stdin is redirected inside a

Re: read() builtin doesnt read integer value /proc files (but bashs does)

2010-12-15 Thread Cristian Ionescu-Idbohrn
Jonathan, On Wed, 15 Dec 2010, Jonathan Nieder wrote: Cristian Ionescu-Idbohrn wrote: On Sun, 28 Nov 2010, Herbert Xu wrote: I'm with Jilles on this. I also don't particularly feel like bloating dash just because of the borked /proc interface when there is a perfectly adequate