From 14caa88120bdbaca9a4cd96205891abb21d427d9 Mon Sep 17 00:00:00 2001 From: Ferdinand Holzer Date: Sat, 6 Apr 2024 10:05:00 -0700 Subject: [PATCH] Update cd fixes #457 --- scripts/env/cd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/env/cd b/scripts/env/cd index ea1d1953..e9c41234 100644 --- a/scripts/env/cd +++ b/scripts/env/cd @@ -19,7 +19,7 @@ fi if __gvm_is_function cd; then eval "$(echo "__gvm_oldcd()"; declare -f cd | sed '1 s/{/\'$'\n''{/' | tail -n +2)" elif [[ "$(builtin type cd)" == "cd is a shell builtin" ]]; then - eval "$(echo "__gvm_oldcd() { builtin cd \$*; return \$?; }")" + eval "$(echo "__gvm_oldcd() { builtin cd \"\$*\"; return \$?; }")" fi # Path cleanup