summary refs log tree commit diff
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2005-12-09 19:04:26 +0000
committerClint Adams <clint@users.sourceforge.net>2005-12-09 19:04:26 +0000
commitb9262b0cbbb6887907133eca671e22d83fd3d808 (patch)
treec1f277a376aa70fbdb27cf27a32c2847caed1fec
parent405fd076567c439e6adc10b715ca72e652776757 (diff)
downloadzsh-b9262b0cbbb6887907133eca671e22d83fd3d808.tar.gz
zsh-b9262b0cbbb6887907133eca671e22d83fd3d808.tar.xz
zsh-b9262b0cbbb6887907133eca671e22d83fd3d808.zip
22065: starts with "--".
-rw-r--r--ChangeLog5
-rw-r--r--Functions/TCP/tcp_read2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 6c8df2f35..b0ec383a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-09  Clint Adams  <clint@zsh.org>
+
+	* 22065: Functions/TCP/tcp_read: cope with TCP output that
+	starts with "--".
+
 2005-12-09  Peter Stephenson  <pws@csr.com>
 
 	* 22058: NEWS, Doc/Zsh/roadmap.yo: tweak docs for release.
diff --git a/Functions/TCP/tcp_read b/Functions/TCP/tcp_read
index aa30b723d..7d8acf865 100644
--- a/Functions/TCP/tcp_read
+++ b/Functions/TCP/tcp_read
@@ -216,7 +216,7 @@ while (( ${#read_fds} )); do
     fi
 
     tcp_output -P "${TCP_PROMPT=<-[%s] }" -S $sess -F $read_fd \
-        $noprint "$line"
+        $noprint -- "$line"
     # REPLY is now set to the line with an appropriate prompt.
     tcp_lines+=($REPLY)
     typeset -g TCP_LINE="$REPLY" TCP_LINE_FD="$read_fd"