This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Problems with 'expr'



>  Hi,
>
>  I tried to use 'expr'. And it worked fine for this
>'expr 1 + 2 + 3'. But if I try to use '(' or '*' it
>will print 'expr: syntax error'. Shouldn't the
>following work? 'expr 3 * 4'?
>
>  Jens Yllman

The correct syntax is:
expr 3 \* 4
or
expr 3 '*' 4
same thing for ( or ).


André Bleau, ing., analyste
email: bleau at courriel dot polymtl dot ca
(Fight SPAM: encode your email-address)

Département de génie électrique et         Electric Engineering and
de génie informatique                      Computer Engineering department
École Polytechnique de Montréal            Montreal Polytechnic School


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]