pyenv/libexec
Mislav Marohnić 878bd87328 reliably detect parent shell in rbenv init
`$SHELL` variable is a terrible way of detecting the current shell
because it's not even supposed to reflect the current shell; it's meant
for keeping the value of the default shell for programs to start.

If an explicit `<shell>` argument wasn't passed to `rbenv init`, it
tries to detect the shell by getting the name of its parent process. If
this fails, it falls back on the value of `$SHELL` as before.

Furthermore, `rbenv init` will set the RBENV_SHELL variable in the
current shell to the value of the detected shell so that `sh-shell` and
`sh-rehash` commands don't have to repeat the detection.
2013-10-07 03:24:45 +02:00
..
rbenv bail out early if readlink is not available 2013-06-07 19:16:38 +02:00
rbenv---version
rbenv-commands fix iterating through paths that have spaces in them 2013-04-01 01:04:19 +02:00
rbenv-completions improve detection of completion support for commands 2013-04-01 16:39:51 +02:00
rbenv-exec restore original IFS for hooks 2013-04-16 14:01:43 +02:00
rbenv-global
rbenv-help
rbenv-hooks bail out early if readlink is not available 2013-06-07 19:16:38 +02:00
rbenv-init reliably detect parent shell in rbenv init 2013-10-07 03:24:45 +02:00
rbenv-local add tests for version commands 2013-04-08 23:16:35 +02:00
rbenv-prefix better error message for rbenv prefix system 2013-10-03 21:42:52 +02:00
rbenv-rehash fix rehash when paths have spaces in them 2013-09-26 01:42:34 +02:00
rbenv-root
rbenv-sh-rehash reliably detect parent shell in rbenv init 2013-10-07 03:24:45 +02:00
rbenv-sh-shell reliably detect parent shell in rbenv init 2013-10-07 03:24:45 +02:00
rbenv-shims
rbenv-version
rbenv-version-file
rbenv-version-file-read
rbenv-version-file-write
rbenv-version-name
rbenv-version-origin
rbenv-versions
rbenv-whence
rbenv-which restore original IFS for hooks 2013-04-16 14:01:43 +02:00