On 2003-12-30T17:01-0500, Screams wrote:
) Hello. I am running Red Hat 9.0 2.4.20-8. When I run expr 60 + 60 the
) result is 120.
) When I run expr 60 * 60 I get expr: syntax error. When I run expr 60 -
"*" means something special in the shell: All files (that don't begin with
".") in the current directory. Backslash will "escape" the * so it is not
evaluated by the shell. +, -, and / do not mean anything special.
address@hidden:~$ expr 60 * 60
expr: syntax error
address@hidden:~$ expr 60 \* 60
3600
To see what is actually being passed to expr when you type expr 60 * 60, try
running echo 60 * 60 and compare it to echo 60 \* 60.
--
Daniel Reed <address@hidden> http://naim-users.org/nmlorg/http://naim.n.ml.org/
There are people who do things and people who take the credit, and the
trick is to be in the first group; there is a lot less competition. --
Dwight Morrow, American Diplomat