summaryrefslogtreecommitdiffstats
path: root/bin/expr
Commit message (Collapse)AuthorAgeFilesLines
* Add cross-references to test(1) and expr(1) respectively.jkoshy1998-12-181-1/+4
| | | | | PR: docs/9111 Submitted by: Josh Gilliam <josh@quick.net>
* Correct use of .Nm.charnier1998-05-131-11/+11
|
* Simplified using new yacc rules and by not generating y.tab.h.bde1998-05-041-10/+4
|
* Revert $FreeBSD$ to $Id$peter1997-02-223-3/+3
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-143-3/+3
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Backout yacc changesphk1996-06-021-2/+6
|
* Use default yacc rule.phk1996-05-301-7/+3
|
* ``mv'' -> ``mv -f''wosch1996-05-071-2/+2
| | | | | ``rm'' -> ``rm -f'' so mv/rm may not ask for confirmation if you are not root
* Fix some spelling errors.mpp1996-01-291-5/+5
|
* Fix my own brokeness for the colon operator, when one of the argumentsjoerg1995-11-181-33/+31
| | | | | was a valid integer. The actual decision between integer and string is now context-dependant on the operator being used.
* expr(1) didn't comply to Posix.2 and its own man page: anyjoerg1995-08-041-1/+13
| | | | | | | | comparisions have been made as string comparisions, even in cases where both operands clearly qualified as integers. The fix is to make the parser properly analyzing whether an operand is a valid integer or not.
* Remove trailing whitespace.rgrimes1995-05-301-2/+2
| | | | Reviewed by: phk
* You will find enclosed some changes to make gcc -Wall more happy injoerg1995-03-191-2/+3
| | | | | | | | | /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: charnier@lirmm.fr (Philippe Charnier)
* Added $Id$dg1994-09-242-1/+2
|
* Explicitly include <sys/types.h> before including <regex.h>. This isbde1994-09-051-0/+1
| | | | | apparently required by POSIX. It will be required in practice when the bogus inclusion of <sys/types.h> is removed from <stdio.h>.
* Fix gross spelling and typographical errors pointed out by Keith Bostic.jkh1994-04-241-2/+2
|
* Take -lgnuregex back out. Linking with it causes 'make install' to fail.rich1994-02-031-2/+0
|
* Document the new, less restrictive, behavior of the matching operator.jtc1993-10-041-14/+15
|
* Allow expressions like "expr 'ABC' : '^.*$' to work as is done in otherjtc1993-10-041-9/+3
| | | | expr implementations.
* Fix grammar to eliminate support for unary minus expressions -- theyjtc1993-09-141-9/+8
| | | | | weren't supported, they aren't standard, and they caused expr to dump core.
* 1003.2 requires that lexical comparisons be done in locale specific manner,jtc1993-08-171-34/+29
| | | | | | | 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.
* Remove GNU regex.[ch] and use system's regex library. The library is stillconklin1993-08-021-2/+3
| | | | | GNU regex for now, but will be replaced as soon as an alternative is made availiable.
* install new manual pageconklin1993-07-211-1/+0
|
* Update to my latest expr (fixes bugs with comparison and matching operators)conklin1993-07-212-42/+138
| | | | Add man page I wrote.
* added POSIX regex to expralm1993-06-192-66/+46
|
* Initial import, 0.1 + pk 0.2.4-B1rgrimes1993-06-122-0/+614
OpenPOWER on IntegriCloud