Re: read -t loses data

2005-07-30 Thread Bob Proulx
[EMAIL PROTECTED] wrote: > If "read -t" times out without fulfilling a request, any pending data is > lost. > Via strace it's apparent that the problem is that when the user requests a > line of > data, bash read is actually calling read() with a buffer size of one. So bash > is > holding t

read -t loses data

2005-07-30 Thread bcboy
Configuration Information [Automatically generated, do not change]: Machine: i386 OS: linux-gnu Compiler: gcc Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i386-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='ba