Skip to content

Commit 71e66be

Browse files
committed
-t needs to be removed before it is re-quoted with printf
1 parent 54b2e98 commit 71e66be

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/scripts-ssh

+7
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,20 @@
33
lname=$1
44
shift
55

6+
extra=
7+
if [ "$1" = "-t" ]; then
8+
extra=-t
9+
shift
10+
fi
11+
612
exec ssh \
713
-o GSSAPIAuthentication=yes \
814
-o GSSAPIDelegateCredentials=no \
915
-o PreferredAuthentications=gssapi-with-mic \
1016
-o ForwardX11=no \
1117
-o GlobalKnownHostsFile=/afs/athena.mit.edu/contrib/scripts/etc/known_hosts \
1218
-o UserKnownHostsFile=/dev/null \
19+
$extra \
1320
scripts.mit.edu -l "$lname" "$(printf "''%q " "$@")"
1421

1522
# ssh gets quoting wrong, so we do it ourself with printf "%q ".

0 commit comments

Comments
 (0)