Hi!

----

[Splitting discussion for a possible |libc::wordexp()| migration to
ksh93 off the main thread...]

Peter Memishian wrote:
[snip]
>  > > lib/libc/{sparc,sparcv9,amd64,i386}/Makefile.com:
>  > >
>  > >         * It's a shame this has to be duplicated across all four 
> Makefiles,
>  > >           but I guess that's status quo with the libc Makefiles.
>  >
>  > Well, we could declare the old version of |libc::wordexp()| obsolete
>  > (which will be an intersting ARC case because the current
>  > |libc::wordexp()| has seperate codepaths for normal and XPG4 behaviour
>  > (the difference is whether /usr/bin/ksh or /usr/xpog4/bin/sh is used)
>  > while the new one only supports XPG4 behaviour. The question is whether
>  > there is a difference between both shells when word expansion is done...
>  > I can't even imagine a testcase to probe for the difference between
>  > /usr/bin/ksh and /usr/xpg4/bin/sh and therefore I assume the difference
>  > is more or less "zero" (except that you could use shell-specfic
>  > variables and check $0 for the name of the shell - but AFAIK no consumer
>  > will do that...)) and this flag will disappear... :-)
> 
> OK :-)

Slightly offtopic: Is there any "precendent" for such an ARC case ?
Basically the switch would break backwards-compatiblity because the old
code had seperate codepaths for "normal" and "XPG4" but AFAIK there is
almost no difference in "word expansion" between /usr/bin/ksh (used by
the "normal" codepath) and /usr/xpg4/bin/sh (used by the "POSIX"
codepath) ... or better: I can't imagine a testcase which would expose a
difference between both modes and the number of consumers is tiny (AFAIK
SMF/inetd and dhcpd use |libc::wordexp()| in OS/Net and a seach via
"Koders" and "Google Code Search" shows lots of copies of the glibc
|wordexp()| implementation but no consumers) and none of them will be
affected by a switch of |libc::wordexp()| to ksh93 which would "lock"
the behaviour to the "XPG4" codepath...

----

Bye,
Roland

-- 
  __ .  . __
 (o.\ \/ /.o) roland.mainz at nrubsig.org
  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 641 7950090
 (;O/ \/ \O;)

Reply via email to