#
f07e4247 |
| 22-Mar-2002 |
Garrett Wollman <wollman@FreeBSD.org> |
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_
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.
show more ...
|
Revision tags: release/4.5.0_cvs, release/4.4.0_cvs |
|
#
7669d0fc |
| 02-Feb-2002 |
Warner Losh <imp@FreeBSD.org> |
o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int arg
o __P has been reoved o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o gc some #ifdef sun ... #endif code
Approved by: arch@, new style(9)
show more ...
|
#
3d06e95d |
| 26-May-2001 |
Kris Kennaway <kris@FreeBSD.org> |
Fix warnings to compile with WARNS=2 on i386 and alpha
Reviewed by: bde
|
Revision tags: release/4.3.0_cvs, release/4.3.0, release/4.2.0, release/4.1.1_cvs, release/4.1.0 |
|
#
915198b4 |
| 22-Jul-2000 |
Stefan Eßer <se@FreeBSD.org> |
Add overflow tests
|
#
64867286 |
| 10-Jul-2000 |
Stefan Eßer <se@FreeBSD.org> |
Extend numeric operations to support 64 bit numbers.
|
Revision tags: release/3.5.0_cvs, release/4.0.0_cvs, release/3.4.0_cvs, release/3.3.0_cvs |
|
#
2a456239 |
| 28-Aug-1999 |
Peter Wemm <peter@FreeBSD.org> |
$Id$ -> $FreeBSD$
|
Revision tags: release/3.2.0, release/3.1.0, release/3.0.0, release/2.2.8, release/2.2.7, release/2.2.6, release/2.2.5_cvs, release/2.2.2_cvs, release/2.2.1_cvs, release/2.2.0, release/2.1.7_cvs |
|
#
b97fa2ef |
| 22-Feb-1997 |
Peter Wemm <peter@FreeBSD.org> |
Revert $FreeBSD$ to $Id$
|
Revision tags: release/2.1.6_cvs, release/2.1.6.1 |
|
#
1130b656 |
| 14-Jan-1997 |
Jordan K. Hubbard <jkh@FreeBSD.org> |
Make the long-awaited change from $Id$ to $FreeBSD$
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
Make the long-awaited change from $Id$ to $FreeBSD$
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.
show more ...
|
Revision tags: release/2.1.5_cvs, release/2.1.0_cvs |
|
#
717252ea |
| 18-Nov-1995 |
Joerg Wunsch <joerg@FreeBSD.org> |
Fix my own brokeness for the colon operator, when one of the arguments was a valid integer. The actual decision between integer and string is now context-dependant on the operator being used.
|
#
2a353a9f |
| 04-Aug-1995 |
Joerg Wunsch <joerg@FreeBSD.org> |
expr(1) didn't comply to Posix.2 and its own man page: any comparisions have been made as string comparisions, even in cases where both operands clearly qualified as integers.
The fix is to make the
expr(1) didn't comply to Posix.2 and its own man page: any 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.
show more ...
|
Revision tags: release/2.0.5_cvs |
|
#
0fd510b7 |
| 19-Mar-1995 |
Joerg Wunsch <joerg@FreeBSD.org> |
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 w
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: charnier@lirmm.fr (Philippe Charnier)
show more ...
|
Revision tags: release/2.0 |
|
#
89730b29 |
| 24-Sep-1994 |
David Greenman <dg@FreeBSD.org> |
Added $Id$
|
#
395b07d1 |
| 05-Sep-1994 |
Bruce Evans <bde@FreeBSD.org> |
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
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>.
show more ...
|
Revision tags: release/1.1.5.1_cvs, release/1.1.0_cvs, release/1.0.0_cvs |
|
#
4a13ab7c |
| 04-Oct-1993 |
J.T. Conklin <jtc@FreeBSD.org> |
Allow expressions like "expr 'ABC' : '^.*$' to work as is done in other expr implementations.
|
#
4cf61aba |
| 15-Sep-1993 |
J.T. Conklin <jtc@FreeBSD.org> |
Fix grammar to eliminate support for unary minus expressions -- they weren't supported, they aren't standard, and they caused expr to dump core.
|
#
55c497bf |
| 17-Aug-1993 |
J.T. Conklin <jtc@FreeBSD.org> |
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
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.
show more ...
|
#
c9fe00dc |
| 22-Jul-1993 |
J.T. Conklin <jtc@FreeBSD.org> |
Update to my latest expr (fixes bugs with comparison and matching operators) Add man page I wrote.
|
#
4ba5f298 |
| 19-Jun-1993 |
Andrew Moore <alm@FreeBSD.org> |
added POSIX regex to expr
|
#
5b81b6b3 |
| 12-Jun-1993 |
Rodney W. Grimes <rgrimes@FreeBSD.org> |
Initial import, 0.1 + pk 0.2.4-B1
|