Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!prls!pyramid!decwrl!decvax!ccb From: ccb@decvax.UUCP (Charles C. Bennett) Newsgroups: net.bugs.4bsd,net.bugs.v7,net.bugs.2bsd,net.bugs.usg Subject: Re: expr(1) fails on negative arguments (with fix) Message-ID: <219@decvax.UUCP> Date: Wed, 11-Jun-86 02:12:17 EDT Article-I.D.: decvax.219 Posted: Wed Jun 11 02:12:17 1986 Date-Received: Fri, 13-Jun-86 03:21:50 EDT References: <270@cirl.UUCP> Reply-To: ccb@decvax.UUCP (Charles C. Bennett) Distribution: net Organization: DEC - ULTRIX Engineering Group Lines: 9 Xref: linus net.bugs.4bsd:1830 net.bugs.v7:118 net.bugs.2bsd:249 net.bugs.usg:464 [] Nice fix. Try "expr -5 * ---6". The problem cannot be correctly fixed w/out going all out and implementing UMINUS is the yacc grammar. Any takers? decvax!ccb Chas Bennett ============================================================================= 2 kinda people: those who say "There are 2 kinds of people" and those who don't -- Sam Clemens.