diff --git a/scripts/env/cd b/scripts/env/cd index ea1d195..e9c4123 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