summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-10-12 20:26:26 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-10-12 20:26:26 +0200
commita202ee6017621e5716588decf4a371f79371af80 (patch)
tree26fa546a09d916aab6f1d99cc838910f76a677a8 /etc
parenta6cf6e3c6496ffea9a0909a7aec17a0ceae75ebc (diff)
rtab function: Don't return empty string when in /
Diffstat (limited to 'etc')
-rw-r--r--etc/functions/rtab2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab
index bb7d225..b543493 100644
--- a/etc/functions/rtab
+++ b/etc/functions/rtab
@@ -70,5 +70,5 @@ tree=(${(s:/:)dir})
cd $dir
shift tree
}
- echo $result
+ echo ${result:-/}
)