Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Heads-up: $PATH priority failing here, how to restore?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3642

PostPosted: Wed Aug 30, 2023 6:30 pm    Post subject: Heads-up: $PATH priority failing here, how to restore? Reply with quote

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 running
Code:
hash -r
which seems to reset a cached path for bash which itself overloads the PATH variable. :twisted:

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3380
Location: Rasi, Finland

PostPosted: Wed Aug 30, 2023 7:23 pm    Post subject: Re: Heads-up: $PATH priority failing here, how to restore? Reply with quote

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
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3642

PostPosted: Wed Aug 30, 2023 11:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
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