![]() |
Re: where to add new dirs to PATH?
Quote:
|
Re: where to add new dirs to PATH?
Just because I'm on of those attention to detail idiots...
You'll notice in qwerty's he put the added path before the $PATH: Code:
/sbin:$PATH Code:
$PATH:/user/home/bin Like I said... 99.99% of the time it'll never matter.. but there can be uses for understanding this. |
Re: where to add new dirs to PATH?
You are right that the order matters. My choice of after was deliberate. I can always change the name of my script (e.g. myvi). I will know immediately if I have picked a name used by the shell. But if I put my bin first, I might pick a common name and much later find that the standard procedure was not available -- and having forgotten my script, be puzzled. De gustibus ....
|
All times are GMT. The time now is 15:28. |
vBulletin® Version 3.8.8