From 7aa55663c30ec86097e834c5eeeaf3e3ec676d81 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Tue, 19 May 2026 17:41:07 +0200 Subject: [PATCH] backtick to qx --- .github/scripts/randcurl.pl | 2 +- scripts/checksrc.pl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/scripts/randcurl.pl b/.github/scripts/randcurl.pl index 9478813c8b..2c24a6b500 100755 --- a/.github/scripts/randcurl.pl +++ b/.github/scripts/randcurl.pl @@ -61,7 +61,7 @@ sub storedata { } sub getoptions { - my @all = `$curl --help all`; + my @all = qx($curl --help all); for my $o (@all) { chomp $o; if($o =~ /^ -(.), --([^ ]*) (.*)/) { diff --git a/scripts/checksrc.pl b/scripts/checksrc.pl index 2806b70405..b09ded9bfe 100755 --- a/scripts/checksrc.pl +++ b/scripts/checksrc.pl @@ -1226,12 +1226,12 @@ sub scanfile { @copyright = sort {$$b{year} cmp $$a{year}} @copyright; # if the file is modified, assume commit year this year - if(`git status -s -- "$file"` =~ /^ [MARCU]/) { + if(qx(git status -s -- "$file") =~ /^ [MARCU]/) { $commityear = (localtime(time))[5] + 1900; } else { # min-parents=1 to ignore wrong initial commit in truncated repos - my $grl = `git rev-list --max-count=1 --min-parents=1 --timestamp HEAD -- "$file"`; + my $grl = qx(git rev-list --max-count=1 --min-parents=1 --timestamp HEAD -- "$file"); if($grl) { chomp $grl; $commityear = (localtime((split(/ /, $grl))[0]))[5] + 1900;