mirror of
https://github.com/zsh-users/zsh
synced 2024-10-01 13:44:44 +00: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>
|
2015-10-02 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||||
|
|
||||||
* 36732: Completion/Unix/Command/_zsh: support -s and -b,
|
* 36732: Completion/Unix/Command/_zsh: support -s and -b,
|
||||||
|
|
|
@ -152,7 +152,7 @@ fi
|
||||||
|
|
||||||
if (( $# )); then
|
if (( $# )); then
|
||||||
print "Usage: $0 [-z] [-a fd | -f fd | host port [ session ] ]
|
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
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -116,7 +116,7 @@ while getopts "abdl:qs:t:T:u:" opt; do
|
||||||
read_fds[$((read_fd))]=1
|
read_fds[$((read_fd))]=1
|
||||||
done
|
done
|
||||||
;;
|
;;
|
||||||
(*) [[ $opt != \? ]] && print Unhandled option, complain: $opt >&2
|
(*) [[ $opt != \? ]] && print "Unhandled option, complain: $opt" >&2
|
||||||
return 1
|
return 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -29,7 +29,7 @@ while getopts "acl:nqs:" opt; do
|
||||||
fi
|
fi
|
||||||
sessions+=($OPTARG)
|
sessions+=($OPTARG)
|
||||||
;;
|
;;
|
||||||
(*) [[ $opt != '?' ]] && print Unhandled option, complain: $opt >&2
|
(*) [[ $opt != '?' ]] && print "Unhandled option, complain: $opt" >&2
|
||||||
return 1
|
return 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -4,8 +4,8 @@ setopt extendedglob
|
||||||
local REPLY tfd
|
local REPLY tfd
|
||||||
|
|
||||||
if [[ $# -ne 2 ]]; then
|
if [[ $# -ne 2 ]]; then
|
||||||
print "Usage: tcp_dump host port
|
print "Usage: $0 host port
|
||||||
Connect to the given host and port; send standard input.">&2
|
Connect to the given host and port; send standard input." >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue