problem with setup for zsh
It seems that neither the setup nor the setups script work when in the zsh shell. This is for ups 5.0.5. We need to fix this ASAP so we can deliver other packages that now appear to work in zsh.
Paul Russo has solved the problem of finding where the script lives for both tcsh and zsh. The solution is neither pretty nor short, but it works fine in all our tests so far.
#1 Updated by Marc Mengel over 5 years ago
- Status changed from New to Resolved
Okay, I have a fix for this in r2810, this incorporates Chris's zsh find-thyself hack as well
as the SH_WORD_SPLIT option fix for setup $SETUP_UPS when ups is already setup; this of course
does not fix the csh sourced-from-a-script bug, but it's not clear to me that anything can.
So we still Strongly Reccomend that folks source the setups script after installing it in
a new place, or "ups current ups" to get the SETUPS_SAVE set in the script, for the cases of
things run as /bin/sh, or /bin/csh scripts, where $_ hacks don't work.