Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix markup. | ru | 2007-03-04 | 1 | -5/+8 |
| | |||||
* | Correct typos containing my login name (plus one more in expr.y). | ceri | 2007-02-18 | 1 | -2/+2 |
| | | | | Found courtesy of a recursive grep in the wrong directory. | ||||
* | Add the new standard EXIT STATUS section where appropriate. | ru | 2005-01-16 | 1 | -12/+12 |
| | | | | Sort standard sections in the (documented) preferred order. | ||||
* | Removed harmful empty lines that crept in during the copyright | ru | 2005-01-13 | 1 | -1/+0 |
| | | | | header update. | ||||
* | /*- or .\"- or #- to begin license clauses. | imp | 2005-01-10 | 2 | -2/+4 |
| | |||||
* | Remove BUGS section that talked about missing multibyte character support. | tjr | 2004-07-12 | 1 | -5/+1 |
| | | | | We have support now that the regular expression routines do. | ||||
* | Document missing multibyte character handling in utilities specified | tjr | 2004-07-03 | 1 | -1/+5 |
| | | | | by POSIX. | ||||
* | Get this area compiling with the highest WARNS= that it works with. | markm | 2003-06-13 | 1 | -2/+0 |
| | | | | | | | Obsolete WFORMAT= junk also removed where possible. OK'ed by: obrien Tested on: sparc64, alpha, i386 | ||||
* | mdoc(7) police: | ru | 2002-11-26 | 1 | -1/+1 |
| | | | | | | | | Revert to using the .Tn POSIX and .Tn ANSI instead of \*[Px] and \*[Ai] strings; using these strings is unsafe in troff mode, as they include a change in a font size. Approved by: re | ||||
* | mdoc(7) police: markup fixes. | ru | 2002-11-25 | 1 | -3/+3 |
| | | | | Approved by: re | ||||
* | Create a small library function, check_utility_compat(3), to determine | wollman | 2002-10-28 | 2 | -32/+34 |
| | | | | | | | | whether a named utility should behave in FreeBSD 4.x-compatible mode or in a standard mode (default standard). The configuration is done malloc(3)-style, with either an environment variable or a symlink. Update expr(1) to use this new interface. | ||||
* | mdoc(7) police: markup nits. | ru | 2002-05-29 | 1 | -11/+11 |
| | |||||
* | EXPR_COMPAT should imply -e, since there is no way to specify it otherwise, | wollman | 2002-05-11 | 2 | -1/+18 |
| | | | | and -e reflects the historic behavior of FreeBSD's expr. | ||||
* | The response to my POSIX interpretation request says that `expr' | wollman | 2002-05-10 | 2 | -46/+88 |
| | | | | | | is required to be oblivious to overflow and to use the data type `long'. (Division by zero is undefined in ISO C so it's still OK to check for it here.) Add a new `-e' flag to get the old, more useful behavior. | ||||
* | Provide an environment variabloe, EXPR_COMPAT, which disables option | wollman | 2002-04-22 | 2 | -10/+27 |
| | | | | parsing for compatibility with old implementations. | ||||
* | Disable -Werror when building -- the old version of gcc used on IA32 can't | wollman | 2002-03-23 | 1 | -0/+2 |
| | | | | deal with C99 formats. | ||||
* | Typo (if => of). | wollman | 2002-03-22 | 1 | -1/+1 |
| | |||||
* | Add a word of caution about integer arithmetic range and overflow detection. | wollman | 2002-03-22 | 1 | -0/+6 |
| | |||||
* | Fix a few formatting brainos and make the formatting of the EXAMPLES | wollman | 2002-03-22 | 1 | -6/+9 |
| | | | | section somewhat clearer. | ||||
* | Make expr POSIX-compliant, and fix some bugs. Specifically: | wollman | 2002-03-22 | 2 | -104/+215 |
| | | | | | | | | | | | | | - 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. | ||||
* | o __P has been reoved | imp | 2002-02-02 | 1 | -85/+56 |
| | | | | | | | | | | | | 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) | ||||
* | Default to WARNS=2. Binary builds that cannot handle this must explicitly | obrien | 2001-12-04 | 1 | -1/+0 |
| | | | | | | set WARNS=0. Reviewed by: mike | ||||
* | Remove whitespace at EOL. | dd | 2001-07-15 | 1 | -14/+14 |
| | |||||
* | Fix warnings to compile with WARNS=2 on i386 and alpha | kris | 2001-05-26 | 2 | -27/+43 |
| | | | | Reviewed by: bde | ||||
* | Prepare for mdoc(7)NG. | ru | 2000-12-15 | 1 | -1/+1 |
| | |||||
* | mdoc(7) police: use the new features of the Nm macro. | ru | 2000-11-20 | 1 | -1/+1 |
| | |||||
* | Add overflow tests | se | 2000-07-22 | 1 | -3/+76 |
| | |||||
* | Extend numeric operations to support 64 bit numbers. | se | 2000-07-10 | 1 | -30/+29 |
| | |||||
* | $Id$ -> $FreeBSD$ | peter | 1999-08-27 | 3 | -3/+3 |
| | |||||
* | Add cross-references to test(1) and expr(1) respectively. | jkoshy | 1998-12-18 | 1 | -1/+4 |
| | | | | | PR: docs/9111 Submitted by: Josh Gilliam <josh@quick.net> | ||||
* | Correct use of .Nm. | charnier | 1998-05-13 | 1 | -11/+11 |
| | |||||
* | Simplified using new yacc rules and by not generating y.tab.h. | bde | 1998-05-04 | 1 | -10/+4 |
| | |||||
* | Revert $FreeBSD$ to $Id$ | peter | 1997-02-22 | 3 | -3/+3 |
| | |||||
* | Make the long-awaited change from $Id$ to $FreeBSD$ | jkh | 1997-01-14 | 3 | -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 changes | phk | 1996-06-02 | 1 | -2/+6 |
| | |||||
* | Use default yacc rule. | phk | 1996-05-30 | 1 | -7/+3 |
| | |||||
* | ``mv'' -> ``mv -f'' | wosch | 1996-05-07 | 1 | -2/+2 |
| | | | | | ``rm'' -> ``rm -f'' so mv/rm may not ask for confirmation if you are not root | ||||
* | Fix some spelling errors. | mpp | 1996-01-29 | 1 | -5/+5 |
| | |||||
* | Fix my own brokeness for the colon operator, when one of the arguments | joerg | 1995-11-18 | 1 | -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: any | joerg | 1995-08-04 | 1 | -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. | rgrimes | 1995-05-30 | 1 | -2/+2 |
| | | | | Reviewed by: phk | ||||
* | You will find enclosed some changes to make gcc -Wall more happy in | joerg | 1995-03-19 | 1 | -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$ | dg | 1994-09-24 | 2 | -1/+2 |
| | |||||
* | Explicitly include <sys/types.h> before including <regex.h>. This is | bde | 1994-09-05 | 1 | -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. | jkh | 1994-04-24 | 1 | -2/+2 |
| | |||||
* | Take -lgnuregex back out. Linking with it causes 'make install' to fail. | rich | 1994-02-03 | 1 | -2/+0 |
| | |||||
* | Document the new, less restrictive, behavior of the matching operator. | jtc | 1993-10-04 | 1 | -14/+15 |
| | |||||
* | Allow expressions like "expr 'ABC' : '^.*$' to work as is done in other | jtc | 1993-10-04 | 1 | -9/+3 |
| | | | | expr implementations. | ||||
* | Fix grammar to eliminate support for unary minus expressions -- they | jtc | 1993-09-14 | 1 | -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, | jtc | 1993-08-17 | 1 | -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. |