aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/cd.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2013-08-18 01:49:56 +1200
committerTom Ryder <tom@sanctum.geek.nz>2013-08-18 01:49:56 +1200
commitdc5ef4c40618e813c597764618da69b66ee9a63c (patch)
tree3366030170d503269a7553f8e396ba7a7e8b48dc /bash/bashrc.d/cd.bash
parentUse arithmetic expansion for argument count test (diff)
downloaddotfiles-dc5ef4c40618e813c597764618da69b66ee9a63c.tar.gz
dotfiles-dc5ef4c40618e813c597764618da69b66ee9a63c.zip
Direct cd errors to stderr
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 186ddceb..ebeea600 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'
+ printf 'bash: cd: could not replace substring\n' >&2
return 1
fi
else