4 ms·
So many better shells! I stay with bash because it's the standard, but it sure would be nice if everyone could switch at the same time. I don't see infix math
by eternityforest 2y ago
So many better shells! I stay with bash because it's the standard, but it sure would be nice if everyone could switch at the same time.
I don't see infix math though, which is one thing I'd really like to have in a shell, although maybe that better done with a one letter alias to Python or the like.
- mst 2y agoThe examples for the math functions (https://elv.sh/ref/math.html https://elv.sh/ref/math.html) include 1/2 as an input so infix math appears to be there (I'm undercaffeinated so haven't found the correct doc page to describe it, only proof of its existence, but y'know, it's a start ;)
- xiaq 2y agoActually 1/2 is there because Elvish supports rational numbers, unfortunately there's no infix math. (Elvish supports arbitrary-precision integers and rationals.)