Commit Graph
11 Commits
Author SHA1 Message Date
Joerg Wunsch 5ed3d9fa9e Finally fix expr in all respects, so it's now handling all numeric and
string cases correctly.

Moved over from 2.2-current.
1995-12-11 22:59:22 +00:00
David Greenman 79ee3f4681 Brought in changes from rev 1.10: conform to POSIX.2 when comparing
integers.
1995-08-25 03:06:36 +00:00
Joerg Wunsch 0fd510b71a You will find enclosed some changes to make gcc -Wall more happy in
/usr/src/bin. Note that some patches are still needed in that directory.

I (Joerg) finished most of Philippe's cleanup.  /bin/sh will still
need *allot* of work, however.

Submitted by:	[email protected] (Philippe Charnier)
1995-03-19 13:29:28 +00:00
David Greenman 89730b290a Added $Id$ 1994-09-24 02:59:15 +00:00
Bruce Evans 395b07d1df Explicitly include <sys/types.h> before including <regex.h>. This is
apparently required by POSIX.  It will be required in practice when
the bogus inclusion of <sys/types.h> is removed from <stdio.h>.
1994-09-05 13:03:50 +00:00
J.T. Conklin 4a13ab7c12 Allow expressions like "expr 'ABC' : '^.*$' to work as is done in other
expr implementations.
1993-10-04 21:58:53 +00:00
J.T. Conklin 4cf61aba29 Fix grammar to eliminate support for unary minus expressions -- they
weren't supported, they aren't standard, and they caused expr to dump
core.
1993-09-14 22:49:52 +00:00
J.T. Conklin 55c497bf15 1003.2 requires that lexical comparisons be done in locale specific manner,
so we have to use strcoll() instead of strcmp().
1003.2 requires that a null string be returned if a string does not match
a \( \) subexpression.
Replaced fprintf/exit with calls to err and errx as appropriate.
1993-08-17 16:06:00 +00:00
J.T. Conklin c9fe00dc0b Update to my latest expr (fixes bugs with comparison and matching operators)
Add man page I wrote.
1993-07-21 22:56:14 +00:00
Andrew Moore 4ba5f2985d added POSIX regex to expr 1993-06-19 01:55:46 +00:00
Rodney W. Grimes 5b81b6b301 Initial import, 0.1 + pk 0.2.4-B1 1993-06-12 14:58:17 +00:00