ports/shells/perlsh/patches/patch-lib_Psh_Strategy_Executable_pm

15 lines
372 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Arrays can't be used as references since Perl 5.22.
Index: lib/Psh/Strategy/Executable.pm
--- lib/Psh/Strategy/Executable.pm.orig
+++ lib/Psh/Strategy/Executable.pm
@@ -24,7 +24,7 @@ sub runs_before {
}
sub applies {
- my $com= @{$_[2]}->[0];
+ my $com= ${$_[2]}[0];
my $executable= Psh::Util::which($com);
return $executable if defined $executable;
return '';