diff options
author | Jonas Smedegaard <dr@jones.dk> | 2002-03-10 08:24:55 +0000 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2002-03-10 08:24:55 +0000 |
commit | 4fb53e4645bb1d6103b90f4c91b7826867b30d9c (patch) | |
tree | 36a7c481f121c35841e9ab09ca0a3d05228c8837 /xmc | |
parent | 2efc6bc6e6c3ddc1a83399e8d71913c73bded873 (diff) |
Optimize xsh terminal handling and local/remote options, and use the script - correctly - with xmc and xpine.
Diffstat (limited to 'xmc')
-rwxr-xr-x | xmc | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 $@ |