From 0f080f741cb1a1402e87e6516af92601bff0fccd Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 25 Jul 2003 10:53:44 +0000 Subject: 18908: use print/read -u in completion system and tweak builtin doc --- Functions/TCP/tcp_fd_handler | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Functions/TCP/tcp_fd_handler') diff --git a/Functions/TCP/tcp_fd_handler b/Functions/TCP/tcp_fd_handler index 012fd4d87..33f553536 100644 --- a/Functions/TCP/tcp_fd_handler +++ b/Functions/TCP/tcp_fd_handler @@ -20,14 +20,14 @@ else zle -I # Handle fds not in the TCP set similarly. # This does the drain thing, to try and get as much data out as possible. - if ! read line <&$1; then + if ! read -u $1 line; then print "[Reading on $1 failed; removing from poll list]" >& 2 zle -F $1 return 1 fi line="fd$1:$line" local newline - while read -t newline <&$1; do + while read -u $1 -t newline; do line="${line} fd$1:$newline" done -- cgit 1.4.1