aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/sd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sh/shrc.d/sd.sh')
-rw-r--r--sh/shrc.d/sd.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/sh/shrc.d/sd.sh b/sh/shrc.d/sd.sh
index 80cb7e39..ce59bf99 100644
--- a/sh/shrc.d/sd.sh
+++ b/sh/shrc.d/sd.sh
@@ -53,7 +53,7 @@ sd() {
else
for sib in ../.* ../* ; do
case ${sib#../} in
- .|..|"${PWD##*/}") continue ;;
+ (.|..|"${PWD##*/}") continue ;;
esac
set -- "$@" "$sib"
done
@@ -61,12 +61,12 @@ sd() {
# We should have exactly one sibling
case $# in
- 1) ;;
- 0)
+ (1) ;;
+ (0)
printf >&2 'sd(): No siblings\n'
exit 1
;;
- *)
+ (*)
printf >&2 'sd(): More than one sibling\n'
exit 1
;;