mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-23 04:30:24 +02:00
36754: Functions/TCP: Tweak some usage output in the tcp_* functions
This commit is contained in:
parent
0626be9e3c
commit
64061e504f
5 changed files with 11 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue