diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2005-08-08 16:48:52 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2005-08-08 16:48:52 +0000 |
commit | d307660deeb115dd2061654c2ddcd4407cadb04c (patch) | |
tree | 5ee4d623c09b60695a8567ea22f2756c7685cdf3 /Functions/TCP/tcp_read | |
parent | d7902f6badcc63cb76f3534cf542c4bd8889a18a (diff) | |
download | zsh-d307660deeb115dd2061654c2ddcd4407cadb04c.tar.gz zsh-d307660deeb115dd2061654c2ddcd4407cadb04c.tar.xz zsh-d307660deeb115dd2061654c2ddcd4407cadb04c.zip |
21575 plus unposted: Add WARN_CREATE_GLOBAL option
Diffstat (limited to 'Functions/TCP/tcp_read')
-rw-r--r-- | Functions/TCP/tcp_read | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Functions/TCP/tcp_read b/Functions/TCP/tcp_read index cf1b99441..aa30b723d 100644 --- a/Functions/TCP/tcp_read +++ b/Functions/TCP/tcp_read @@ -135,7 +135,9 @@ elif (( ! $#read_fds )); then read_fds[$tcp_by_name[$TCP_SESS]]=1 fi +typeset -ga tcp_lines tcp_lines=() + local helper_stat=2 skip tpat reply REPLY float newtimeout @@ -217,7 +219,7 @@ while (( ${#read_fds} )); do $noprint "$line" # REPLY is now set to the line with an appropriate prompt. tcp_lines+=($REPLY) - TCP_LINE=$REPLY TCP_LINE_FD=$read_fd + typeset -g TCP_LINE="$REPLY" TCP_LINE_FD="$read_fd" # Only handle one line from one device at a time unless draining. [[ -z $drain ]] && return $stat |