diff options
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r-- | bash/bashrc.d/cd.bash | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash index 8557b8c9..04de96d5 100644 --- a/bash/bashrc.d/cd.bash +++ b/bash/bashrc.d/cd.bash @@ -20,7 +20,7 @@ cd() { done if (($# == 2)) ; then if [[ $PWD == *"$1"* ]] ; then - builtin cd "${opts[@]}" -- "${PWD/$1/$2}" + builtin cd "${opts[@]}" -- "${PWD/"$1"/"$2"}" else printf 'bash: %s: could not replace substring\n' \ "$FUNCNAME" >&2 |