* Yossi Kreinin <[email protected]> [2007-01-10 18:25]: > >Correct me if I'm wrong, but in sh at least the $A is > >evaluated and replaced before the env A=, so a better example > >would be to write a shell script that echos $A and use that > >instead of echo > > Inspired by the previous non-answers, I did that, and > apparently you are right. So this is unrelated to the kind of > command you use. This is even stupider than I thought: you > assign before $A, but $A is still evaluated to the old value.
What are you talking about? The `A=` bit is just a parameter to env, it is never interpreted by the shell at all. Your mental model of what's going on is broken. Regards, -- Aristotle Pagaltzis // <http://plasmasturm.org/>
