Revert "fix: use quotemeta to join command parts"

This reverts commit 08d440717e.
pull/592/head
jon4hz 4 months ago
parent 8f87388c7d
commit 84e6fbf7bd
No known key found for this signature in database
GPG Key ID: 4B0AFE9E7118898E

@ -1611,7 +1611,7 @@ else {
push @proxyCommand, '-o', "ConnectTimeout=$timeout" if $timeout;
# Quote arguments that contain spaces and build the command string
my $proxyCommandStr = join(' ', map { quotemeta } @proxyCommand);
my $proxyCommandStr = join(' ', map { /\s/ ? "'$_'" : $_ } @proxyCommand);
push @command, '-o', "ProxyCommand=$proxyCommandStr";
osh_debug("ProxyCommand: $proxyCommandStr");

Loading…
Cancel
Save