summaryrefslogtreecommitdiffstats
path: root/bin/expr/expr.1
Commit message (Collapse)AuthorAgeFilesLines
* Minor mdoc nits.joel2012-05-131-1/+1
|
* Whitespace cleanup:gjb2012-02-251-2/+4
| | | | | | | | | o Wrap sentences on to new lines o Cleanup trailing whitespace Found with: textproc/igor MFC after: 1 week X-MFC-With: r232157
* Fix various typos in manual pages.gjb2012-02-251-3/+3
| | | | | | Submitted by: amdmi3 PR: 165431 MFC after: 1 week
* Make /bin/expr support 64bit numeric range and range checks by default,se2011-07-091-25/+57
| | | | | | | | | | | | | | | | | | | | | | | | again. This brings back the behaviour of expr in FreeBSD-4, which had been reverted due to an assumed incompatbility with POSIX.1 for FreeBSD-5. This issue has been discussed in the freebsd-standards list, and the consensus was, that POSIX.1 is in fact not violated by this extension, since it affects only cases of POSIX undefined behaviour (overflow of signed long). Other operating systems did upgrade their versions of expr to support 64bit range, after it had been initially brought to FreeBSD. They have used it for a decade without problems, meanwhile. The -e option is retained, but it will only select less strict checking of numeric parameters (leading white-space, leading "+" are allowed and skipped, an empty string is considered to represent 0 in numeric context.) The call of check_utility_compat() as a means of establishing backwards compatibility with FreeBSD-4 is considered obsolete, but preserved in this commit. It is expected to be removed in a later revision of this file. Reviewed by: bde, das, jilles MFC after: 2 month (those parts that do not violate POLA)
* expr(1): Add sh(1) versions of examples, remove an incorrect example.jilles2010-09-091-10/+21
| | | | | | | | | | The three examples are better done using sh(1) itself these days. The example expr -- "$a" : ".*" is incorrect in the general case, as "$a" may be an operator. MFC after: 2 weeks
* Fix markup.ru2007-03-041-5/+8
|
* Add the new standard EXIT STATUS section where appropriate.ru2005-01-161-12/+12
| | | | Sort standard sections in the (documented) preferred order.
* Removed harmful empty lines that crept in during the copyrightru2005-01-131-1/+0
| | | | header update.
* /*- or .\"- or #- to begin license clauses.imp2005-01-101-1/+2
|
* Remove BUGS section that talked about missing multibyte character support.tjr2004-07-121-5/+1
| | | | We have support now that the regular expression routines do.
* Document missing multibyte character handling in utilities specifiedtjr2004-07-031-1/+5
| | | | by POSIX.
* mdoc(7) police:ru2002-11-261-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.ru2002-11-251-3/+3
| | | | Approved by: re
* Create a small library function, check_utility_compat(3), to determinewollman2002-10-281-31/+32
| | | | | | | | 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.ru2002-05-291-11/+11
|
* EXPR_COMPAT should imply -e, since there is no way to specify it otherwise,wollman2002-05-111-1/+17
| | | | and -e reflects the historic behavior of FreeBSD's expr.
* The response to my POSIX interpretation request says that `expr'wollman2002-05-101-16/+23
| | | | | | 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 optionwollman2002-04-221-2/+16
| | | | parsing for compatibility with old implementations.
* Typo (if => of).wollman2002-03-221-1/+1
|
* Add a word of caution about integer arithmetic range and overflow detection.wollman2002-03-221-0/+6
|
* Fix a few formatting brainos and make the formatting of the EXAMPLESwollman2002-03-221-6/+9
| | | | section somewhat clearer.
* Make expr POSIX-compliant, and fix some bugs. Specifically:wollman2002-03-221-16/+97
| | | | | | | | | | | | | - 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.
* Remove whitespace at EOL.dd2001-07-151-14/+14
|
* Prepare for mdoc(7)NG.ru2000-12-151-1/+1
|
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* $Id$ -> $FreeBSD$peter1999-08-271-1/+1
|
* 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
|
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | 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.
* Fix some spelling errors.mpp1996-01-291-5/+5
|
* Fix gross spelling and typographical errors pointed out by Keith Bostic.jkh1994-04-241-2/+2
|
* Document the new, less restrictive, behavior of the matching operator.jtc1993-10-041-14/+15
|
* Update to my latest expr (fixes bugs with comparison and matching operators)conklin1993-07-211-0/+131
Add man page I wrote.
OpenPOWER on IntegriCloud