> sir,
>     Multiplication is not wokrking
> example
>      expr 2 * 2
> it is throwing syntax error

Thank you for your report but that is a usage error and not a bug.
The '*' character is being expanded by the command shell as is proper.
The expr program is not seeing the '*' it is seeing the expansion.
You may verify this with the echo command.

  echo expr 2 * 2

You must quote shell metacharacters when used on the command line to
prevent them from being expanded.

  expr 2 '*' 2

More information about the command shell can be found in the online
man pages or online info pages.  However, I suggest a good book on
UNIX such as the O'Reilly nutshell handbooks.

Bob Proulx

_______________________________________________
Bug-sh-utils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-sh-utils

Reply via email to