Closed hostingnuggets closed 8 years ago
What error are you getting when executing the command?
nothing happens when I execute that eval command that's the problem. it should for example export and set the RBENV_SHELL variable and define the rbenv shell function but it does nothing really. I have allowed export, rbenv, eval through the allowed parameter of lshell.
@hostingnuggets, were you able to find a workaround for your issue?
unfortunately no, still impossible to use rbenv in combination with lshell
Have you tried adding
env_path : ':/usr/local/bin:/usr/sbin:/home/ghantoos/.rbenv/bin:/home/ghantoos/bin'
export RBENV_SHELL=bash
The other functions of rbenv seem to be very bash specific, which will not be compatible with lshell, as it uses subprocess which usually hit sh(1) and not bash(1).
Feel free to reopen the bug if this does not correct your behavior.
@ghantoos please reopen the bug as it still does not work with 0.9.18 and I can't even run a git clone, see #175, thanks!
I am using rbenv (https://github.com/sstephenson/rbenv) in order to setup my ruby environment correctly but unfortunately lshell does not work with rbenv. What I need to do to get rbenv working is to be able to execute the following command from the command line or from the lshell login_script:
eval "$(rbenv init -)"
what this does it to simply execute the following shell script commands:
any chances to get rbenv working with shell?
see also #77