News for hackers. Stuff that matters.
Re:Unix Shell Programming: The Next 50 Years [pdf] by actinium226 on Friday June 04, 2021 @12:44PM (#27395524)
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'
Re:Unix Shell Programming: The Next 50 Years [pdf] by techbio on Friday June 04, 2021 @02:49PM (#27397485)
It is often easier to reach for my calculator, calculator app, or the address bar, to do arithmetic, than:

      echo "2 + 2" | bc -l
Re:Unix Shell Programming: The Next 50 Years [pdf] by kps on Friday June 04, 2021 @12:52PM (#27395651)
ksh 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.)