#
272461 |
|
02-Oct-2014 |
gjb |
Copy stable/10@r272459 to releng/10.1 as part of the 10.1-RELEASE process.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
256281 |
|
10-Oct-2013 |
gjb |
Copy head (r256279) to stable/10 as part of the 10.0-RELEASE cycle.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
230530 |
|
25-Jan-2012 |
charnier |
Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output.
|
#
227369 |
|
08-Nov-2011 |
jilles |
sh: Remove undefined behaviour due to overflow in +/-/* in arithmetic.
With i386 base gcc and i386 base clang, arith_yacc.o remains unchanged.
|
#
223580 |
|
26-Jun-2011 |
jilles |
sh: Include <limits.h> instead of non-standard <sys/limits.h>.
|
#
222386 |
|
27-May-2011 |
jilles |
sh: Remove the "exp" builtin.
The "exp" builtin is undocumented, non-standard and not very useful.
If exp's return value is not used, something like VAR=$(exp EXPRESSION) is equivalent to VAR=$((EXPRESSION)) except that errors in the expression are fatal and quoting special characters is not needed in the latter case.
If exp's return value is used, something like if exp EXPRESSION >/dev/null can be replaced by if [ $((EXPRESSION)) -ne 0 ] with similar differences.
The exp-run showed that "let" is close enough to bash's and ksh's builtin that removing it would break a few ports. Therefore, "let" remains in 9.x.
PR: bin/104432 Exp-run done by: pav (with some other sh(1) changes)
|
#
221463 |
|
04-May-2011 |
jilles |
sh: Apply set -u to variables in arithmetic.
Note that this only applies to variables that are actually used. Things like (0 && unsetvar) do not cause an error.
Exp-run done by: pav (with some other sh(1) changes)
|
#
219306 |
|
05-Mar-2011 |
jilles |
sh: Fix some warnings in code for arithmetic expressions.
Submitted by: eadler
|
#
218626 |
|
12-Feb-2011 |
jilles |
sh: Detect dividing the smallest integer by -1.
This overflows and on some architectures such as amd64 it generates SIGFPE. Generate an error on all architectures.
|
#
218466 |
|
08-Feb-2011 |
jilles |
sh: Import arithmetic expression code from dash.
New features: * proper lazy evaluation of || and && * ?: ternary operator * executable is considerably smaller (8K on i386) because lex and yacc are no longer used
Differences from dash: * arith_t instead of intmax_t * imaxdiv() not used * unset or null variables default to 0 * let/exp builtin (undocumented, will probably be removed later)
Obtained from: dash
|