SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
14
shells/perlsh/patches/patch-lib_Psh_Strategy_Executable_pm
Normal file
14
shells/perlsh/patches/patch-lib_Psh_Strategy_Executable_pm
Normal file
|
@ -0,0 +1,14 @@
|
|||
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 '';
|
Loading…
Add table
Add a link
Reference in a new issue