Commit Graph

14 Commits

Author SHA1 Message Date
jdolecek 3a4441e3d4 reimplement expr using lexical parser generated by yacc
highlights:
* / is treated correctly depending upon context (addresses PR # 10995)
* use 64 bit arithmetic, so expr is able to process integer values from
	-(2**63) to (2**63 - 1)
* checks for integer over- & underflows added
* error messages improved, more error checking added

add AUTHOR section to manpage
add BUGS section, and mention possible drawbacks with other expr implementations

XXX the old expr treated empty string in arithmetic expressions as if it was 0
XXX this behaviour has been retained
2000-09-19 17:20:00 +00:00
kleink 2caf6aacdd For commands and utilities, use EXIT STATUS rather than RETURN VALUES as
appropriate (and documented in mdoc(7)).
2000-09-04 07:30:07 +00:00
hubertf 1cb54f68ac Add 'RETURN VALUE' section header. 2000-08-28 02:11:04 +00:00
mjl 5a14e8cac6 On memory allocation failure, return 3 as per POSIX. (from OpenBSD) 2000-01-14 07:14:41 +00:00
enami c3872193cf Fix .Nm usage. 1997-10-20 08:50:59 +00:00
jtc 528957a005 Winning Strategies has placed this code into the Public Domain 1995-04-28 23:19:22 +00:00
cgd 49f0ad8601 convert to new RCS id conventions. 1995-03-21 09:01:59 +00:00
jtc 42f840d29d Fix spelling error in Copyright notice 1994-01-29 01:43:03 +00:00
jtc e04c8e0705 Fix spelling errors. 1994-01-11 02:10:48 +00:00
jtc 441c51a9d5 Document the new, less restrictive, behavior of the matching operator. 1993-10-04 22:06:59 +00:00
jtc a5102d01b8 Document the fact that expr is POSIX.2 compliant. 1993-08-28 04:21:00 +00:00
jtc 04b0d37be1 Document that string comparisons are done using the locale specific
collation sequence.
1993-08-16 23:22:49 +00:00
mycroft 11ad3ef4f1 Makefile 1993-08-02 17:15:26 +00:00
jtc 78bf9d408e Add a manual page. 1993-07-20 20:16:25 +00:00