From 060f141b2174f9ab53b7c2c248ad8f426ec5c125 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohnic=CC=81?= Date: Tue, 16 Apr 2013 14:01:04 +0200 Subject: [PATCH] test that IFS in hooks is correct closes #379 --- test/exec.bats | 14 ++++++++++++++ test/rehash.bats | 14 ++++++++++++++ test/which.bats | 14 ++++++++++++++ 3 files changed, 42 insertions(+) diff --git a/test/exec.bats b/test/exec.bats index bf57c597..889eb897 100644 --- a/test/exec.bats +++ b/test/exec.bats @@ -45,6 +45,20 @@ OUT assert_line "HELLO=from hook" } +@test "carries original IFS within hooks" { + hook_path="${RBENV_TEST_DIR}/rbenv.d" + mkdir -p "${hook_path}/exec" + cat > "${hook_path}/exec/hello.bash" < "${hook_path}/rehash/hello.bash" < "${hook_path}/which/hello.bash" <