App-perlbrew icon indicating copy to clipboard operation
App-perlbrew copied to clipboard

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

Open WRSomsky opened this issue 11 months ago • 0 comments

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.

WRSomsky avatar Mar 23 '24 00:03 WRSomsky