X-Spam-Check-By: sourceware.org X-YMail-OSG: qdaA6.cVM1m6kW2mdel9FMf_DUdGuYjmmicIR9puFz4X1HYEK2jtv5umWSmhTiHGoeuJTAwgl.tuR6dHgBquBStUuHfaXzzyJ8c48UOts.K0LbQX6AcE9p9iGnuI7UalRCaeh4ov31DRTL1bRBsaVSz10dfWVbz7TmB3FrSv Date: Fri, 23 Mar 2007 09:55:21 +0100 (CET) From: Marco Atzeri Subject: Inoltra: Re: Doing additions in cygwin? To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Message-ID: <301200.90658.qm@web25003.mail.ukl.yahoo.com> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 --- Kevin Markle ha scritto: > Hello, > > I'm attemping to use the expr variable and am > having > problems. when I > type test=expr 1+1 or > test=`expr 1+1` or > test='expr 1 + 1' or > > with and without quotes?? I just want to create a > variable based on and > expression? this is a bash question not Cygwin one. $ a=`expr 1 + 1` $ echo $a 2 Do not use test as variable. It is a command ;-) $ which test /usr/bin/test Regards Marco ___________________________________ L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: http://it.docs.yahoo.com/nowyoucan.html -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/