summaryrefslogtreecommitdiff
path: root/xmc
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2016-10-21 23:10:47 +0200
committerJonas Smedegaard <dr@jones.dk>2016-10-22 02:03:15 +0200
commitca0ccc561347202d69ef1161930811a54ef48322 (patch)
tree45f4190f9bca403e93f510419a016a4ec6b0cc2f /xmc
parent66bfa9d1afe3381e8e09ed9470328841d0c38714 (diff)
Change host handling: Explicit localhost means force use ssh; no host implies non-ssh (and requires -- before command).
Diffstat (limited to 'xmc')
-rwxr-xr-xxmc11
1 files changed, 1 insertions, 10 deletions
diff --git a/xmc b/xmc
index 735ef64..40c20fe 100755
--- a/xmc
+++ b/xmc
@@ -1,12 +1,3 @@
#!/bin/bash
-# danish locale is broken - see http://bugs.debian.org/181027
-#export LC_ALL=C
-
-if [ $# -eq 0 ]; then
- xsh localhost mc
-elif [ $# -eq 1 -a "$1" = "su" ]; then
- xsh localhost mc su
-else
- xsh $@ mc
-fi
+exec xsh $@ -- mc