You are not logged in.

#1 2023-04-21 13:12:38

almahdi
Member
Registered: 2021-02-16
Posts: 23

Sudden pesky thing is $HOME/perl5/bin in $PATH

Anyone ever had kind of this suddenly too :

$HOME/perl5/bin is always existing first of  $PATH

?
where's it from, which thing generates it ?

hunch is it seems after install CPAN or perl related package else

where is the code which always put it in the very first of $PATH and how would be its prevention ?

Offline

#2 2023-04-21 13:37:48

mpan
Member
Registered: 2012-08-01
Posts: 1,624
Website

Re: Sudden pesky thing is $HOME/perl5/bin in $PATH

Is this a question about what adds “~/perl5/bin” or why is it in front of other entries in `$PATH`?

What adds?
The two typical scenarios are: you added it yourself⁽¹⁾ or it comes from “/etc/profile.d”.

Why is it before other elements?
Probably to let the user’s private binaries override the global ones.
____
⁽¹⁾ This includes running some program, which added it behind your back.

Offline

#3 2023-04-21 13:53:48

almahdi
Member
Registered: 2021-02-16
Posts: 23

Re: Sudden pesky thing is $HOME/perl5/bin in $PATH

" it comes from “/etc/profile.d” "

checked it many times, nothing there generates such, quite confused, this perl related things gets hateful

Offline

#4 2023-04-21 14:17:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,491
Website

Re: Sudden pesky thing is $HOME/perl5/bin in $PATH

grep -rl perl5 /etc ~/.config/ 2>/dev/null
grep -l perl5 ~/.*

"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#5 2023-04-22 08:30:05

mpan
Member
Registered: 2012-08-01
Posts: 1,624
Website

Re: Sudden pesky thing is $HOME/perl5/bin in $PATH

What is the actual problem you are facing with “~/perl5/bin” in `$PATH`? This should not affect anything unrelated to Perl and should affect nothing at all unless you use `cpanm`.

Offline

Board footer

Powered by FluxBB