aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-07-02 16:15:58 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-07-02 16:15:58 +1200
commitf1670c07679f39572ca53ce166b12d51dd003df1 (patch)
tree9e09a88d62bc8b2fd42debfa665484fd71353b61 /bash/bashrc.d/cd.bash
parentDefault to simply disabling MAILCHECK (diff)
downloaddotfiles-f1670c07679f39572ca53ce166b12d51dd003df1.tar.gz
dotfiles-f1670c07679f39572ca53ce166b12d51dd003df1.zip
Use one-arg form of printf for static strings
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 16dbfc48..267e85b9 100644
--- a/bash/bashrc.d/cd.bash
+++ b/bash/bashrc.d/cd.bash
@@ -16,7 +16,7 @@ cd() {
if [[ $PWD == *"${dirs[0]}"* ]] ; then
builtin cd "${opts[@]}" -- "${PWD/${dirs[0]}/${dirs[1]}}"
else
- printf '%s\n' 'bash: cd: could not replace substring' >&2
+ printf 'bash: cd: could not replace substring\n' >&2
return 1
fi
else