From 6490ceb324c450ee5d597672aa42afd7f85836af Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 31 Oct 2013 08:56:17 +1300 Subject: Fix newline error in cd error print --- bash/bashrc.d/cd.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bash/bashrc.d') 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 -- cgit v1.2.3