See the following Debian bug:
I use
xclip -l 1
to paste stuff to Iceweasel. This used to work very well, but broke in Iceweasel 26. This is because Iceweasel 26 probes the PRIMARY clipboard for TARGETS multiple times before it actually requests the UTF8_STRING contents, which causes xclip to exit prematurely. Upstream committed a fix for this behavior:
http://sourceforge.net/p/xclip/code/85/
I would be grateful if you cherry-picked the patch for Debian. Thanks for considering.
To solve apply the following patch and recompile:
-- a/trunk/xclib.c
+++ b/trunk/xclib.c
@@ -411,6 +411,10 @@
XSendEvent(dpy, evt.xselectionrequest.requestor, 0, 0, &res);
XFlush(dpy);
+ /* don't treat TARGETS request as contents request */
+ if (evt.xselectionrequest.target == targets)
+ return 0;
+
/* if len < chunk_size, then the data was sent all at
* once and the transfer is now complete, return 1
*/