Support `-k'
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1532 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
usage="Usage: $0 [-l username] [-t args_to_telnet] [-x args_to_xterm] host [port]"
|
||||
usage="Usage: $0 [-l username] [-k] [-t args_to_telnet] [-x args_to_xterm] host [port]"
|
||||
while true
|
||||
do
|
||||
case $1 in
|
||||
-l) telnet_args="${telnet_args} -l $2 "; kx_args="${kx_args} -l $2"; title="${2}@"; shift 2;;
|
||||
-t) telnet_args="${telnet_args} $2 "; shift 2;;
|
||||
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
||||
-k) kx_args="${kx_args} -k"; shift;;
|
||||
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
||||
*) break;;
|
||||
esac
|
||||
|
@@ -1,13 +1,14 @@
|
||||
#!/bin/sh
|
||||
# $Id$
|
||||
#
|
||||
usage="Usage: $0 [-l username] [-r rsh_args] [-x xterm_args] host"
|
||||
usage="Usage: $0 [-l username] [-k] [-r rsh_args] [-x xterm_args] host"
|
||||
while true
|
||||
do
|
||||
case $1 in
|
||||
-l) rsh_args="${rsh_args} -l $2 "; kx_args="${kx_args} -l $2"; title="${2}@"; shift 2;;
|
||||
-r) rsh_args="${rsh_args} $2 "; shift 2;;
|
||||
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
||||
-k) kx_args="${kx_args} -k"; shift;;
|
||||
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
||||
*) break;;
|
||||
esac
|
||||
|
Reference in New Issue
Block a user