summaryrefslogtreecommitdiff
path: root/regress/scp-ssh-wrapper.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/scp-ssh-wrapper.sh')
-rw-r--r--regress/scp-ssh-wrapper.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/regress/scp-ssh-wrapper.sh b/regress/scp-ssh-wrapper.sh
index 8e431477..594337d1 100644
--- a/regress/scp-ssh-wrapper.sh
+++ b/regress/scp-ssh-wrapper.sh
@@ -16,8 +16,11 @@ printname () {
done
}
-# discard first 5 args
-shift; shift; shift; shift; shift
+# Discard all but last argument. We use arg later.
+while test "$1" != ""; do
+ arg="$1"
+ shift
+done
BAD="../../../../../../../../../../../../../${DIR}/dotpathdir"
@@ -49,6 +52,6 @@ badserver_4)
echo "X"
;;
*)
- exec $1
+ exec $arg
;;
esac