Finn Thain dixit:

>And the mksh interpretation of "a=foo :" is consistent with the bash 
>interpretation of "exec :" -- that is, ":" interpreted as no command at 
>all.

No, that’s wrong. What mksh does here is:

• Save a pointer to the current “variable locality scope” as l_expand
• Create a new subscope called l_assign
• Evaluate “foo” inside l_expand, store as cp
• Assign cp to “a” inside l_assign
• Run “:” with l_assign “on top”
• Discard l_assign
• Now l_expand is “on top” again, as it was before we started.

>Does POSIX also mandate the effects of "exec" when applied to a special 
>builtin command? I didn't find it in the opengroup.org documentation.

What effects precisely?

Note that “exec” itself is a special builtin command, so
this may already answer your question ;-)

>> Oh, and try mksh-static (on Debian) or roll your own;
>
>Would be nice if the Gentoo ebuild implemented the "static" USE flag...

Sure, I’ll prod bonsaikitten later. Does Gentoo have a recent
(2.x) klibc packaged including the “klcc” compiler wrapper?

bye,
//mirabilos
-- 
[DJBDNS Zone] TTL 86400 – <Natureshadow> kann man da auch 1d schreiben?
<mirabilos> nö, außerdem kann ein Deutscher oder ein Japaner mit 1d
    ja erstmal nix anfangen, oder könntest du 1日 im zone file lesen?
<Natureshadow> das heißt für mich: ein Regal, das u.U. schiefstehen könnte

Reply via email to