aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-10-31 08:56:17 +1300
committerTom Ryder <tom@sanctum.geek.nz>2013-10-31 08:56:17 +1300
commit6490ceb324c450ee5d597672aa42afd7f85836af (patch)
tree9a089064642ea2592a38f836e03bdeea40f865ae /bash/bashrc.d/cd.bash
parentExplain GnuPG configuration tweaks (diff)
downloaddotfiles-6490ceb324c450ee5d597672aa42afd7f85836af.tar.gz
dotfiles-6490ceb324c450ee5d597672aa42afd7f85836af.zip
Fix newline error in cd error print
Diffstat (limited to 'bash/bashrc.d/cd.bash')
-rw-r--r--bash/bashrc.d/cd.bash2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash
index 6d7e2573..45537aeb 100644
--- a/bash/bashrc.d/cd.bash
+++ b/bash/bashrc.d/cd.bash
@@ -11,7 +11,7 @@ cd() {
if [[ $PWD == *"$1"* ]]; then
builtin cd "${opts[@]}" "${PWD/$1/$2}"
else
- printf %s 'bash: cd: could not replace substring\n' >&2
+ printf '%s\n' 'bash: cd: could not replace substring' >&2
return 1
fi
else