4 ms·
I'm surprised you didn't mention math. It's astounding to me how fragile it is to add 2 and 2 in the shell. And forget about floating point numbers. Anytime I n
by actinium226 5y ago
I'm surprised you didn't mention math. It's astounding to me how fragile it is to add 2 and 2 in the shell. And forget about floating point numbers. Anytime I need basic math in the shell I reach for 'python -c'
- kps 5y agoksh arithmetic includes floating point. Sadly bash made it to the extinguish step before embracing and extending that far. (Compound variables and getopts are the other big omissions.)
- techbio 5y agoIt is often easier to reach for my calculator, calculator app, or the address bar, to do arithmetic, than: echo "2 + 2" | bc -l