Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-Originating-IP: [195.92.67.65]
From: "Elfyn McBratney" <emcb_exposure@hotmail.com>
To: "Huang." <hzhr@21cn.com>
Cc: <cygwin@cygwin.com>
References: <3DAFAAB7.6070502@21cn.com>
Subject: Re: About ENV?
Date: Fri, 18 Oct 2002 10:03:05 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
Message-ID: <OE294NuryEdMoPukF0t00002245@hotmail.com>
X-OriginalArrivalTime: 18 Oct 2002 09:04:02.0244 (UTC) FILETIME=[4D7B2840:01C27685]

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/

