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