On 10/26/11 11:49 AM, Ali Bahrami wrote:
On 10/26/11 12:26, Alan Coopersmith wrote:
On 10/25/11 23:08, david.co...@oracle.com wrote:
As I mentioned on IRC, the fix is OK although it's a shame to have to
pull in all of gnu-coreutils (at present) just for /usr/bin/readlink.
The latter package is in need of some refactoring or I wonder if the
texinfo smf(5) method can be rewriten to avoud using "readlink"?

readlink used to come for free in SUNWcs as a ksh93 builtin, but the
ON refactoring and dekshification removed that and moved us to the
gnu version instead (CR 7061014, 7066497, etc.)

The best alternatives I'm aware of for getting off readlink is to replace
shell scripts with scripts in languages with readlink function built in
(python, perl, etc.)



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

but of course, you've added a dependency by doing so. I imagine
that it's hard to have a usable Solaris system these days without
both of these being installed, so perhaps that's not a big deal?

I think this looks like a great alternative. I'll work up a new webrev
based on this.

Thanks!

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

Reply via email to