View previous topic :: View next topic |
Author |
Message |
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3642
|
Posted: Wed Aug 30, 2023 6:30 pm Post subject: Heads-up: $PATH priority failing here, how to restore? |
|
|
After writing /usr/local/bin/some_app to overload /usr/bin/some_app, it so happened PATH priority didn't seem honored here.
So /usr/bin/some_app remained executed when calling [EDIT] some_app.
Things got fixed after runningwhich seems to reset a cached path for bash which itself overloads the PATH variable.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Last edited by CaptainBlood on Wed Aug 30, 2023 11:29 pm; edited 1 time in total |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3380 Location: Rasi, Finland
|
Posted: Wed Aug 30, 2023 7:23 pm Post subject: Re: Heads-up: $PATH priority failing here, how to restore? |
|
|
CaptainBlood wrote: | So /usr/bin/some_app remained executed when calling ~/some_app. | By calling ~/some_app you're not calling any program in your $PATH, but instead some_app in your home directory. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
CaptainBlood Advocate
Joined: 24 Jan 2010 Posts: 3642
|
Posted: Wed Aug 30, 2023 11:34 pm Post subject: |
|
|
Zucca,
Nice,I should have reread better before publishing.
Thks 4 ur attention, interest & support. _________________ USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. " |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|