Re: [Fish-users] math in fish

2012-09-06 Thread Jon Clayden
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] Copying and pasting long commands

2012-08-23 Thread Jon Clayden
Thanks for the responses, and for the suggestions.

Surely it would be possible, however, for the shell to ignore the 
ellipsis/newline sequence, at the very least? Rewriting the command to remove 
it would be better still, but perhaps that's more tricky.

All the best,
Jon


On 23 Aug 2012, at 07:14, Maxim Gonchar gma...@gmail.com wrote:

 You can also bind some key to save the current commandline:
 bind \ey 'commandline | pbcopy'
 
 Maxim
 
 On Thu, 23 Aug 2012 08:12:41 +0400, Kevin Ballard ke...@sb.org wrote:
 
 Copying  Pasting is a terminal-level thing. You can only copy the actual 
 text that's rendered on the terminal. So yes, you're going to get the 
 ellipsis/newline as well. Sadly, there's no avoiding that.
 
 However, you could work around this by piping text to `pbcopy`. If you have 
 a command in your command line that you want to copy, just hit
 
 ^Aecho '^E' | pbcopy
 
 Unless you have single-quotes in the command, this will send the whole 
 command-line to `pbcopy`. Alternatively, if this is a command you've already 
 executed and now you want to save it, you could use the `history` command, 
 e.g.
 
history | head -1 | pbcopy
 
 -Kevin
 
 On Aug 22, 2012, at 7:42 AM, Jon Clayden jon.clay...@gmail.com wrote:
 
 Dear all,
 
 Before raising an issue for this I wanted to check if this behaviour
 is intended or unavoidable. It seems that when long commands are
 copied and pasted between fish instances, the inserted ellipsis
 characters and line breaks are pasted too, and interpreted. The
 practical upshot of this is that only part of the command line is
 pasted, with an ellipsis character, and then executed. This is quite
 annoying. It seems to happen in both the beta release and current
 master within Terminal.app on OS X 10.8.
 
 Can anyone shed any further light on this, please?
 
 Thanks, and all the best,
 Jon
 
 --
 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


[Fish-users] Copying and pasting long commands

2012-08-22 Thread Jon Clayden
Dear all,

Before raising an issue for this I wanted to check if this behaviour
is intended or unavoidable. It seems that when long commands are
copied and pasted between fish instances, the inserted ellipsis
characters and line breaks are pasted too, and interpreted. The
practical upshot of this is that only part of the command line is
pasted, with an ellipsis character, and then executed. This is quite
annoying. It seems to happen in both the beta release and current
master within Terminal.app on OS X 10.8.

Can anyone shed any further light on this, please?

Thanks, and all the best,
Jon

--
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