This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: About ENV?
- From: "Elfyn McBratney" <emcb_exposure at hotmail dot com>
- To: "Huang." <hzhr at 21cn dot com>
- Cc: <cygwin at cygwin dot com>
- Date: Fri, 18 Oct 2002 10:03:05 +0100
- Subject: Re: About ENV?
- References: <3DAFAAB7.6070502@21cn.com>
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/