Patch for sending -l to kx. From <map@stacken.kth.se>
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1211 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -5,7 +5,7 @@ usage="Usage: $0 [-l username] [-t args_to_telnet] [-x args_to_xterm] host"
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
case $1 in
|
case $1 in
|
||||||
-l) telnet_args="${telnet_args} -l $2 "; title="${2}@"; shift 2;;
|
-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;;
|
-t) telnet_args="${telnet_args} $2 "; shift 2;;
|
||||||
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
||||||
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
||||||
@@ -23,7 +23,7 @@ bindir=%bindir%
|
|||||||
pdc_trams=`dirname $0`
|
pdc_trams=`dirname $0`
|
||||||
PATH=$pdc_trams:$bindir:$PATH
|
PATH=$pdc_trams:$bindir:$PATH
|
||||||
export PATH
|
export PATH
|
||||||
set -- `kx $host`
|
set -- `kx $kx_args $host`
|
||||||
if test $# -ne 3; then
|
if test $# -ne 3; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@@ -5,7 +5,7 @@ usage="Usage: $0 [-l username] [-r rsh_args] [-x xterm_args] host"
|
|||||||
while true
|
while true
|
||||||
do
|
do
|
||||||
case $1 in
|
case $1 in
|
||||||
-l) rsh_args="${rsh_args} -l $2 "; title="${2}@"; shift 2;;
|
-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;;
|
-r) rsh_args="${rsh_args} $2 "; shift 2;;
|
||||||
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
-x) xterm_args="${xterm_args} $2 "; shift 2;;
|
||||||
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
-*) echo "$0: Bad option $1"; echo $usage; exit 1;;
|
||||||
@@ -23,7 +23,7 @@ bindir=%bindir%
|
|||||||
pdc_trams=`dirname $0`
|
pdc_trams=`dirname $0`
|
||||||
PATH=$pdc_trams:$bindir:$PATH
|
PATH=$pdc_trams:$bindir:$PATH
|
||||||
export PATH
|
export PATH
|
||||||
set -- `kx $host`
|
set -- `kx $kx_args $host`
|
||||||
if test $# -ne 3; then
|
if test $# -ne 3; then
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user