|
|
|
|
|
by faho
2838 days 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. |
|
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