On 26/10/2011 20:38, Rich Burridge wrote:

Or less drastically, change the script to use a one-liner
from one of those languages.

% perl -e 'print readlink($ARGV[0]),"\n"' /bin
./usr/bin

If you are sure it's a directory this will work:

$ dir=/bin
$ realdir=$(cd $dir && pwd -P)
$ echo $realdir

--
Alan Burlison
--
_______________________________________________
userland-discuss mailing list
userland-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/userland-discuss

Reply via email to