The bug is not in bc/dc (which documented their change of behavior).
It is in dphys-swapfile script which used to exit 'dc' by 'q' command.
The proper fix, in my view, would still be to use arithmetic substitution $((...)) provided by most modern shells, and make dphys-swapfile independent from 'dc' at all.
The bug is not in bc/dc (which documented their change of behavior).
It is in dphys-swapfile script which used to exit 'dc' by 'q' command.
The proper fix, in my view, would still be to use arithmetic substitution $((...)) provided by most modern shells, and make dphys-swapfile independent from 'dc' at all.