Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: tcp troubles
- X-seq: zsh-workers 22065
- From: Clint Adams <clint@xxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: PATCH: tcp troubles
- Date: Fri, 9 Dec 2005 14:02:26 -0500
- Mail-followup-to: zsh-workers@xxxxxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
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"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author