From 901e6c7387bd0145ce26356eda1573d20293a57a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 8 Aug 2006 11:27:39 +0000 Subject: 22592: add tcp_send -c option for cat --- Doc/Zsh/tcpsys.yo | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Doc/Zsh') diff --git a/Doc/Zsh/tcpsys.yo b/Doc/Zsh/tcpsys.yo index f8f65b634..f1586b602 100644 --- a/Doc/Zsh/tcpsys.yo +++ b/Doc/Zsh/tcpsys.yo @@ -185,13 +185,18 @@ non-zero return status indicates some error condition. See tt(tcp_log) for how to control where data is sent by tt(tcp_read). ) findex(tcp_send) -xitem(tt(tcp_send [-nq] [ -s) var(sess) tt(| -l) var(sess)tt(,... ]) var(data) tt(...)) -item(tt(tcp_send [-nq] -a) var(data) tt(...))( +xitem(tt(tcp_send [-cnq] [ -s) var(sess) tt(| -l) var(sess)tt(,... ]) var(data) tt(...)) +item(tt(tcp_send [-cnq] -a) var(data) tt(...))( Send the supplied data strings to all the specified sessions in turn. The underlying operation differs little from a `tt(print -r)' to the session's file descriptor, although it attempts to prevent the shell from dying owing to a tt(SIGPIPE) caused by an attempt to write to a defunct session. +The option tt(-c) causes tt(tcp_send) to behave like tt(cat). It reads +lines from standard input until end of input and sends them in turn to the +specified session+LPAR()s+RPAR() exactly as if they were given as var(data) +arguments to individual tt(tcp_send) commands. + The option tt(-n) prevents tt(tcp_send) from putting a newline at the end of the data strings. -- cgit 1.4.1