Re: [Fish-users] math in fish
It will work if you quote it: $ math '2*2' 4 All the best, Jon On 6 September 2012 15:27, Wai Yan Pong wypon...@gmail.com 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 Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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 Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] math in fish
Torsten and Jon, thank you both. If you type help, all you get is the example math 1+1 (without quotes). Hum... so the example is misleading and the syntax is inconsistent. I hope these can be fixed in the next version. --Pong On Thu, Sep 6, 2012 at 7:33 AM, Jon Clayden jon.clay...@gmail.com wrote: It will work if you quote it: $ math '2*2' 4 All the best, Jon On 6 September 2012 15:27, Wai Yan Pong wypon...@gmail.com 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 Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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 Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users
Re: [Fish-users] math in fish
The syntax is consistent if you see that *math *expects one parameter. But I agree the example could be clearer. On Thu, Sep 6, 2012 at 9:56 AM, Wai Yan Pong wypon...@gmail.com wrote: Torsten and Jon, thank you both. If you type help, all you get is the example math 1+1 (without quotes). Hum... so the example is misleading and the syntax is inconsistent. I hope these can be fixed in the next version. --Pong On Thu, Sep 6, 2012 at 7:33 AM, Jon Clayden jon.clay...@gmail.com wrote: It will work if you quote it: $ math '2*2' 4 All the best, Jon On 6 September 2012 15:27, Wai Yan Pong wypon...@gmail.com 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 Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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 Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users -- 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 Fish-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fish-users