Fri Apr 13 15:27:00 GMT 2012
On Friday, April 13, 2012 7:25 AM, Kenneth Nellis wrote:
" Regarding the following...
" $ echo abc > /dev/clipboard
" $ echo def >> /dev/clipboard
" $ cat /dev/clipboard
"...just curious if the ">>" operator could/should work
" as with a regular file.
The Windows clipboard API isn't "file I/O style", and there's no
function in it to augment existing clipboard content, so it's
perhaps not surprising that it doesn't.
In theory, the code that provide /dev/clipboard could emulate
appending by reading the current content, then writing a full
replacement consisting of the current content plus whatever echo
wrote (in your example), if that code can know whether the file
handle was opened for append. But even if so, you can imagine
it becoming quite inefficient (recopying early data many times)
if someone wrote many short snippets in succession (e.g. many
echo statements like your second one).
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
More information about the Cygwin