chiark / gitweb /
hacks/ssh: Fix stupid behaviour when hostname is `t'.
[profile] / hacks / ssh
index d8a46a42c50ca9b2638c663e159f2dbbe1a221b3..64df9667de5dd36ca5ee3fb3613f366979e25a02 100755 (executable)
--- a/hacks/ssh
+++ b/hacks/ssh
@@ -146,7 +146,7 @@ while :; do
 
     ## A bare word.  Maybe it's the hostname, or the start of the command.
     *)
-      case ${host-t} in
+      case ${host-t}${host+nil} in
        t) host=$1 ;;
        *) break ;;
       esac