www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/03/23/03:55:47

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 <marco_atzeri AT yahoo DOT it>
Subject: Inoltra: Re: Doing additions in cygwin?
To: cygwin AT cygwin DOT com
MIME-Version: 1.0
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: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

--- 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019