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

Reply via email to