summaryrefslogtreecommitdiff
path: root/bin/expr
AgeCommit message (Collapse)Author
2018-03-31Fix overflows while handling 64 bit integers.Tobias Stoeckmann
Based on FreeBSD's expr and NetBSD's old regression test suite. with input by and ok schwarze
2017-08-16Explicitly say that expr(1) handles decimal integers only, as mandatedIngo Schwarze
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@
2017-07-09remove redundant variable declarations in Makefiles, since those areMarc Espie
the default. okay millert@
2016-10-19Delete useless setlocale(3) in src/bin/.Ingo Schwarze
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@.
2016-01-07need to increase INT_MAX to 64 bits too. from Nathan HolsteinTed Unangst
2016-01-06use int64_t for arithmetic. 64 bits ought to be enough for anyone.Ted Unangst
ok deraadt millert schwarze
2015-12-29fix exit status on pledge(2) failure.Gleydson Soares
OK tb@ jsg@
2015-10-09Change all tame callers to namechange to pledge(2).Theo de Raadt
2015-10-04expr can use tame "stdio"Theo de Raadt
ok semarie
2015-08-11avoid casts of malloc() if stdlib.h is presentTheo de Raadt
2015-01-16Properly escape punctuation when given as an argument to a macro;Ingo Schwarze
this was the only mandoc warning in src/bin.
2014-02-23add HISTORY and AUTHORS;Ingo Schwarze
my research triggered by a question from Adam Moskowitz via Kirk McKusick; feedback and ok jmc@
2013-11-21add unsigned char casts for specific calls to ctype.h macros.Theo de Raadt
ok guenther step
2013-03-28Don't die with SIGFPE on INT_MIN / -1 or % -1. Instead make INT_MIN /Nicholas Marriott
-1 == INT_MIN and % -1 == 0. ok matthew deraadt
2010-09-03remove some unneccessary macros and put EXAMPLES in a more standard format;Jason McIntyre
2010-09-03add an EXIT STATUS section for /bin;Jason McIntyre
2010-07-22move exit returns blurb out of DIAGNOSTICS; from daniel dickmanJason McIntyre
2009-02-08bump the posix reference in STANDARDS to IEEE Std 1003.1-2008, with a fewJason McIntyre
updates to follow;
2009-01-22document regexp supportMarc Espie
okay millert@, jmc@
2007-05-31convert to new .Dd format;Jason McIntyre
2007-05-29- consistent STANDARDS blurbJason McIntyre
- note which options are extensions to POSIX discussed w/ deraadt otto millert
2006-06-21handle -- as POSIX requires; from kili@outback.escape.de; ok ottoTheo de Raadt
2005-11-12use asprintf instead; dhill@mindcry.orgTheo de Raadt
2003-12-22document matching the empty string;Jason McIntyre
started by vax at carolina dot rr dot com (NetBSD PR 23810), resolved by jdolecek@netbsd (rev. 1.24); ok millert@
2003-06-11ansification, art okTheo de Raadt
2003-05-14add prototypes; ok millert@ w/ 'static', 'no static', deraadt@Jason Peel
2003-04-15use a variableTheo de Raadt
2003-03-12more .LiTheo de Raadt
2002-11-14use $ or # before commands in examplesTheo de Raadt
2002-07-04ansiTheo de Raadt
2002-06-09knfTodd T. Fries
2002-02-16Part one of userland __P removal. Done with a simple regexp with some minor ↵Todd C. Miller
hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
2001-11-13o) start new sentence on a new line;Mike Pechkin
o) don't use .Pp before/after .Ss; o) wrap long lines; o) fix bogus .Xr usage; millert@ ok;
2000-10-18Add some rudimentary EXAMPLES sections and standardize the way we displayAaron Campbell
existing EXAMPLES sections.
2000-03-17Remove hard sentence breaks.Aaron Campbell
1999-09-23Formatting fixes. Also, add a SEE ALSO section and Xr test(1).Aaron Campbell
1999-06-04start to remove non-escaped trailing whitespace, it can confuse troff; pjanzen@Aaron Campbell
1998-12-15always give .Nm macros an argument in SYNOPSIS sections; krw@tcn.netAaron Campbell
1998-11-28start killing redundant .Nm macro arguments (mandoc ``remembers'' the first oneAaron Campbell
it's given)
1998-09-14First complete sweep of man pages, bin/. Command/function names previouslyAaron Campbell
(incorrectly) capatilized are fixed. Comma splices, hyphenations, SYNOPSIS cleanups, other miscellaneous typos.
1997-11-13let "expr a : /" work. Mark the next token after the match operator as aTheo de Raadt
pattern, causing the lexical analyzer to short-circuit around operator parsing. my fix to netbsd pr#4187, augustss@cs.chalmers.se
1997-09-21$OpenBSD$Theo de Raadt
1997-09-01i am bored enough to fix terminal space/tab ugliesTheo de Raadt
1997-08-19Note return code >2 if malloc fails (POSIX spec behavior).denny
1997-08-19POSIX 1003.2: exit code is 3 if memory allocation fails, 2 if expr invalid.denny
1997-07-23tabifykstailey
1996-12-14-Wall'ing.Michael Shalayeff
1996-09-15sprintf -> snprintf paranoiaTodd C. Miller
1996-06-23update rcsidTheo de Raadt
1996-06-10handle locale being incorrectTheo de Raadt