Public bug reported: in Ubuntu Xenial : $ lsb_release -rdc ; echo 1 1 + p q | dc ; echo $? Description: Ubuntu 16.04.4 LTS Release: 16.04 Codename: xenial 2 0
in Ubuntu Bionic : $ lsb_release -rdc ; echo 1 1 + p q | dc ; echo $? Description: Ubuntu 18.04.1 LTS Release: 18.04 Codename: bionic 2 1 This change causes some scripts using 'dc' to fail, most importantly, 'dphys-swapfile' which for some ironic reason uses 'dc' instead of 'echo $((...))' for its calculations. ** Affects: bc (Ubuntu) Importance: Undecided Status: New ** Affects: dphys-swapfile (Ubuntu) Importance: Undecided Status: New ** Also affects: dphys-swapfile (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1788681 Title: changed exit code for 'dc' in Ubuntu Bionic To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bc/+bug/1788681/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs