fix: stop putting ^/dev/null on PATH in activate.fish - #427
Merged
ekalinin merged 1 commit intoOct 3, 2026
Merged
Conversation
r3wretrhy
force-pushed
the
fix/fish-path-caret-redirect-400
branch
from
October 3, 2026 11:13
46f5d31 to
b04b26d
Compare
Owner
|
Thanks for the fix! A few suggestions before merging:
|
fish 3.1+ defaults to stderr-nocaret, so a trailing ^/dev/null on the PATH set line became a literal PATH entry. Drop the redirect entirely (fish 3.0+ no longer warns about missing PATH dirs), remove the stale comment, use __MOD_NAME__ for the .bin path, and add a template-level regression test that does not need fish installed. Existing envs keep the old activate.fish until recreated with --force. Fixes ekalinin#400
r3wretrhy
force-pushed
the
fix/fish-path-caret-redirect-400
branch
from
October 3, 2026 18:56
b04b26d to
2867b39
Compare
Contributor
Author
|
Thanks for the detailed review — addressed all six points on tip 2867b39:
Local: |
Owner
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #400.
activate.fishended itsPATHline with a caret redirect:fish 3.1+ defaults to
stderr-nocaret(stderr-nocaretbecame the default in 3.1 and read-only in 3.3; fish 3.0 still treated^as a redirect by default), so^is no longer a stderr redirect. The token lands inPATHas a literal^/dev/nullentry.Per review: drop the redirect entirely (fish 3.0+ no longer warns about missing PATH directories, so
2>/dev/nullhid nothing and could hide a realseterror), remove the stale comment, use$NODE_VIRTUAL_ENV/__MOD_NAME__/.binfor consistency with theNODE_PATHlines, and add a template-level regression test that does not need fish installed. Existing environments keep the oldactivate.fishuntil recreated with--force.97 passed / 36 skipped (zsh+fish not installed here).