From cdd63bca301bc602c091b8d6a2b5bd461ab4023b Mon Sep 17 00:00:00 2001 From: DelphicOkami Date: Thu, 26 Mar 2026 12:01:47 +0000 Subject: [PATCH] fix(cd): resolve issue with not being able to cd to directories containing a space --- 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