--- a/ucc 2006-12-27 14:02:21.000000000 +0100 +++ a/ucc 2006-12-27 14:02:56.000000000 +0100 @@ -30,7 +30,7 @@ fi # Is the awk/ls magic portable? if [ -L "$fullpath" ]; then - fullpath="`ls -l "$fullpath" | awk '{print $11}'`" + fullpath="`readlink "$fullpath"`" fi dirname $fullpath } --- a/ut 2006-12-27 14:02:25.000000000 +0100 +++ a/ut 2006-12-27 14:02:52.000000000 +0100 @@ -30,7 +30,7 @@ fi # Is the awk/ls magic portable? if [ -L "$fullpath" ]; then - fullpath="`ls -l "$fullpath" | awk '{print $11}'`" + fullpath="`readlink "$fullpath"`" fi dirname $fullpath }