Writing to /dev/clipboard from multiple processes in Bash gives inconsistent behaviour

Andrey Repin anrdaemon@yandex.ru
Fri Feb 13 10:59:00 GMT 2015


Greetings, Corinna Vinschen!

>> And my mail client actively flashing "paste" buttons, when the script is
>> working in background. May be that's it.
>> 
>> This is more visible:
>> $ while true; do { i=$(( $i+1 )); echo > /dev/clipboard; for n in {1..10}; do echo $n; done > /dev/clipboard; grep -q 10 /dev/clipboard || { grep 10 /dev/clipboard && echo $i;};}; done;

> Nope, no way.  I'm running this latter test for 45 minutes now, with
> no output.

Then I presume this is environmental issue.
I can think of at least 3 programs that hook clipboard events on my side, and
I can't easily get rid of any of them. Because of "resident" nature of each.


--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 13.02.2015, <13:08>

Sorry for my terrible english...


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list