[ksh93-integration-discuss] Re: [ast-users] Solaris "/usr/bin/uname -a" vs. ksh93 builtin "uname -a" ...

Glenn Fowler gsf at research.att.com
Thu May 11 22:13:53 PDT 2006


there was an opportunity, a long time ago, for uname to be a useful utility,
and it was wasted

static probing will not work on systems that have more than one uname
dynamic probing would lose any speed or cross-architecture portability gains

it might be best to move uname to the /opt/ast/bin builtin directory
this can be done by compiling ksh with
	-DSHOPT_CMDLIB_BLTIN -DSHOPT_CMDLIB_DIR

for those that don't know, ksh93 builtins can be associated with a PATH directory
if that directory is hit during a search for a command, and the
command is also a builtin, then the builtin is used

the directory need not exist for this to work

so a user happy with the -lcmd builtins could put
	/opt/ast/bin
ahead of /usr/bin:/bin in PATH and get the -lcmd builtins




More information about the ksh93-integration-discuss mailing list