Open l8nite opened 9 years ago
I experienced the same thing with FreeBSD /bin/sh. After looking at rbenv repo, it's not simple.
In rbenv, they changed from "local" to "typeset" in https://github.com/rbenv/rbenv/commit/3060578e3b346fee7429aa4f0f2542693cb765f9 commit for ksh compatibility.
Then, they back to "local" except ksh with case switching in https://github.com/rbenv/rbenv/commit/5ae2cac088d12fea01054e1f3abbf304b92920b5 commit.
I'm not sure how to fix this in ndenv. Our options (maybe) are:
Looks like the init is doing some bash-specific stuff. I ran into this trying to do some ndenv stuff in a Dockerfile RUN statement (which executes as sh -c)
Compare this to rbenv:
Here is the rbenv init output:
And the ndenv init output: