diff -ru a/ucc b/ucc --- a/ucc 2006-12-27 14:02:21.000000000 +0100 +++ b/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 } diff -ru a/ut b/ut --- a/ut 2006-12-27 14:02:25.000000000 +0100 +++ b/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 }