Path: utzoo!mnetor!uunet!munnari!otc!metro!ipso!stcns3!Unknown From: Unknown@stcns3.stc.oz (Unknown) Newsgroups: comp.unix.xenix Subject: Re: trouble with expr Message-ID: <268@stcns3.stc.oz> Date: 8 Mar 88 02:38:44 GMT References: <717@yabbie.rmit.oz> Reply-To: dave@stcns3.stc.oz (Dave Horsfall) Organization: STC Pty Ltd, North Sydney, AUSTRALIA Lines: 18 Keywords: expr,sco xenix,bug(?) Really-From: dave@stcns3.stc.oz (Dave Horsfall - I know, I know...) In article <717@yabbie.rmit.oz> radjg@yabbie.rmit.oz (Jordan Green) writes: >I have been trying to use expr(C) to do some integer manipulation and find >that I cannot get the multiplication to work. > >expr 2 * 3 > >simply returns >2 * 3 > >All the other arithmetical functions seem to work so what am I doing wrong with the multiplication? > That's the clue. At a guess, I'd say you need to escape the "*" from the shell. -- Dave Horsfall (VK2KFU) ACS: dave@stcns3.stc.OZ.AU Alcatel-STC Australia ARPA: dave%stcns3.stc.OZ.AU@uunet.UU.NET 11th Floor, 5 Blue St UUCP: {enea,hplabs,mcvax,uunet,ukc}!\ North Sydney NSW 2060 AUSTRALIA munnari!stcns3.stc.OZ.AU!dave