From c740ed2e0764e9cd88b6a80a9214cc5d770890e7 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 21 Aug 2013 16:26:30 +1200 Subject: Standardise use of printf --- bash/bashrc.d/cd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d/cd.bash') diff --git a/bash/bashrc.d/cd.bash b/bash/bashrc.d/cd.bash index 4f3d5f64..fedb19f5 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 "bash: cd: could not replace substring\n" >&2 + printf %s "bash: cd: could not replace substring\n" >&2 return 1 fi else -- cgit v1.2.3