summaryrefslogtreecommitdiff
path: root/Configure
diff options
context:
space:
mode:
authorBrian Fraser <fraserbn@gmail.com>2013-11-15 03:28:08 -0300
committerBrian Fraser <fraserbn@gmail.com>2014-01-22 13:25:15 -0300
commit03deea9fedb299950b5262e0fa48a6d31cd3f290 (patch)
tree0daf4529713cbd2a7a13e5faa10d7882cd4dea56 /Configure
parent9f88ff7aa7617394415b4ce5793ea6f66905e4bd (diff)
downloadperl-03deea9fedb299950b5262e0fa48a6d31cd3f290.tar.gz
Configure, run-ssh: No need to use ./\$exe
Previous, if run-ssh was passed ./TEST, it would've ended up running ././TEST in the target system. Similarly, if you passed 'uname', it would've tried running ./uname, which would've failed spectacularly. This commit changes run-ssh so that it won't add the extra './'; this means that shell builtins can be run in the target system. While this is not generally portable, it's useful in specific situations, such as in the hints files.
Diffstat (limited to 'Configure')
-rwxr-xr-xConfigure2
1 files changed, 1 insertions, 1 deletions
diff --git a/Configure b/Configure
index ded8f30433..078537f3ef 100755
--- a/Configure
+++ b/Configure
@@ -2983,7 +2983,7 @@ esac
exe=\$1
shift
$to \$exe
-$targetrun -p $targetport -l $targetuser $targethost "cd \$cwd && \$env ./\$exe \$@"
+$targetrun -p $targetport -l $targetuser $targethost "cd \$cwd && \$env \$exe \$@"
EOF
;;
*) echo "Unknown targetrun '$targetrun'" >&4