-
-
Notifications
You must be signed in to change notification settings - Fork 10.1k
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
Fix incompatibility in brew shellenv
with older version of Fish shell
#18001
Conversation
brew shellenv
with older version of Fish shell
Two tests failed when running
|
Oops, this isn't ready to merge. While running
|
a110254
to
399beb1
Compare
6d50198
to
f3e51ba
Compare
The Fish script for updating the Example output running locally:
I didn't see any CI tests for |
@smsearcy, your fix breaks #17633. Please put the initial colon back into
|
@gromgit, thank you for the feedback. I think I came up with a working solution, but have a question. If Edit: I noticed a comment on #17633 that speculated Fish shell wasn't affected, in which case I would make different changes. |
Fish didn't support `$(...)` substitution until v3.4.0, but the command didn't work with just parenthesis, so rewrite the test to prepend an empty string if MANPATH is non-empty (to trigger a leading colon). Only manipulate INFOPATH in Fish if Homebrew not in path already.
f3e51ba
to
1785563
Compare
@gromgit, I pushed some new changes for further testing. This prepends and empty string when
|
Yes, the correct
|
I'm not a regular fish user, but it passes all the obvious manual tests (including running Thanks much, @smsearcy! |
Thanks so much for your first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @smsearcy! |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally?Fish didn't support
$(...)
substitution until v3.4.0, but using(...)
didn't produce expected output so I rewrote the Fish command forMANPATH
(and updatedINFOPATH
so that it doesn't add duplicate entries).I didn't have any issues until a recent
brew update
, I think the issue was introduced here.This is the error that was happening on Fish 3.3.1 (Ubuntu 22.04 LTS):