Path: utzoo!mnetor!uunet!lll-winken!lll-lcc!ames!mailrus!tut.cis.ohio-state.edu!ut-sally!utastro!bigtex!james From: james@bigtex.UUCP (James Van Artsdalen) Newsgroups: comp.unix.xenix Subject: Re: trouble with expr Message-ID: <897@bigtex.UUCP> Date: 4 Mar 88 20:45:21 GMT References: <717@yabbie.rmit.oz> Organization: F.B.N. Software, Austin TX Lines: 21 Keywords: expr,sco xenix,bug(?) 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 I'll bet you're entering $ expr "2 * 3" instead of $ expr 2 "*" 3 The first sees the single argument as a string, whereas the second sees three arguments and an arithmetic expression. -- James R. Van Artsdalen ...!uunet!utastro!bigtex!james "Live Free or Die" Home: 512-346-2444 Work: 328-0282; 110 Wild Basin Rd. Ste #230, Austin TX 78746