3 ms·
>I wrote a small blog post about it here [0] I work on fish, and one of the things that the upcoming fish 3.0 contains is a new `math` builtin (previously we s
by faho 8y ago
>I wrote a small blog post about it here [0]
I work on fish, and one of the things that the upcoming fish 3.0 contains is a new `math` builtin (previously we shipped a function of that name that just wrapped `bc`).
So your math expressions here are interesting to me, because they work in math (with the caveat that `` is still the symbol for globbing, so it needs to be quoted or escaped):
$ math 0x113e8b3
18081971
$ math '719 * 114679'
82454201
Adding them to the core syntax carries backward-compatibility questions and also isn't really what fish is about.
- anreekoh 8y agoThe benefits of xonsh are more than just the quick math, but I'm glad fish is getting something like this. I've had a Python script that does math for me, something like this [0] I do think something like a Python shell is the best solution (for me), however, simply because of the ease of use with modifying the current state of the shell (environment variables, etc). [0] https://gist.github.com/wackywendell/919042f19ab6932447df https://gist.github.com/wackywendell/919042f19ab6932447df