On 10/06/2010 11:22 AM, Oliver Kiddle wrote:
"Jeffrey B. Green" wrote:
The question is then: what do users do with the explanation on the
manpage? I.e. they are not equivalent since the results are not the same.

But they are equivalent "as far as the above execution of cmd is
concerned". When you run XXX="hello" /bin/echo $XXX, the echo command
will have XXX in it's environment. That's why I used printenv to show
that the manpage is correct.

There's nothing wrong with the explanation on the manpage. Your attempt
to verify the example on the manpage failed because it relied on false
assumptions about how other things work - i.e. variable expansions.


My assumption is that two forms said to be equivalent imply the results of the forms are identical, they can be substituted for each other. Otherwise, they not not equivalent, just similar. What is your definition of equivalent?

-jeff



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to