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.
___
Bug-co
Hallo,
i use expr (GNU corutils) 5.3.0
Written by Mike Parker.
comming with Suse Linux 10.0 64 Bit Version.
I have the problem, that the arithmetic function product is not working.
For example:
Linux_box:/ # expr 10 / 2
5
Linux_box:/ # expr 10 * 2
expr: syntax error
Best regards
--