mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-05-08 16:46:22 +02:00
36754: Functions/TCP: Tweak some usage output in the tcp_* functions
This commit is contained in:
parent
0626be9e3c
commit
64061e504f
|
@ -1,3 +1,9 @@
|
|||
2015-10-03 Mikael Magnusson <mikachu@gmail.com>
|
||||
|
||||
* 36754: Functions/TCP/tcp_open, Functions/TCP/tcp_read,
|
||||
Functions/TCP/tcp_send, Functions/TCP/tcp_shoot: Tweak some
|
||||
usage output in the tcp_* functions
|
||||
|
||||
2015-10-02 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* 36732: Completion/Unix/Command/_zsh: support -s and -b,
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue