Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!mit-eddie!uw-beaver!ubc-vision!ubc-cs!brachman From: brachman@ubc-cs.UUCP Newsgroups: comp.os.minix Subject: Re: expr(1) source Message-ID: <989@ubc-cs.UUCP> Date: Fri, 10-Apr-87 23:09:18 EST Article-I.D.: ubc-cs.989 Posted: Fri Apr 10 23:09:18 1987 Date-Received: Sun, 12-Apr-87 03:14:44 EST References: <1133@botter.cs.vu.nl> Reply-To: brachman@ubc-cs.UUCP (Barry Brachman) Distribution: world Organization: UBC Department of Computer Science, Vancouver, B.C., Canada Lines: 22 Keywords: expr bugs The version of expr.c posted by erikb@cs.vu.nl (Erik Baalbergen) has a bug. Try: expr '(' 1 ')' + 1 You'll get "syntax error". I'm about to post a version of expr(1) to net.sources that is almost compatible with the 4.[23] BSD version. The posting will include Henry Spencer's regular expression routines which are very useful even if you don't want my version of expr. By the way, the 4.[23] BSD expr has a bug. Try: expr 5 - 6 - 1 See my recent posting to comp.bugs.4bsd for the fix. ----- Barry Brachman | {ihnp4!alberta,uw-beaver,seismo}! Dept. of Computer Science| ubc-vision!ubc-cs!brachman Univ. of British Columbia| brachman@cs.ubc.cdn Vancouver, B.C. V6T 1W5 | brachman%ubc.csnet@csnet-relay.arpa (604) 228-4327 | brachman@ubc.csnet