Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Originating-IP: [195.92.67.65] From: "Elfyn McBratney" To: "Huang." Cc: References: <3DAFAAB7 DOT 6070502 AT 21cn DOT 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: 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. To: 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/