diff --git a/ussh b/ussh index de2b92c..74abe6f 100755 --- a/ussh +++ b/ussh @@ -386,7 +386,7 @@ function show_vars() { function do_ssh() { local -a sshopts local onehost r - if [ $# -eq 0 ]; then + if [ ${#hosts[*]} -eq 0 -a $# -eq 0 ]; then ${exec:+exec} "$SSH" "${SSHOPTS[@]}" return elif [ "${#hosts[*]}" -gt 1 ]; then