From: Mikael Magnusson <mikachu@gmail.com>
To: zsh-workers@zsh.org
Subject: PATCH: Tweak some usage output in the tcp_* functions
Date: Sat, 3 Oct 2015 00:04:54 +0200 [thread overview]
Message-ID: <1443823494-20164-1-git-send-email-mikachu@gmail.com> (raw)
---
Functions/TCP/tcp_open | 2 +-
Functions/TCP/tcp_read | 2 +-
Functions/TCP/tcp_send | 2 +-
Functions/TCP/tcp_shoot | 4 ++--
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/Functions/TCP/tcp_open b/Functions/TCP/tcp_open
index 0912177..a04403c 100644
--- a/Functions/TCP/tcp_open
+++ b/Functions/TCP/tcp_open
@@ -152,7 +152,7 @@ fi
if (( $# )); then
print "Usage: $0 [-z] [-a fd | -f fd | host port [ session ] ]
- $0 [-z] [ -s session | -l sesslist ] ..." >&2
+ $0 [-z] [ -s session | -l sesslist ] ..." >&2
return 1
fi
diff --git a/Functions/TCP/tcp_read b/Functions/TCP/tcp_read
index f880395..ba9185e 100644
--- a/Functions/TCP/tcp_read
+++ b/Functions/TCP/tcp_read
@@ -116,7 +116,7 @@ while getopts "abdl:qs:t:T:u:" opt; do
read_fds[$((read_fd))]=1
done
;;
- (*) [[ $opt != \? ]] && print Unhandled option, complain: $opt >&2
+ (*) [[ $opt != \? ]] && print "Unhandled option, complain: $opt" >&2
return 1
;;
esac
diff --git a/Functions/TCP/tcp_send b/Functions/TCP/tcp_send
index c976a2f..86dda64 100644
--- a/Functions/TCP/tcp_send
+++ b/Functions/TCP/tcp_send
@@ -29,7 +29,7 @@ while getopts "acl:nqs:" opt; do
fi
sessions+=($OPTARG)
;;
- (*) [[ $opt != '?' ]] && print Unhandled option, complain: $opt >&2
+ (*) [[ $opt != '?' ]] && print "Unhandled option, complain: $opt" >&2
return 1
;;
esac
diff --git a/Functions/TCP/tcp_shoot b/Functions/TCP/tcp_shoot
index 8ff9866..c485c14 100644
--- a/Functions/TCP/tcp_shoot
+++ b/Functions/TCP/tcp_shoot
@@ -4,8 +4,8 @@ setopt extendedglob
local REPLY tfd
if [[ $# -ne 2 ]]; then
- print "Usage: tcp_dump host port
-Connect to the given host and port; send standard input.">&2
+ print "Usage: $0 host port
+Connect to the given host and port; send standard input." >&2
return 1
fi
--
2.5.0
reply other threads:[~2015-10-02 22:05 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=1443823494-20164-1-git-send-email-mikachu@gmail.com \
--to=mikachu@gmail.com \
--cc=zsh-workers@zsh.org \
/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).