This version fixes a regression with regard to tradtional behavior of the non-standard FreeBSD option "-e". In the previous version "-e quit" caused bc to exit before any computations had been performed, since all -e option parameters were concatenated and parsed as a whole, with quit causing the program to exit as soon as it was parsed. This version parses and executes commands passed with -e one by one and only exits after all prior commands have been executed. This commit is not a SVN merge, since the vendor import had been performed after the import to contrib. Instead the contents of contrib/bc has been removed and the new version is copied over unchanged from vendor/bc/dist.
38 lines
961 B
Plaintext
38 lines
961 B
Plaintext
0
|
|
-1
|
|
1
|
|
0
|
|
3
|
|
-7
|
|
-12845975916483
|
|
2874519803456326214611
|
|
9000000000000000000000000000000000000001
|
|
1
|
|
9000000000000000000000000000000000000000.000000000000000000000000000\
|
|
00000001
|
|
.0000000000000000000000000000000001
|
|
9999999999999999999999999999999999999999.999999999999999999999999999\
|
|
99999999999999999999999999999999999999999999999999999999999
|
|
10000000000000000000000000000000000000000.99999999999999999999999999\
|
|
999999999999999999999999999999999999999999999999999999999999
|
|
10000000000000000000000000000000000000000.00000000009999999999999999\
|
|
99999999999999999999999999999999999999999999999999
|
|
-8
|
|
-182934721309467230894628759280719690
|
|
1245723576605103923392087218483
|
|
-3455919355
|
|
2354768922.07654231707
|
|
24055908741.876523177
|
|
-1879234637.082765130766
|
|
.0540410979106
|
|
.8091148336535
|
|
-124765829345.3602790000102
|
|
-10548353126734.1621370644
|
|
94875394587622.85102408852693655
|
|
48667720255646230.89000073530825656433
|
|
-2038581196
|
|
-2351674834
|
|
525898
|
|
6
|
|
-2189370304999.1877242
|