diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-07-02 16:15:58 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-07-02 16:15:58 +1200 |
commit | f1670c07679f39572ca53ce166b12d51dd003df1 (patch) | |
tree | 9e09a88d62bc8b2fd42debfa665484fd71353b61 /bash/bashrc.d/cd.bash | |
parent | Default to simply disabling MAILCHECK (diff) | |
download | dotfiles-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.bash | 2 |
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 |