Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

handling of variables



Hello,

I'm just wondering about:

% zsh -f
% FOO=BAR /bin/echo "$FOO"

%

Why doesn't this work? Am I running out of coffee? :)

Of course the following works:

% ( FOO=BAR ; echo "$FOO" )
BAR
% FOO=BAR && /bin/echo "$FOO"
BAR

And I'm wondering what's happening at:

% zsh -f
% FOO=BAR BAR=FOO echo $FOO $BAR

% FOO=BAR BAR=FOO echo $FOO $BAR
BAR
%

Can anyone please explain me what is happening here?

thx && regards,
-mika-
-- 
 ,'"`.         http://www.michael-prokop.at/
(  grml.org -» Linux for texttool-users and sysadmins
 `._,          http://www.grml.org/



Messages sorted by: Reverse Date, Date, Thread, Author