This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: About ENV?


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. <hzhr@21cn.com>
To: <cygwin@cygwin.com>
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]