This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Inoltra: Re: Doing additions in cygwin?
- From: Marco Atzeri <marco_atzeri at yahoo dot it>
- To: cygwin at cygwin dot com
- Date: Fri, 23 Mar 2007 09:55:21 +0100 (CET)
- Subject: Inoltra: Re: Doing additions in cygwin?
--- 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/