aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/bd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/shrc.d/bd.sh')
-rw-r--r--sh/shrc.d/bd.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/sh/shrc.d/bd.sh b/sh/shrc.d/bd.sh
index 14d65c3b..1043a8cb 100644
--- a/sh/shrc.d/bd.sh
+++ b/sh/shrc.d/bd.sh
@@ -22,28 +22,28 @@ bd() {
case $req in
# Just go straight to the root or dot directories if asked
- /|.|..)
+ (/|.|..)
dirname=$req
;;
# Anything with a leading / needs to anchor to the start of the
# path. A strange request though. Why not just use cd?
- /*)
+ (/*)
dirname=$req
case $PWD in
- "$dirname"/*) ;;
- *) dirname='' ;;
+ ("$dirname"/*) ;;
+ (*) dirname='' ;;
esac
;;
# In all other cases, iterate through the PWD to find a match, or
# whittle the target down to an empty string trying
- *)
+ (*)
dirname=$PWD
while [ -n "$dirname" ] ; do
dirname=${dirname%/*}
case $dirname in
- */"$req") break ;;
+ (*/"$req") break ;;
esac
done
;;