delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
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" <emcb_exposure AT hotmail DOT com> |
To: | "Huang." <hzhr AT 21cn DOT com> |
Cc: | <cygwin AT cygwin DOT com> |
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 |
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 AT 21cn DOT com> To: <cygwin AT cygwin DOT 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |