bug-sh-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: expr multiplication


From: Jim Meyering
Subject: Re: expr multiplication
Date: Fri, 16 Jan 2004 18:41:13 +0100

Radu Popescu <address@hidden> wrote:
> I get a syntax error when using $expr x * y. This is the only operation
> that does not work with expr (multiplication).

Because the shell is expanding your use of `*'.
Use one of these instead:

  expr 2 \* 2

  expr '2 * 2'




reply via email to

[Prev in Thread] Current Thread [Next in Thread]