Skip to content
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

OS X compatibility #5

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

candera
Copy link
Contributor

@candera candera commented Jul 6, 2018

This doesn't fix everything. zerkenv module1 module2 still chokes. But it basically works. I have this in my .bashrc, since the same problem this patch fixes means you can't do . <(zerkenv -i bash).

    ZERKENV_SH_TEMP=$(mktemp)
    zerkenv -i bash > $ZERKENV_SH_TEMP
    source $ZERKENV_SH_TEMP
    rm $ZERKENV_SH_TEMP

Under OS X, you can't do `. <(echo whatever)` - it just fails. Looks
to be a bug in OS X's version of bash. Workaround: use a tempfile.
@daveyarwood
Copy link
Member

This looks good to me -- seems like in general, we can use a tempfile instead of using the . <(do a thing) syntax.

I think it would be worth making it clear in the README that you may need to do what you ended up doing in your bashrc if you're on OS X. There is an OS X troubleshooting section that might be a good place, maybe with a little footnote linking to it in the place where we advise putting . <(zerkenv -i bash) in your bashrc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants