diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-18 01:49:56 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2013-08-18 01:49:56 +1200 |
commit | dc5ef4c40618e813c597764618da69b66ee9a63c (patch) | |
tree | 3366030170d503269a7553f8e396ba7a7e8b48dc /bash | |
parent | Use arithmetic expansion for argument count test (diff) | |
download | dotfiles-dc5ef4c40618e813c597764618da69b66ee9a63c.tar.gz dotfiles-dc5ef4c40618e813c597764618da69b66ee9a63c.zip |
Direct cd errors to stderr
Diffstat (limited to '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 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 |