about summary refs log tree commit diff
path: root/Functions/TCP
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-04-03 10:24:40 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-04-03 10:24:40 +0000
commitf713bf4b090214856eb3b0d1596dfa30271b3a2d (patch)
tree5d4927d2d695bfb9c1a290aa5016d758c933387c /Functions/TCP
parent7d4014c30afdc2b22711803f8fd567304bb8f6a8 (diff)
downloadzsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.tar.gz
zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.tar.xz
zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.zip
18432: Minor miscellany of comments and rationalisations.
Diffstat (limited to 'Functions/TCP')
-rw-r--r--Functions/TCP/tcp_spam4
1 files changed, 4 insertions, 0 deletions
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