Subject: Re: About ENV?
From: "Elfyn McBratney" <[email-masked]>
To: "Huang." <[email-masked]>
Cc: <[email-masked]>
Date: Fri, 18 Oct 2002 10:03:05 +0100

Its just bash topology... If your setting a variable and calling a command
after it, or doing anything on one line with another expression after it you
need to end the expression before starting another one, which is done with
the semi-colon ';'.

On the first one:

$ AAAA=aaa echo $AAAA

AAAA now looks like "aaa echo " unless AAAA already exists, and if so would
contain the variable contents after the "echo " bit...

Elfyn
----- Original Message -----
From: Huang. <[email-masked]>
To: <[email-masked]>
Sent: Friday, October 18, 2002 7:31 AM
Subject: About ENV?

> Why env in cygwin work like these:
>
> $ AAAA=aaa echo $AAAA
>
>
> $ AAAA=aaa; echo $AAAA
> aaa
>
> $ echo $AAAA
> aaa
>
>
> Maybe it not correct?
>
> Thanks.
>
>
>
>
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting:         http://cygwin.com/bugs.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/