* PATCH: tcp troubles
@ 2005-12-09 19:02 Clint Adams
0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2005-12-09 19:02 UTC (permalink / raw)
To: zsh-workers
With the attached script, I get
Session yahoo (host www.yahoo.com, port 80 fd 3) opened OK.
Setting default TCP session yahoo
tcp_output:6: bad option: --
This is due to
+tcp_read:216> tcp_output -P '' -S yahoo -F 3 -q '--></script><script language=javascript>'
This patch solves that problem, though tcp_read fails. A
nearly-identical script works, for reasons that elude me completely.
Index: Functions/TCP/tcp_read
===================================================================
RCS file: /cvsroot/zsh/zsh/Functions/TCP/tcp_read,v
retrieving revision 1.6
diff -u -r1.6 tcp_read
--- Functions/TCP/tcp_read 8 Aug 2005 16:49:10 -0000 1.6
+++ Functions/TCP/tcp_read 9 Dec 2005 19:00:43 -0000
@@ -216,7 +216,7 @@
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"
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-09 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-09 19:02 PATCH: tcp troubles Clint Adams
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).