Inoltra: Re: Doing additions in cygwin?

Marco Atzeri marco_atzeri@yahoo.it
Fri Mar 23 08:55:00 GMT 2007


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



More information about the Cygwin mailing list