bug-coreutils
[Top][All Lists]
Advanced

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

Re: expr --> problem with product functionality


From: Alfred M. Szmidt
Subject: Re: expr --> problem with product functionality
Date: Mon, 22 May 2006 01:05:15 +0200 (CEST)

   GNU/Linux_box:/ # expr 10 / 2
   5
   GNU/Linux_box:/ # expr 10 * 2
   expr: syntax error

You need to escape the multiplication sign.  Try:

 expr 10 \* 2

And try:

 echo expr 10 * 2

to see why it doesn't work (shell expansion)

Cheers.




reply via email to

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