Date: Fri, 22 Mar 2002 12:18:27 -0800 (PST) From: Garrett Wollman <wollman@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/bin/expr expr.1 expr.y Message-ID: <200203222018.g2MKIRj87213@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203222018.g2MKIRj87213>
