Tuesday, May 14, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 757  / 2 Years ago, fri, april 29, 2022, 10:49:04

I installed rbenv, a ruby version management program. I looked in the .bashrc file and noticed that the path variable was changed as below:



export PATH="$HOME/.rbenv/bin:$PATH"


I think the ":$PATH" part was included to include the old path contents. I would like to know what would happen if a program that modifies the path variable doesn't include the ":$PATH" part. Would I not be able to run some programs from the command line since the bin directories in which they reside are no longer included in the new path variable?


More From » environment-variables

 Answers
2

You are correct. Third party packages should therefore only extend the current path, not limit it.


[#24219] Sunday, May 1, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
assionortly

Total Points: 423
Total Questions: 121
Total Answers: 115

Location: Chad
Member since Wed, Sep 30, 2020
4 Years ago
;