Denys Vlasenko
|
66139330fc
shell/math: trivial code shrink
|
1 year ago |
Denys Vlasenko
|
3df885abe3
shell/math: fix the order of variable resolution in binops
|
1 year ago |
Denys Vlasenko
|
5febdb1223
shell/math: remove now-unused second_val
|
1 year ago |
Denys Vlasenko
|
46dccd2ec0
shell/math: fix nested ?: and do not parse variables in not-taken branch
|
1 year ago |
Denys Vlasenko
|
a02450ff0b
shell/math: remove a redundant check
|
1 year ago |
Denys Vlasenko
|
8acbf31708
shell/math: document ternary ?: op's weirdness, add code comments
|
1 year ago |
Denys Vlasenko
|
c1d7507a4d
shell/math: fix one name check, other minor cleanups
|
1 year ago |
Denys Vlasenko
|
a4f30f3c70
shell/math: reduce stack usage
|
1 year ago |
Denys Vlasenko
|
d417193cf3
shell: avoid segfault on ${0::0/0~09J}. Closes 15216
|
1 year ago |
Denys Vlasenko
|
1be73dd9ad
shell: fix parsing of $(( (v)++ + NUM ))
|
3 years ago |
Denys Vlasenko
|
d84a604830
shell: fix arithmentic evaluation of "++7" and such (it is + + 7, i.e. 7)
|
3 years ago |
Denys Vlasenko
|
841878e7ee
shell: remove FAST_FUNC from a static function
|
4 years ago |
Denys Vlasenko
|
7427406580
shell: better comments in BASE#nn code
|
5 years ago |
Denys Vlasenko
|
c58d785b9d
ash: fix BASE###nn bashism for bases 36..64
|
5 years ago |
Denys Vlasenko
|
ca1ce4b9fa
ash: fix BASE###nn bashism to accept letter 'digits' for bases > 9
|
5 years ago |
Denys Vlasenko
|
8b35f207bb
shell: move all definitions of strto_arith_t() together
|
5 years ago |
Denys Vlasenko
|
9edd268bad
shell: implement optional "BASE#nnnn" numeric literals
|
5 years ago |
Denys Vlasenko
|
f19e3c1c6c
shell: handle $((NUM++...) like bash does. Closes 10706
|
6 years ago |
Denys Vlasenko
|
95f7953f2c
do not use `a' quoting style in comments
|
7 years ago |
Denys Vlasenko
|
f5add44981
typo fix in comment
|
10 years ago |
Denys Vlasenko
|
8a475def9e
ash,hush: do not segfault on $((2**63 / -1))
|
10 years ago |
Denys Vlasenko
|
1961aea305
move endofname() to libbb
|
11 years ago |
Denys Vlasenko
|
60cb48ca50
whitespace cleanup. no code changes
|
12 years ago |
Denys Vlasenko
|
395b97aeac
shell/math: better comment. no code changes
|
14 years ago |
Denys Vlasenko
|
bed7c81ea2
shell/math: deconvolute and explain ?: handling. Give better error message
|
14 years ago |
Denys Vlasenko
|
063847d6bd
shell/math: return string error indicator, not integer
|
14 years ago |
Denys Vlasenko
|
0eac8ff164
shell/math.c: stop using bss variable
|
14 years ago |
Denys Vlasenko
|
06d44d7dfb
shell/math.c: rename arith_eval_hooks to arith_state, put error code into it
|
14 years ago |
Denys Vlasenko
|
bd14770b0c
shell/math.c: small code shrink; fixed incomprehensible comments
|
14 years ago |
Denys Vlasenko
|
51850c818c
shell: small code shrink
|
14 years ago |