Skip to content

Commit

Permalink
Update cd
Browse files Browse the repository at this point in the history
  • Loading branch information
fholzer authored Apr 6, 2024
1 parent dd65253 commit 14caa88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/env/cd
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14caa88

Please sign in to comment.