From b0e0f760b861676a3fe5c40133b270713d5321a9 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 24 Jan 2014 14:27:04 +1100 Subject: - (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@ --- regress/scp-ssh-wrapper.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'regress/scp-ssh-wrapper.sh') diff --git a/regress/scp-ssh-wrapper.sh b/regress/scp-ssh-wrapper.sh index d1005a995..c63bc2bc1 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 -- cgit v1.2.3