summaryrefslogtreecommitdiffstats
path: root/bin/expr (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix overflows while handling 64 bit integers.tobias2018-03-311-47/+52
| | | | | | Based on FreeBSD's expr and NetBSD's old regression test suite. with input by and ok schwarze
* Explicitly say that expr(1) handles decimal integers only, as mandatedschwarze2017-08-161-7/+8
| | | | | | by POSIX and as implemented in our utility; triggered by a question from Alessandro DE LAURENZIS <just22 at atlantide dot t28 dot net> on misc@. OK millert@
* remove redundant variable declarations in Makefiles, since those areespie2017-07-091-2/+1
| | | | | | the default. okay millert@
* Delete useless setlocale(3) in src/bin/.schwarze2016-10-191-23/+9
| | | | | | Minor cleanup while here: return from main, static void __dead usage, etc. Based on a patch from Jan Stary <hans at stare dot cz>. Feedback and OK tb@, OK millert@.
* need to increase INT_MAX to 64 bits too. from Nathan Holsteintedu2016-01-071-3/+4
|
* use int64_t for arithmetic. 64 bits ought to be enough for anyone.tedu2016-01-061-12/+12
| | | | ok deraadt millert schwarze
* fix exit status on pledge(2) failure.gsoares2015-12-291-2/+2
| | | | OK tb@ jsg@
* Change all tame callers to namechange to pledge(2).deraadt2015-10-091-3/+3
|
* expr can use tame "stdio"deraadt2015-10-041-1/+5
| | | | ok semarie
* avoid casts of malloc() if stdlib.h is presentderaadt2015-08-111-3/+3
|
* Properly escape punctuation when given as an argument to a macro;schwarze2015-01-161-3/+3
| | | | this was the only mandoc warning in src/bin.
* add HISTORY and AUTHORS;schwarze2014-02-231-2/+20
| | | | | my research triggered by a question from Adam Moskowitz via Kirk McKusick; feedback and ok jmc@
* add unsigned char casts for specific calls to ctype.h macros.deraadt2013-11-211-2/+2
| | | | ok guenther step
* Don't die with SIGFPE on INT_MIN / -1 or % -1. Instead make INT_MIN /nicm2013-03-281-3/+8
| | | | | | -1 == INT_MIN and % -1 == 0. ok matthew deraadt
* remove some unneccessary macros and put EXAMPLES in a more standard format;jmc2010-09-031-11/+14
|
* add an EXIT STATUS section for /bin;jmc2010-09-031-4/+4
|
* move exit returns blurb out of DIAGNOSTICS; from daniel dickmanjmc2010-07-221-17/+17
|
* bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewjmc2009-02-081-3/+3
| | | | updates to follow;
* document regexp supportespie2009-01-221-4/+5
| | | | okay millert@, jmc@
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* - consistent STANDARDS blurbjmc2007-05-291-3/+4
| | | | | | - note which options are extensions to POSIX discussed w/ deraadt otto millert
* handle -- as POSIX requires; from kili@outback.escape.de; ok ottoderaadt2006-06-211-1/+5
|
* use asprintf instead; dhill@mindcry.orgderaadt2005-11-121-7/+3
|
* document matching the empty string;jmc2003-12-221-1/+17
| | | | | | | started by vax at carolina dot rr dot com (NetBSD PR 23810), resolved by jdolecek@netbsd (rev. 1.24); ok millert@
* ansification, art okderaadt2003-06-111-2/+2
|
* add prototypes; ok millert@ w/ 'static', 'no static', deraadt@jsyn2003-05-141-2/+17
|
* use a variablederaadt2003-04-151-3/+5
|
* more .Lideraadt2003-03-121-4/+4
|
* use $ or # before commands in examplesderaadt2002-11-141-4/+4
|
* ansideraadt2002-07-041-29/+17
|
* knftodd2002-06-091-3/+3
|
* Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.millert2002-02-161-2/+2
|
* o) start new sentence on a new line;mpech2001-11-131-2/+3
| | | | | | | | o) don't use .Pp before/after .Ss; o) wrap long lines; o) fix bogus .Xr usage; millert@ ok;
* Add some rudimentary EXAMPLES sections and standardize the way we displayaaron2000-10-181-8/+7
| | | | existing EXAMPLES sections.
* Remove hard sentence breaks.aaron2000-03-171-2/+3
|
* Formatting fixes. Also, add a SEE ALSO section and Xr test(1).aaron1999-09-231-16/+23
|
* start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@aaron1999-06-041-15/+15
|
* always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netaaron1998-12-151-2/+2
|
* start killing redundant .Nm macro arguments (mandoc ``remembers'' the first oneaaron1998-11-281-6/+6
| | | | it's given)
* First complete sweep of man pages, bin/. Command/function names previouslyaaron1998-09-141-6/+7
| | | | | (incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS cleanups, other miscellaneous typos.
* let "expr a : /" work. Mark the next token after the match operator as aderaadt1997-11-131-14/+17
| | | | | pattern, causing the lexical analyzer to short-circuit around operator parsing. my fix to netbsd pr#4187, augustss@cs.chalmers.se
* $OpenBSD$deraadt1997-09-211-2/+1
|
* i am bored enough to fix terminal space/tab ugliesderaadt1997-09-011-2/+2
|
* Note return code >2 if malloc fails (POSIX spec behavior).denny1997-08-191-1/+3
|
* POSIX 1003.2: exit code is 3 if memory allocation fails, 2 if expr invalid.denny1997-08-191-4/+4
|
* tabifykstailey1997-07-231-20/+20
|
* -Wall'ing.mickey1996-12-141-3/+7
|
* sprintf -> snprintf paranoiamillert1996-09-151-2/+2
|
* update rcsidderaadt1996-06-233-0/+3
|
* handle locale being incorrectderaadt1996-06-101-5/+2
|