diff options
Diffstat (limited to 'sh')
-rw-r--r-- | sh/shrc.d/sd.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sh/shrc.d/sd.sh b/sh/shrc.d/sd.sh index a901bb51..10597832 100644 --- a/sh/shrc.d/sd.sh +++ b/sh/shrc.d/sd.sh @@ -49,6 +49,12 @@ sd() { # Read sole optional argument case $1 in + # Root has no siblings + /) + printf >&2 'sd(): Radical misunderstanding\n' + return 2 + ;; + # Slashes aren't allowed */*) printf >&2 'sd(): Illegal slash\n' |