Skip to content

Commit

Permalink
A suggested way to prevent unalias from failing on UBUNTU
Browse files Browse the repository at this point in the history
  • Loading branch information
johncm committed Jun 17, 2011
1 parent d13d8e6 commit f8a9194
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion perlbrew 100755 → 100644
Expand Up @@ -40,7 +40,7 @@ __perlbrew_reinit () {
__perlbrew_set_path () {
[[ -z "$PERLBREW_ROOT" ]] && return 1
unalias perl 2>/dev/null
[[ -n $(alias perl 2>/dev/null) ]] && unalias perl
export PATH_WITHOUT_PERLBREW=$(perl -e 'print join ":", grep { index($_, $ENV{PERLBREW_ROOT}) } split/:/,$ENV{PATH};')
export PATH=$PERLBREW_PATH:$PATH_WITHOUT_PERLBREW
}
Expand Down

0 comments on commit f8a9194

Please sign in to comment.