You need to quote your math expression if it contains
characters that the shell would expand otherwise:
> math '21 * 2'
42
Cheers,
--Torsten
On 6 Sep 2012, at 16:27, Wai Yan Pong wrote:
> What is the syntax for multiplying two numbers using the "math"
> function in fish?
>
> Type math 1+1 at the prompt will give you 2, but neither * nor x seems
> to work for multiplication and I couldn't find any hints from the
> documentation.
>
> Thanks in advance
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest in
> malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
--
| Prof. Dr. Torsten Grust
| Database Systems — Universität Tübingen (Germany)
| [email protected]
| db.inf.uni-tuebingen.de
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users