diff options
| author | Peter Stephenson <pws@users.sourceforge.net> | 2003-04-03 10:24:40 +0000 |
|---|---|---|
| committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-04-03 10:24:40 +0000 |
| commit | f713bf4b090214856eb3b0d1596dfa30271b3a2d (patch) | |
| tree | 5d4927d2d695bfb9c1a290aa5016d758c933387c /Functions/TCP | |
| parent | unposted: tidy up after word match functions from 18394 (diff) | |
| download | zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.tar zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.tar.gz zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.tar.bz2 zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.tar.lz zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.tar.xz zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.tar.zst zsh-f713bf4b090214856eb3b0d1596dfa30271b3a2d.zip | |
18432: Minor miscellany of comments and rationalisations.
Diffstat (limited to 'Functions/TCP')
| -rw-r--r-- | Functions/TCP/tcp_spam | 4 |
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 |
