Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds /bin to the end of the path unnecessarily #852

Closed
ghost opened this issue Jun 3, 2013 · 3 comments
Closed

Adds /bin to the end of the path unnecessarily #852

ghost opened this issue Jun 3, 2013 · 3 comments
Milestone

Comments

@ghost
Copy link

ghost commented Jun 3, 2013

Recently, Arch Linux made a change where /bin and /sbin are now symlinked to /usr/bin. As a result, only /usr/bin is added to the PATH. fish then sees this PATH, freaks out that it doesn't have /bin, and adds /bin to the end, which is kind of odd.

@zanchey
Copy link
Member

zanchey commented Jun 4, 2013

I'm not against making the change suggested in #854, but can you explain what the current behaviour breaks? As far as I can see, the current code appends /bin to the existing path, and any overrides from ccache or similar should be prepended.

(Lots of OSes have /bin as a symlink to /usr/bin.)

@ghost
Copy link
Author

ghost commented Jun 4, 2013

...I actually just assumed that they broke and didn't check. You are correct; they don't break. I still agree with the change, though.

@ridiculousfish
Copy link
Member

In 85ce80d, I made setup_path not try to mess with the PATH unless it's entirely empty. I believe that should resolve this. Thanks for reporting this!

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants