Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
handling of variables
- X-seq: zsh-users 8450
- From: Michael Prokop <news@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: handling of variables
- Date: Tue, 1 Feb 2005 12:57:37 +0100
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Reply-to: Michael Prokop <zsh@xxxxxxxxxxxxxxxxx>
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