summaryrefslogtreecommitdiff
path: root/xmc
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2002-03-10 08:24:55 +0000
committerJonas Smedegaard <dr@jones.dk>2002-03-10 08:24:55 +0000
commit4fb53e4645bb1d6103b90f4c91b7826867b30d9c (patch)
tree36a7c481f121c35841e9ab09ca0a3d05228c8837 /xmc
parent2efc6bc6e6c3ddc1a83399e8d71913c73bded873 (diff)
Optimize xsh terminal handling and local/remote options, and use the script - correctly - with xmc and xpine.
Diffstat (limited to 'xmc')
-rwxr-xr-xxmc8
1 files changed, 4 insertions, 4 deletions
diff --git a/xmc b/xmc
index 12772f2..1fa1e54 100755
--- a/xmc
+++ b/xmc
@@ -1,9 +1,9 @@
#!/bin/bash
if [ $# -eq 0 ]; then
- host="localhost"
+ xsh localhost mc
+elif [ $# -eq 1 -a "$1" = "su" ]; then
+ xsh localhost mc su
else
- host="$1"
+ xsh $@ mc
fi
-shift
-xsh $host mc $@