ZSHTCPSYS(1) General Commands Manual ZSHTCPSYS(1) (NAME) zshtcpsys - TCP zsh (DESCRIPTION) zsh/net/tcp / TCP/IP zshmodules(1) . . . zsh/net/tcp zsh/zselect (timeout) . zftp zshzftpsys(1) . / tcp_open tcp_expect . (session) . . (logging) (filtering) . `autoload -U tcp_open' tcp_open . tcp_open . TCP (TCP USER FUNCTIONS) / (Basic I/O) tcp_open [ -qz ] host port [ sess ] tcp_open [ -qz ] [ -s sess | -l sess[,...] ] ... tcp_open [ -qz ] [ -a fd | -f fd ] [ sess ] . TCP host port . sess TCP . sess ( ). <<>> (underscore) (whitespace) . . -s -l . tcp_open . .ztcp_sessions zsh $ZDOTDIR . ( ). TCP (passive) (fake) . -a . `ztcp -l port' $REPLY . `ztcp -c fd' . `tcp_open -a fd' TCP port . . -f TCP . TCP . FIFO () FIFO . -q tcp_open . (zle) tcp_open (handler) zle . CPU . -z tcp_open . zle . vared . zle `[[ -o zle]]' . tcp_open . $TCP_SESS . tcp_on_open . . tcp_close [ -qn ] [ -a | -l sess[,...] | sess ... ] -a . -l -s tcp_open . $TCP_SESS (unset) . tcp_open -f 0 9 . -n . -n ztcp . -q . tcp_read [ -bdq ] [ -t TO ] [ -T TO ] [ -a | -u fd[,...] | -l sess[,...] | -s sess ... ] -u -l -s -a . -u -l -s . -u ( ) tcp_open . . -b ( ). $TCP_LINE $TCP_SILENT . $TCP_PROMPT . . tcp_read 2 . -b . . -d . tcp_read $TCP_LINE $tcp_lines . tcp_read . -t -T . -t . -T -d -t -T . -q . 2 . ..PP tcp_read tcp_log . tcp_send [ -cnq ] [ -s sess | -l sess[,...] ] data ... tcp_send [ -cnq ] -a data ... . `print -r' SIGPIPE . -c tcp_send cat . () data tcp_send . -n (newline) tcp_send . tcp_read . tcp_send print -r . $TCP_OUTPUT $TCP_OUTPUT () $TCP_PROMPT. (Session Management) tcp_alias [ -q ] alias=sess ... tcp_alias [ -q ] [ alias ... ] tcp_alias -d [ -q ] alias ... . alias sess . . . . . -q . tcp_log [ -asc ] [ -n | -N ] [ logfile ] logfile tcp_read . -a () () . . -s . tcp_read logfile.sess . ( $TCP_PROMPT). -a . . -c . -n -N tcp_read `tcp_log -cn' tcp_read . $TCP_LOG $TCP_LOG_SESS $TCP_SILENT . tcp_rename old new old new. . tcp_sess [ sess [ command [ arg ... ] ] ] . . $tcp_by_name $tcp_by_fd $TCP_SESS . sess sess . $TCP_SESS . `command arg ...' . command arg tcp_sess . tcp_sess . tcp_command send-option ... send-argument ... tcp_send . tcp_send . $TCP_TIMEOUT ( . ) . . . . tcp_expect [ -q ] [ -p var | -P var ] [ -t TO | -T TO ] [ -a | -s sess | -l sess[,...] ] pattern ... pattern . $TCP_LINE tcp_expect $tcp_expect_lines . tcp_read : -a -s -l . pattern extended-globbing zsh . <<*>> . $TCP_PROMPT tcp_read . globbing <<#b>> <<#m>> $MATCH $match zsh . tcp_read tcp_expect . -t -T tcp_read . tcp_read . . -p var $var zsh . <<$>> var . <<_expect>> . - . -P var -p (:) : var . timeout . . -q tcp_read . tcp_read . $tcp_lines tcp_expect $tcp_expect_lines . tcp_proxy TCP / . . . TCP . TCP . zsh . . tcp_proxy . . tcp_spam [ -ertv ] [ -a | -s sess | -l sess[,...] ] cmd [ arg ... ] <> . -t () . -a -s -l . : $tcp_spam_list . $tcp_no_spam_list . <<-a>> $tcp_spam_list . -r . -v $TCP_PROMPT . TCP_SESS tcp_on_spam . ( .) -e <> eval . tcp_talk TCP_SESS . (escape string) $TCP_TALK_ESCAPE <<:>> . . . . . ( <<%>>) <> (alias) . tcp_wait . TCP tcp_read -a . zle . tcp_point port tcp_shoot host port . cat . tcp_point port tcp_shoot port host . port 1024 . woodcock springes springes: tcp_point 8091 >output_file woodcock: tcp_shoot springes 8091 TCP tcp_open autoload . TCP (TCP USER-DEFINED FUNCTIONS) . zsh/parameter (completion) . (hooks) . . tcp_on_alias alias fd : . tcp_on_awol sess fd tcp_fd_handler . tcp_on_awol . 100 tcp_fd_handler . tcp_on_awol . `zle -I' TCP_INVALIDATE_ZLE . ( `AWOL' `absent without leave' [ ] . .) tcp_on_close sess fd . . tcp_on_open sess fd . tcp_open . tcp_on_rename oldsess fd newsess . tcp_on_spam sess command ... (spam) tcp_spam . . tcp_spam -t tcp_send . $TCP_SESS . $TCP_SESS . tcp_spam tcp_on_spam . $REPLY `done' -v tcp_spam . tcp_on_unalias alias fd . TCP ( ) . tcp_fd_handler tcp_open . `zle -F' zshzle(1) . TCP_HANDLER_ACTIVE 1 . ( tcp_on_read) (idle) . tcp_output [ -q ] -P prompt -F fd -S sess tcp_read ( $TCP_OUTPUT ) tcp_send . (prompt) -P . : %c 1 0 . `%(c.-.+)' `+' `-' . %f . %s . %% `%' . -q . -S -F . TCP (TCP USER PARAMETERS) . . . . (local) . `local TCP_SILENT=1' . `local TCP_SESS=sess' `local TCP_PROMPT=' . tcp_expect_lines . tcp_expect ($TCP_LINE). tcp_filter . . (extended globbing) tcp_output . tcp_expect . . TCP_HANDLER_ACTIVE . tcp_fd_handler 1 . (unset) . TCP_LINE tcp_read tcp_expect. TCP_LINE_FD $TCP_LINE . ${tcp_by_fd[$TCP_LINE_FD]} . tcp_lines . tcp_read ($TCP_LINE). TCP_LOG tcp_log . . $TCP_PROMPT . . TCP_LOG_SESS tcp_log . ${TCP_LOG_SESS}.sess . . . tcp_no_spam_list . . tcp_spam . TCP_OUTPUT . tcp_send . $TCP_LOG $TCP_LOG_SESS . TCP_PROMPT . TCP_PROMPT . tcp_read $TCP_LOG ( ) . `%s' `%f' `%%' `%' . `%c' 1 0 `%(c.-.+)' `+' `-' . %P % . TCP_READ_DEBUG . tcp_read . TCP_SECONDS_START tcp_open . tcp_read tcp_expect SECONDS . SECONDS TCP_SECONDS_START $SECONDS . TCP_SECONDS_START . $SECONDS $TCP_SECONDS_START . SECONDS `typeset -F SECONDS' TCP TCP_SECONDS_START . TCP_SESS . tcp_open . TCP_SILENT tcp_log . tcp_read . tcp_spam_list . . tcp_spam . TCP_TALK_ESCAPE . tcp_talk . TCP_TIMEOUT . tcp_command ..PP TCP (TCP USER-DEFINED PARAMETERS) . tcp_on_read . ( EXTENDED_GLOB). tcp_read TCP ( tcp_expect) . : . . tcp_on_read `return 1' ( tcp_filter ). TCP_LINE tcp_lines tcp_on_read . TCP (TCP UTILITY PARAMETERS) . tcp_aliases . tcp_open . tcp_by_fd . . tcp_by_name . . TCP (TCP EXAMPLES) . 7337 ( dc ): tcp_proxy 7337 dc `dc' : tcp_open localhost 7337 dc ( dc ): tcp_command 2 4 + p : tcp_close tcp_proxy (kill) . . xterm . print -n "\033]2;TCP:" ${(k)tcp_by_name:/$TCP_SESS/$TCP_SESS\*} "\a" tcp_read read . (newline) . . zsh 5.9.2 July 12, 2026 ZSHTCPSYS(1)