mirror of
https://github.com/curl/curl.git
synced 2026-08-05 12:06:15 +03:00
perl: switch from backticks to qx()
To make it easier to find external command invocation in the source. Also drop backticks from a comment. To find external command invocations in Perl code use: ```sh git grep -E "((exec|qx|open2|open3|system)\(|open\(.+-\|)" $(<perlfiles>) ``` Refs: https://perldoc.perl.org/functions/qx https://perldoc.perl.org/perlop#Simpler-Quote-Like-Operators Closes #21994
This commit is contained in:
parent
c61f007a73
commit
9972f700a8
17 changed files with 48 additions and 48 deletions
|
|
@ -677,7 +677,7 @@ sub sshd_supports_opt {
|
|||
($sshdid =~ /SunSSH/)) {
|
||||
# ssh daemon supports command line options -t -f and -o
|
||||
$err = grep /((Unsupported)|(Bad configuration)|(Deprecated)) option.*$option/,
|
||||
`\"$sshd\" -t -f $sshdconfig_abs -o \"$option=$value\" 2>&1`;
|
||||
qx(\"$sshd\" -t -f $sshdconfig_abs -o \"$option=$value\" 2>&1);
|
||||
return !$err;
|
||||
}
|
||||
if(($sshdid =~ /OpenSSH/) && ($sshdvernum >= 299)) {
|
||||
|
|
@ -688,7 +688,7 @@ sub sshd_supports_opt {
|
|||
return 0;
|
||||
}
|
||||
$err = grep /((Unsupported)|(Bad configuration)|(Deprecated)) option.*$option/,
|
||||
`\"$sshd\" -t -f $sshdconfig_abs 2>&1`;
|
||||
qx(\"$sshd\" -t -f $sshdconfig_abs 2>&1);
|
||||
unlink $sshdconfig;
|
||||
return !$err;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue