summaryrefslogtreecommitdiff
path: root/regress/scp-ssh-wrapper.sh
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-01-24 14:27:04 +1100
committerDamien Miller <djm@mindrot.org>2014-01-24 14:27:04 +1100
commitb0e0f760b861676a3fe5c40133b270713d5321a9 (patch)
treecb273a154e90aebe063a69cca9ab5fc8054db084 /regress/scp-ssh-wrapper.sh
parent42a092530159637da9cb7f9e1b5f4679e34a85e6 (diff)
- (djm) [Makefile.in regress/scp-ssh-wrapper.sh regress/scp.sh] Make
the scp regress test actually test the built scp rather than the one in $PATH. ok dtucker@
Diffstat (limited to 'regress/scp-ssh-wrapper.sh')
-rw-r--r--regress/scp-ssh-wrapper.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/regress/scp-ssh-wrapper.sh b/regress/scp-ssh-wrapper.sh
index d1005a99..c63bc2bc 100644
--- a/regress/scp-ssh-wrapper.sh
+++ b/regress/scp-ssh-wrapper.sh
@@ -17,7 +17,7 @@ printname () {
}
# Discard all but last argument. We use arg later.
-while test "$1" != ""; do
+while test "x$1" != "x"; do
arg="$1"
shift
done
@@ -52,6 +52,8 @@ badserver_4)
echo "X"
;;
*)
- exec $arg
+ set -- $arg
+ shift
+ exec $SCP "$@"
;;
esac