Skip to content

Commit

Permalink
Merge pull request #429 from ericenns/develop
Browse files Browse the repository at this point in the history
Fix perlbrew.fish to allow execution of perlbrew use
  • Loading branch information
gugod committed Dec 10, 2014
2 parents b16d419 + 87d6c39 commit 7e9a68d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perlbrew
Original file line number Diff line number Diff line change
Expand Up @@ -2638,7 +2638,7 @@ $fatpacked{"App/perlbrew.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'AP
end
function __perlbrew_set_env
set -l code (eval $perlbrew_command env $argv | perl -pe 's/export\s+(\S+)="(\S*)"/set -x $1 $2;/g; y/:/ /')
set -l code (eval $perlbrew_command env $argv | perl -pe 's/^(export|setenv)/set -xg/; s/^unset[env]*/set -eug/; s/$/;/; y/:/ /')
if test -z "$code"
return 0;
Expand Down Expand Up @@ -2716,7 +2716,7 @@ $fatpacked{"App/perlbrew.pm"} = '#line '.(1+__LINE__).' "'.__FILE__."\"\n".<<'AP
end
function __source_init
perl -pe's/^export/set -x/; s/=/ /; s/$/;/;' "$PERLBREW_HOME/init" | . -
perl -pe's/^\(export|setenv\)/set -xg/; s/=/ /; s/$/;/;' "$PERLBREW_HOME/init" | . -
end
if test -z "$PERLBREW_ROOT"
Expand Down

0 comments on commit 7e9a68d

Please sign in to comment.