changed exit code for 'dc' in Ubuntu Bionic
Bug #1788681 reported by
Wladimir Mutel
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bc (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
dphys-swapfile (Ubuntu) |
Fix Released
|
Undecided
|
Axel Beckert |
Bug Description
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.
Changed in dphys-swapfile (Ubuntu): | |
assignee: | nobody → Axel Beckert (xtaran) |
status: | Confirmed → In Progress |
Changed in dphys-swapfile (Ubuntu): | |
status: | In Progress → Fix Committed |
To post a comment you must log in.
same is reproduced when you run 'dc', enter into it some expression ending with 'p q', and examining its exit code with 'echo $?' afterwards