• Stable 5.1.0 2b8d00952f

    Release 5.1.0

    gavin released this 9 months ago | 0 commits to master since this release

    This is a production release with some fixes and new features.

    • Fixed a bug where an if statement without an else before defining a function caused an error.
    • Fixed a bug with the bc banner and -q.
    • Fixed a bug on Windows where files were not read correctly.
    • Added a command-line flag (-z) to make bc and dc print leading zeroes on numbers -1 < x < 1.
    • Added four functions to lib2.bc (plz(), plznl(), pnlz(), and pnlznl()) to allow printing numbers with or without leading zeros, despite the use of -z or not.
    • Added builtin functions to query global state like line length, global stacks, and leading zeroes.
    • Added a command-line flag (-L) to disable wrapping when printing numbers.
    • Improved builds on Windows.
    $ sha512sum bc-5.1.0.tar.xz
    026e1ba5a8223b80cb8dc6b3a5827d4e1bd0f1708431bbbef43fda2f33c7626785b9ea662f166ea7a2ad0fe56e33918b09565b741d1085613676099ac3291a06  bc-5.1.0.tar.xz
    
    $ sha256sum bc-5.1.0.tar.xz
    c2783a17ebe1ece88b1fce6f6d51d501a8ce1b6a24f11857503fd500f31397e0  bc-5.1.0.tar.xz
    
    $ stat -c '%s  %n'
    433872  bc-5.1.0.tar.xz
    
    $ sha512sum bc-5.1.0.tar.xz.sig
    90d5ef3ce0c902a68f3db64c7f44fc670d1ff39e1a429ab90240f54d285315aeb5569bba20223be5b5b423941f19c328d87730e20124ae0046bf1ef9ecb8011e  bc-5.1.0.tar.xz.sig
    
    $ sha256sum bc-5.1.0.tar.xz.sig
    dea566ac55e096d913e094ff07e62932b69c230d81d3cdc4dec27ef9b96a0dd1  bc-5.1.0.tar.xz.sig
    
    $ stat -c '%s  %n'
    662  bc-5.1.0.tar.xz.sig
    
    $ sha512sum windows.zip
    b25d61dc7c9c95f5ba58d21bca48f673f15f3f271eeacfab100448a09f8a013a08b8498f6d6621d85b5bea815f11ab85f410d3c8da3afc2c24ffc466a2c811a2  windows.zip
    
    $ sha256sum windows.zip
    f8ba58d39c9c2ff280f04e9ad586b16d5bb3a3ef09d175802ce3f9ef37f58190  windows.zip
    
    $ stat -c '%s  %n'
    3530115  windows.zip
    
    $ sha512sum windows.zip.sig
    0bbefbd0ebe3cf01ecd15bd9eedab0f7c372dd6f0a5f8cdde452d8f2d66d82d0c5980ed19a6e4ebf3967a206306ab39876ecdd3d5af3fe7a273d7e41e0a3041f  windows.zip.sig
    
    $ sha256sum windows.zip.sig
    d31b47de069575b4549945ab7acb62a5199bc0ea9937220c9be7cf64fae97a9e  windows.zip.sig
    
    $ stat -c '%s  %n'
    662  windows.zip.sig
    
    Downloads