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 tests galore 2013-03-07 15:07:32 -05:00
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 Improve syntax for inline documentation and allow for multi-line usage 2012-12-29 12:06:20 -06:00
rbenv-help Fix incorrect formatting of rbenv-help output under MAWK 2013-01-05 16:55:19 +00:00
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 Documentation tweaks 2012-12-29 22:05:04 -06:00
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 tests galore 2013-03-07 15:07:32 -05:00
rbenv-version Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-file Prefer .ruby-version to .rbenv-version for reading local versions 2012-12-30 18:35:20 -06:00
rbenv-version-file-read Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-file-write Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-version-name Tweak the ruby- prefix warning 2012-12-31 09:58:10 -06:00
rbenv-version-origin Documentation tweaks 2012-12-29 22:05:04 -06:00
rbenv-versions Accept "ruby-" version prefix but print a warning to stderr 2012-12-30 19:01:30 -06:00
rbenv-whence Usage consistency 2012-12-30 16:00:53 -06:00
rbenv-which restore original IFS for hooks 2013-04-16 14:01:43 +02:00