3 ms·
POSIX.1-2017 describes the `dc` program as "excluded" from the standard; check https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap04.html https://
by c0l0 6y ago
POSIX.1-2017 describes the `dc` program as "excluded" from the standard; check https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu_chap04.html https://pubs.opengroup.org/onlinepubs/9699919799/xrat/V4_xcu... for details.
Many GNU/Linux distros (at least Debian and RHEL) install neither `dc` nor `bc` by default, afaik.
- em500 6y agoI stand corrected, only bc is included in POSIX.
- akira2501 6y agoGentoo doesn't include it in the common 'stage3' tarball, either. Which is annoying because it's actually required to compile the linux kernel.
- yjftsjthsd-h 6y ago> Many GNU/Linux distros (at least Debian and RHEL) install neither `dc` nor `bc` by default, afaik. Yeah, I recently wrote a script that used bc and immediately discovered that it didn't work on at least Arch Linux (and I think others, although I only seem to have added it to the Arch ansible config...); conveniently, I only needed the most trivial of calculations, so I just shifted to awk, which has better default availability.