the next release will finally handle multiple BUILTIN_LIB in .paths properly
e.g, my development $INSTALLROOT/bin/.paths file is:
--
# use { # no NO } prefix instead of XX to permanently disable #
FPATH=../fun
BUILTIN_LIB=cmd
BUILTIN_LIB=cmdtst
LD_LIBRARY_PATH=../lib
--when $INSTALLROOT/bin is hit in the $PATH search order ../lib/libcmd.so* (or the native shared lib /dll naming convention, e.g., ../lib/libcmd.sl*) is searched for a builtin, then ../lib/libcmdtst.so*, then the directory itself so any script that picks up commands via $PATH will pick up -lcmd and -lcmdtst builtins when it hits $INSTALLROOT/bin what about scripts that munge $PATH? (i.e., requests for special ksh with hard linked builtins) those scripts might not be able to test $INSTALLROOT/bin/grep either and they might also munge $SHELL, bypassing special hard linked builtins finally, if problems arise with builtins picked up via .paths::BUILTIN_LIB others will have a fighting chance of reproducing those problems without having to build a special ksh to test On Sat, 12 May 2012 07:47:18 +0200 Lionel Cons wrote: > On 11 May 2012 05:54, Cedric Blancher <[email protected]> wrote: > > On 13 April 2012 20:53, Cedric Blancher <[email protected]> > > wrote: > >> 2012/3/31 ÏÌØÇÁ ËÒÙÖÁÎÏ×ÓËÁÑ <[email protected]>: > >>> Glenn, thank you, very much. > >>> > >>> An easier way to build the utilities is to unpack INIT, then ast-open, > >>> then ast-cmdtst and build this in one step. > >>> > >>> IMO it would be welcome if grep, xargs are in libcmd but disabled by > >>> default at build time until SHOPT_CMDNEWCMD is set to 1 via CCFLAGS. > >> > >> It'll be nice to have grep in ast-ksh for the next beta, disabled by > >> default until SHOPT_CMDNEWCMD is defined. Right now it's a serious > >> pain to enable and use it without modifying every script. > > > > Can someone please prepare a single, standalone ksh binary with the > > grep builtin bound to the usual Linux locations for testing, please? > > I'm fed up with trying it myself after spending half a week of testing > > until realising that I tested /bin/grep instead of the builtin. > Yes, I like to have one, too. > Lionel _______________________________________________ ast-users mailing list [email protected] https://mailman.research.att.com/mailman/listinfo/ast-users
