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 PROTECTED]>
To: <[EMAIL PROTECTED]>
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/

Reply via email to