Skip to content

OS X compatibility#5

Open
candera wants to merge 4 commits intoadzerk-oss:masterfrom
candera:osx-compatibility
Open

OS X compatibility#5
candera wants to merge 4 commits intoadzerk-oss:masterfrom
candera:osx-compatibility

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

candera added 2 commits July 6, 2018 11:46
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