summaryrefslogtreecommitdiffstats
path: root/bin/sh/arith_yylex.c
Commit message (Collapse)AuthorAgeFilesLines
* sh: Reject ++ and -- in arithmetic.jilles2013-08-241-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.charnier2012-01-251-1/+1
|
* Remove unnecessary cast.stefanf2011-03-071-1/+1
| | | | Reviewed by: jilles
* sh: Fix some warnings in code for arithmetic expressions.jilles2011-03-051-1/+3
| | | | Submitted by: eadler
* sh: Import arithmetic expression code from dash.jilles2011-02-081-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
OpenPOWER on IntegriCloud