aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-08-05 14:35:25 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-08-05 14:35:25 +1200
commit0933c9c8bf3e9be46224d81073f4bb02094d6c40 (patch)
treed6eea00c0d69450fb7038b40c964b4886141468e /bash/bashrc.d
parentMuch more thorough bd() implementation (diff)
downloaddotfiles-0933c9c8bf3e9be46224d81073f4bb02094d6c40.tar.gz
dotfiles-0933c9c8bf3e9be46224d81073f4bb02094d6c40.zip
Remove unnecessary trailing slash strip
Diffstat (limited to 'bash/bashrc.d')
-rw-r--r--bash/bashrc.d/bd.bash3
1 files changed, 1 insertions, 2 deletions
diff --git a/bash/bashrc.d/bd.bash b/bash/bashrc.d/bd.bash
index 8ab3cd5e..10c9161d 100644
--- a/bash/bashrc.d/bd.bash
+++ b/bash/bashrc.d/bd.bash
@@ -30,9 +30,8 @@ bd() {
;;
# Anything else with a leading / needs to anchor to the start of the
- # path, strip off any trailing slash
+ # path
/*)
- dir=${req%/}
if [[ ${PWD%*/} != "$dir"/* ]] ; then
printf 'bash: %s: Directory name not in path\n' \
"$FUNCNAME" >&2