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

2015-02-16 Thread cyg Simple
> From: Andrey Repin > > If you know how to do it, may be you can describe the correct way of doing it, > to share the knowledge? > The preferable format would be a FAQ entry. > You are free to add a FAQ entry if you think it is worthy of one. I don't think that it is. cyg Symple -- Problem

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

2015-02-13 Thread Andrey Repin
Greetings, cyg Simple! > I would put the output to a /tmp/deleted.lst file and when I'm ready to > paste it into the mail I would cat /tmp/deleted.lst > /dev/clipboard. >> The shell code I posted was a simple test case to show the problem, not > actually >> what I'm trying to achieve. Posting si

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

2015-02-13 Thread cyg Simple
> From: Adam Dinwoodie > On Fri, Feb 13, 2015 at 10:15:30AM -0500, cyg Simple wrote: > > > From: Adam Dinwoodie > > > > > > In which case, I wonder if it's worth adding something to the > > > FAQ/BLODA > > about > > > this? I guess not, at least until someone independently encounters > > > this be

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

2015-02-13 Thread Adam Dinwoodie
On Fri, Feb 13, 2015 at 10:15:30AM -0500, cyg Simple wrote: > > From: Adam Dinwoodie > > > > In which case, I wonder if it's worth adding something to the FAQ/BLODA > about > > this? I guess not, at least until someone independently encounters this > > behaviour so it warrants the "F" as well as

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

2015-02-13 Thread cyg Simple
> From: Adam Dinwoodie > > In which case, I wonder if it's worth adding something to the FAQ/BLODA about > this? I guess not, at least until someone independently encounters this > behaviour so it warrants the "F" as well as the "AQ". > I find it strange that someone would be using /dev/clipboa

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

2015-02-13 Thread Peter Hull
On Fri, Feb 13, 2015 at 10:59 AM, Adam Dinwoodie wrote: > I'm running a bunch of Microsoft Office applications which I know do > "helpful" things to the Windows clipboard. It hadn't occured to me that > they may be causing BLODA-like problems in the way they interact with > it. Just to add my exp

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

2015-02-13 Thread Adam Dinwoodie
On Fri, Feb 13, 2015 at 01:09:32PM +0300, Andrey Repin wrote: > 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 >

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

2015-02-13 Thread Andrey Repin
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; gre

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

2015-02-13 Thread Corinna Vinschen
On Feb 13 00:51, Andrey Repin wrote: > Greetings, Corinna Vinschen! > > > On Feb 12 13:45, Adam Dinwoodie wrote: > >> I've spotted some slightly odd behaviour when writing things from > >> multiple processes to /dev/clipboard. > >> > >> Easiest to show this with an example: > >> > >> for n i

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

2015-02-12 Thread Andrey Repin
Greetings, Corinna Vinschen! > On Feb 12 13:45, Adam Dinwoodie wrote: >> I've spotted some slightly odd behaviour when writing things from >> multiple processes to /dev/clipboard. >> >> Easiest to show this with an example: >> >> for n in {1..10}; do echo $n; done >/dev/clipboard; cat /dev/c

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

2015-02-12 Thread Adam Dinwoodie
On Thu, Feb 12, 2015 at 06:03:42PM +0100, Corinna Vinschen wrote: > On Feb 12 13:45, Adam Dinwoodie wrote: > > I've spotted some slightly odd behaviour when writing things from > > multiple processes to /dev/clipboard. > > > > Easiest to show this with an example: > > > > for n in {1..10}; do

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

2015-02-12 Thread Corinna Vinschen
On Feb 12 13:45, Adam Dinwoodie wrote: > I've spotted some slightly odd behaviour when writing things from > multiple processes to /dev/clipboard. > > Easiest to show this with an example: > > for n in {1..10}; do echo $n; done >/dev/clipboard; cat /dev/clipboard > > I expect this to print o

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

2015-02-12 Thread Adam Dinwoodie
I've spotted some slightly odd behaviour when writing things from multiple processes to /dev/clipboard. Easiest to show this with an example: for n in {1..10}; do echo $n; done >/dev/clipboard; cat /dev/clipboard I expect this to print out the numbers 1–10 to the terminal. Sometimes it does