gugod / App-perlbrew

Manage perl installations in your $HOME
https://perlbrew.pl
Other
719 stars 216 forks source link

Alternate $PERLBREW_ROOT not being set in $PERLBREW_ROOT/etc/cshrc #798

Open WRSomsky opened 6 months ago

WRSomsky commented 6 months ago

If you install perlbrew with an alternate $PERLBREW_ROOT say via:

setenv PERLBREW_ROOT /tmp/perlbrew
curl -L https://install.perlbrew.pl/ | bash

the file $PERLBREW_ROOT/etc/bashrc get a line at top to set the alternate root thusly:

export PERLBREW_ROOT=/tmp/perlbrew

The file $PERLBREW_ROOT/etc/cshrc should have a similar line (see below), but does not:

setenv PERLBREW_ROOT /tmp/perlbrew

This causes perlbrew w/ an alternate $PERLBREW_ROOT to fail when used with csh/tcsh unless $PERLBREW_ROOT is set by the user before invoking 'source <...>/etc/cshrc'. The above mentioned line should be added to $PERLBREW_ROOT/etc/cshrcin parallel to what is done w/ the bashrc file.