From f713bf4b090214856eb3b0d1596dfa30271b3a2d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 3 Apr 2003 10:24:40 +0000 Subject: 18432: Minor miscellany of comments and rationalisations. --- Functions/TCP/tcp_spam | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Functions/TCP') diff --git a/Functions/TCP/tcp_spam b/Functions/TCP/tcp_spam index b516ebaa2..bafe269b9 100644 --- a/Functions/TCP/tcp_spam +++ b/Functions/TCP/tcp_spam @@ -75,6 +75,10 @@ if (( ! ${#sessions} )); then print "No connections to spam." >&2 return 1 fi +if (( ! $# )); then + print "No commands given." >&2 + return 1 +fi if [[ -n $transmit ]]; then cmd=tcp_send -- cgit 1.4.1