1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 17:20:25 +02:00

36754: Functions/TCP: Tweak some usage output in the tcp_* functions

This commit is contained in:
Mikael Magnusson 2015-10-03 00:04:09 +02:00
parent 0626be9e3c
commit 64061e504f
5 changed files with 11 additions and 5 deletions

View file

@ -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,

View file

@ -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

View file

@ -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

View file

@ -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