[prev] [thread] [next] [lurker] [Date index for 2007/01/10]
* Yossi Kreinin <yossi.kreinin@xxxxxxxx.xxx> [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/>There's stuff above here
Generated at 00:01 on 12 Jan 2007 by mariachi 0.52