pyenv/test
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
..
libexec tests galore 2013-03-07 15:07:32 -05:00
--version.bats work around bug in git 1.8.2.1 in tests 2013-06-07 19:13:54 +02:00
commands.bats fix iterating through paths that have spaces in them 2013-04-01 01:04:19 +02:00
completions.bats undo assert_output_lines in tests 2013-04-08 23:16:35 +02:00
exec.bats test that IFS in hooks is correct 2013-04-16 14:01:43 +02:00
global.bats tests galore 2013-03-07 15:07:32 -05:00
help.bats add tests for help and rbenv --version 2013-04-08 23:16:35 +02:00
hooks.bats undo assert_output_lines in tests 2013-04-08 23:16:35 +02:00
init.bats reliably detect parent shell in rbenv init 2013-10-07 03:24:45 +02:00
local.bats add tests for version commands 2013-04-08 23:16:35 +02:00
prefix.bats better error message for rbenv prefix system 2013-10-03 21:42:52 +02:00
rbenv.bats tests galore 2013-03-07 15:07:32 -05:00
rehash.bats reliably detect parent shell in rbenv init 2013-10-07 03:24:45 +02:00
shell.bats reliably detect parent shell in rbenv init 2013-10-07 03:24:45 +02:00
shims.bats tests galore 2013-03-07 15:07:32 -05:00
test_helper.bash ensure cleaner PATH in test environment 2013-06-20 20:41:22 +02:00
version-file-read.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version-file-write.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version-file.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version-name.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version-origin.bats add tests for version commands 2013-04-08 23:16:35 +02:00
version.bats add tests for version commands 2013-04-08 23:16:35 +02:00
versions.bats improve versions tests by cd'ing into a clean slate 2013-04-16 12:52:42 +02:00
whence.bats undo assert_output_lines in tests 2013-04-08 23:16:35 +02:00
which.bats test that IFS in hooks is correct 2013-04-16 14:01:43 +02:00