Fix for pwds with symlinks as a directory component

This commit is contained in:
amerdidit 2014-11-23 11:32:35 +01:00 committed by Amer Hamzeh
commit e9eebb60e6

View file

@ -117,7 +117,7 @@ function fish_like_pwd() {
until [[ (( ${#expn} == 1 )) || $dir = $expn || $i -gt 99 ]] do
(( i++ ))
part+=$dir[$i]
expn=($(echo ${part}*(/)))
expn=($(echo ${part}*(-/)))
(( short )) && break
done
result+="/$part"