zsh-users
 help / color / mirror / code / Atom feed
* handling of variables
@ 2005-02-01 11:57 Michael Prokop
  2005-02-01 14:06 ` Stephane Chazelas
  2005-02-01 14:10 ` Peter Stephenson
  0 siblings, 2 replies; 6+ messages in thread
From: Michael Prokop @ 2005-02-01 11:57 UTC (permalink / raw)
  To: zsh-users

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/


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-02-02 22:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-01 11:57 handling of variables Michael Prokop
2005-02-01 14:06 ` Stephane Chazelas
2005-02-01 14:10 ` Peter Stephenson
2005-02-01 15:24   ` Bart Schaefer
2005-02-01 16:40     ` Bart Schaefer
2005-02-02 22:43   ` Michael Prokop

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).