From owner-cvs-all Fri Mar 22 12:18:37 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2233637B41A; Fri, 22 Mar 2002 12:18:27 -0800 (PST) Received: (from wollman@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g2MKIRj87213; Fri, 22 Mar 2002 12:18:27 -0800 (PST) (envelope-from wollman) Message-Id: <200203222018.g2MKIRj87213@freefall.freebsd.org> From: Garrett Wollman Date: Fri, 22 Mar 2002 12:18:27 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/expr expr.1 expr.y X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG wollman 2002/03/22 12:18:27 PST Modified files: bin/expr expr.1 expr.y Log: Make expr POSIX-compliant, and fix some bugs. Specifically: - expr must conform to the Utility Syntax Guidelines, so use getopt() to eat the (non-existent) options. - Use the Standard type intmax_t for arithmetic. - If an argument cannot be *completely* converted to an integer, then it is a string. Additionally make some style cleanups near the modified lines. This utility is still not completely style-compliant. Revision Changes Path 1.13 +98 -17 src/bin/expr/expr.1 1.19 +116 -86 src/bin/expr/expr.y To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message