Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sh: Reject ++ and -- in arithmetic. | jilles | 2013-08-24 | 1 | -0/+4 |
| | | | | | | | | | | POSIX does not require ++ and -- in arithmetic. It is probably more useful to reject them than to treat ++x and --x as x silently. Note that the behaviour of increment and decrement can be obtained via (x+=1), ((x+=1)-1), (x-=1) and ((x-=1)+1). PR: bin/176444 | ||||
* | Add prototypes, ANSIfy functions definitions to reduce WARNS=6 output. | charnier | 2012-01-25 | 1 | -1/+1 |
| | |||||
* | Remove unnecessary cast. | stefanf | 2011-03-07 | 1 | -1/+1 |
| | | | | Reviewed by: jilles | ||||
* | sh: Fix some warnings in code for arithmetic expressions. | jilles | 2011-03-05 | 1 | -1/+3 |
| | | | | Submitted by: eadler | ||||
* | sh: Import arithmetic expression code from dash. | jilles | 2011-02-08 | 1 | -0/+244 |
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 |