-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
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 auto upgrade failure from non-exported ZSH env var #554
Conversation
Fixes #549. Specify ZSH=$ZSH explicitly when invoking the auto update scripts.
Actually, the second propagation (in check_for_upgrade.sh) is only necessary if "check_for_upgrade.sh" is invoked directly (not via oh-my-zsh.sh), which isn't really related to the auto-upgrade failing issue. Still, it's a good idea. |
@chrisleishman Ahh. I was alternating between invoking it directly and twiddling the epoch in |
Several questions about this :
|
@vguerci you probably have a |
@toolbear thanks for the clarification, I was exporting it. |
Sourcing can pollute the current environment. I considered sourcing at first, then decided on explicitly passing ZSH to maintain isolation. |
I see, but looking at upgrade scripts, I don't see any potential env pollution, but maybe I'm wrong. |
It's not like we're spawning processes in a tight loop, here. Lol. I think perf is a non-issue in this case. You got your pull request. I got mine. Either isolation is desirable, or it's unecessary. Now @robbyrussel gets to choose. Feel free to add a comment to your pull request indicating that it makes #555 unnecessary. If isolation isn't needed, that certainly makes a compelling case for your fix. |
I submitted issue #567 a couple of weeks ago. Today I realized the non-exported variable was the real issue and submitted a pull request today. Looks like you guys beat me to it! |
Fix auto upgrade failure from non-exported ZSH env var
Thanks for sharing this. I think it is very interesting and informative. |
Fixes #549. Specify ZSH=$ZSH explicitly when invoking
the auto update scripts.
Other pull requests for this issue are incomplete. ZSH needs to be manually propagated in two places.