diff options
| author | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-19 23:24:02 +0200 | 
|---|---|---|
| committer | Daniel Friesel <derf@derf.homelinux.org> | 2008-09-19 23:24:02 +0200 | 
| commit | bae3c15416812aa72be20094d22c33753f9d6b87 (patch) | |
| tree | 83533a1856cf1315b94e6ea2a2c6bb9bae6afd69 /etc/functions | |
| parent | 188134c9c5e7e3557bb4f1ce5dc77e77b9947749 (diff) | |
rtab: Prevent endless loops
Diffstat (limited to 'etc/functions')
| -rw-r--r-- | etc/functions/rtab | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/functions/rtab b/etc/functions/rtab index e3a0c20..2fcbf42 100644 --- a/etc/functions/rtab +++ b/etc/functions/rtab @@ -61,10 +61,10 @@ tree=(${(s:/:)dir})  		expn=(a b)  		part=''  		i=0 -		until [[ (( ${#expn} == 1 )) || $dir = $expn ]]  do +		until [[ (( ${#expn} == 1 )) || $dir = $expn || $i -gt 99 ]]  do  			(( i++ ))  			part+=$dir[$i] -			expn=($(echo ${part}*)) +			expn=($(echo ${part}*(/)))  			(( short )) && break  		done  		result+="/$part"  | 
