From: Clint Adams <clint@zsh.org>
To: zsh-workers@sunsite.dk
Subject: PATCH: tcp troubles
Date: Fri, 9 Dec 2005 14:02:26 -0500 [thread overview]
Message-ID: <20051209190226.GA6809@scowler.net> (raw)
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"
reply other threads:[~2005-12-09 19:02 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20051209190226.GA6809@scowler.net \
--to=clint@zsh.org \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).