I like to use /dev/clipboard for moving content easily between Windows and Cygwin's command-line tools. It seems like Cygwin has problems with large clipboard contents, though. I get an error like this when I try to access /dev/clipboard after copying a large amount of text on the Windows side:
$ wc -c /dev/clipboard
wc: /dev/clipboard: Bad address
573440 /dev/clipboard
Is there a fixed buffer size for the clipboard that I can somehow increase? Or is this some other issue entirely?
getclip
andputclip
instead of handling the/dev/clipboard
device and see if that makes any difference? I doubt it, they probably do the exact same thing, but I'm curious.cat large.txt | putclip ; getclip | wc -c