diff options
Diffstat (limited to 'regress/scp-ssh-wrapper.sh')
-rw-r--r-- | regress/scp-ssh-wrapper.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 () { | |||
17 | } | 17 | } |
18 | 18 | ||
19 | # Discard all but last argument. We use arg later. | 19 | # Discard all but last argument. We use arg later. |
20 | while test "$1" != ""; do | 20 | while test "x$1" != "x"; do |
21 | arg="$1" | 21 | arg="$1" |
22 | shift | 22 | shift |
23 | done | 23 | done |
@@ -52,6 +52,8 @@ badserver_4) | |||
52 | echo "X" | 52 | echo "X" |
53 | ;; | 53 | ;; |
54 | *) | 54 | *) |
55 | exec $arg | 55 | set -- $arg |
56 | shift | ||
57 | exec $SCP "$@" | ||
56 | ;; | 58 | ;; |
57 | esac | 59 | esac |