Skip to content

Commit

Permalink
exec: do not exclude aliases whet they are specified in --with
Browse files Browse the repository at this point in the history
The reason why we exclude aliases in `exec` is to avoid duplicate
run. However, if users explicitly specify aliasses in `--with`,
skipping those would be counter-intuitive.

PR: #725
  • Loading branch information
gugod committed Nov 20, 2021
1 parent 39cbd43 commit 6e5beb1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/App/perlbrew.pm
Original file line number Diff line number Diff line change
Expand Up @@ -2304,7 +2304,9 @@ sub run_command_exec {
@exec_with = map { $installed{$_} } @with;
} else {
@exec_with = map { ($_, @{$_->{libs}}) } $self->installed_perls;
@exec_with = grep {
not -l $self->root->perls( $_->{name} ); # Skip Aliases
} map { ($_, @{$_->{libs}}) } $self->installed_perls;
}
if ($opts{min}) {
Expand All @@ -2328,7 +2330,6 @@ sub run_command_exec {
my $overall_success = 1;
for my $i ( @exec_with ) {
next if -l $self->root->perls ($i->{name}); # Skip Aliases
my %env = $self->perlbrew_env($i->{name});
next if !$env{PERLBREW_PERL};
Expand Down

0 comments on commit 6e5beb1

Please sign in to comment.