Re: expr multiplication

Jim Meyering <[email protected]> Fri, 16 Jan 2004 18:41:13 +0100
Newsgroups gmane.comp.gnu.sh-utils.bugs
Message-ID <[email protected]>
Radu Popescu <[email protected]> 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'