aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-18 01:53:24 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-18 01:53:24 +1200
commitd1c58ff23718ed279c47791ab3b0e935a4331096 (patch)
tree3586a87bec8d34df052e7f99ee4370d26352a35b /bash/bashrc.d/cd.bash
parentDirect cd errors to stderr (diff)
downloaddotfiles-d1c58ff23718ed279c47791ab3b0e935a4331096.tar.gz
dotfiles-d1c58ff23718ed279c47791ab3b0e935a4331096.zip
Use double-quoted printf strings for newlines
Just for clarity/syntax highlighting
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 ebeea600..1813a9da 100644
--- a/bash/bashrc.d/cd.bash
+++ b/bash/bashrc.d/cd.bash
@@ -10,7 +10,7 @@ __cd() {
if [[ "$PWD" == *"$1"* ]]; then
builtin cd "${opts[@]}" "${PWD/$1/$2}"
else
- printf 'bash: cd: could not replace substring\n' >&2
+ printf "bash: cd: could not replace substring\n" >&2
return 1
fi
else