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.
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
Implement shell PATH fixes via UnixShell trait #2387
Implement shell PATH fixes via UnixShell trait #2387
Changes from 23 commits
4451be6
bfacec9
f7296b7
86c97e4
c300af2
850adef
13bd1f2
de4bf2f
e138ce8
353ee5d
bcbbfd5
7887b3a
60491a3
1b61dec
5625974
7a0c72d
3cc0ef3
29483af
d1746a0
0862366
db11263
e45a1ec
c10b410
72a2d5e
1ae7ae8
914007c
da957b2
9488dac
a66e4e1
cc10149
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See below - but I think rcfiles vs update_rcs is an unneeded distinction, because we can be pretty certain we won't be
pure
as far as updating bash's profile files is concerned, because of the intersection with the posix shell definition.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mm, the evolution of the zsh implementation suggests it is going to be a concern anyways.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking through this, I cannot see rcfiles() being called on the trait; only from within trait implementations. All I'm suggesting is that it be removed from the trait unless-and-until something that is calling methods on the trait needs to call it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the suggestion above, rcfiles here could be inlined into update_rcs for this impl.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unix.sh, line 65:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it's basically that one place. ^^;
But it is a method that has a reason for existing.