| www.delorie.com/archives/browse.cgi | search |
| X-Recipient: | archive-cygwin AT delorie DOT com |
| DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; q=dns; s= | |
| default; b=wT2mpZ+UsP56ezLheluO/f7jB1GqjHFd7voGMYTQhmnAKtBQ3Q46Z | |
| jDO9ocf/0p108Omq7sBpVWl/8otsgQVzR9q3JxP0EuQItgAmxIlUTuKnIiYkRSId | |
| 3t7vbLm8jc8fwcqBDHe15rYxPROT4CU53gEA3eeI0+9t1HqfO7UvW4= | |
| DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
| :list-unsubscribe:list-subscribe:list-archive:list-post | |
| :list-help:sender:date:from:to:subject:message-id:reply-to | |
| :references:mime-version:content-type:in-reply-to; s=default; | |
| bh=GWW+IRuAC3/5WOVcDCBk0v+0M88=; b=dp/sfLd5BTxGjtobMFgYZqk5m6nF | |
| Awt58XaJ3YqHTylBhdwvKyJOOtjimXGY8dC4GyICvMehBCeQH8UF/lsAsGoes7Rb | |
| 0gDEbhagoe2xzForP/EMnJ46Y7na0sSow9f3EzOYOh7dfyQeAZ/Lfw/THEibUAAo | |
| huBPAShq/PQb9ss= | |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Id: | <cygwin.cygwin.com> |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
| Authentication-Results: | sourceware.org; auth=none |
| X-Virus-Found: | No |
| X-Spam-SWARE-Status: | No, score=-5.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 |
| X-HELO: | calimero.vinschen.de |
| Date: | Thu, 12 Feb 2015 18:03:42 +0100 |
| From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: Writing to /dev/clipboard from multiple processes in Bash gives inconsistent behaviour |
| Message-ID: | <20150212170342.GB7818@calimero.vinschen.de> |
| Reply-To: | cygwin AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <20150212134550 DOT GC20741 AT dinwoodie DOT org> |
| MIME-Version: | 1.0 |
| In-Reply-To: | <20150212134550.GC20741@dinwoodie.org> |
| User-Agent: | Mutt/1.5.23 (2014-03-12) |
--aIbcA3MSwnGacr4f
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
On Feb 12 13:45, Adam Dinwoodie wrote:
> I've spotted some slightly odd behaviour when writing things from
> multiple processes to /dev/clipboard.
>=20
> Easiest to show this with an example:
>=20
> for n in {1..10}; do echo $n; done >/dev/clipboard; cat /dev/clipboard
>=20
> I expect this to print out the numbers 1=E2=80=9310 to the terminal. Som=
etimes
> it does, but sometimes it misses out some of the numbers at the end;
> printing the digits 1=E2=80=938, say, but no more. Generally it gets to =
around
> 7=E2=80=939, but I've seen it managing to only get up to 3 on one occasio=
n.
I can't reproduce this. First I tried this manually a couple of times,
but then I created a loop:
for i in {1..1000}
do
echo > /dev/clipboard
for n in {1..10}; do echo $n; done > /dev/clipboard
grep -q 10 /dev/clipboard || cat /dev/clipboard
done
and it didn't fail once. I'm not sure what to do if I don't have a
reproducible testcase...
Corinna
--=20
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat
--aIbcA3MSwnGacr4f
Content-Type: application/pgp-signature
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
iQIcBAEBAgAGBQJU3NzuAAoJEPU2Bp2uRE+g3L4P/iv7UD1+zPeZcPPNpjESrhmb
1grRle4PVI0MaYg2l2j11F7ADRMEIawnE2P0lwRnEtheOAP2eHG0LIsuBId8IEgp
XgTWMPnLlaWWrHL2qmqpuAV7KgPMyMZQqd18B9BcBM3gqgBveDYHRPTWt1pAajle
NtrViAo5H0lBWc/LFT8IQtlGRgC+uEL3boP8PGfhbupqH3e4aLsyGqfpvXtfATT8
rwOIdlzCIZR2Lt/gboNi3YDjMk/bCRkNnxAvQApa2f6quAYC6ENBJEw7rl1MbPdw
1N6+cvTosmGgqYqrpgKRYQ60GN/PkcJUgfW6lXuSITrn9bhq89//CTC3NUSfFYf/
hgN3NUIL7XLDeOOVTBn6/xSCkHP8jPbBeDjLaGxk/MJsKFxUZFpxK3e+zdJYnlJd
3B6eTfeAGcWoeti1i2G/5vzqlWUwDdoFHuJ4a0lLX5KR9JqCd1T9csqvM+B5XLCb
O47itTGGMqRuYgxfK3S4QFlrDnG35YO9JopuMEiXJdbyf16IFVHn0flqz7AQzjbV
NLiCDaOTdJJDIV7vp9YecyIXXDsDWRmC9vVsBH7gNFbcDd4pGnRmxgVHsuVtdtGq
vL9abBSXRB8Zcuu0DyIL9Iq2bTflPNnXHhB9LAuAJtq7778P6xn/NpCo8rfUyRuy
vGwnQB1IrxwduZfhpgFk
=52pi
-----END PGP SIGNATURE-----
--aIbcA3MSwnGacr4f--
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |