delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2023/08/14/20:54:15

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 07E4C3839781
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1692060855;
bh=Xnkiqrlmzdz5CWMg/lstzr+m9+zrpIGceXGC8YcvTVQ=;
h=Subject:Date:References:To:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=OGZwCT1Gs1amTzj0LXymQx6BSZXf6WDjE9xHmA/ginFd1WG+OClcUf9tpm+kPCRKq
yhjicHbEtWc6ThH5kV7O9cDE2QPI9bgbsMhRn2LaFXTtejcuHhnafufh2r2Crf55lb
zzcKvvt76XVfbusYNLOroiB7rgjUgQbKwuLcNInI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 40B96382CF51
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.700.6\))
Subject: Re: Pipes truncating data in cygwin from main and cygwin-3_4-branch
Date: Tue, 15 Aug 2023 09:53:16 +0900
References: <13B0370E-B61A-44B9-A885-5FF1B8F4AC5F AT callow DOT im>
<20230815093042 DOT 4c5fd1034837098aaff45e10 AT nifty DOT ne DOT jp>
To: cygwin AT cygwin DOT com
In-Reply-To: <20230815093042.4c5fd1034837098aaff45e10@nifty.ne.jp>
Message-Id: <CCC360AD-21B1-40E4-8B6B-FCFAF5612939@callow.im>
X-Mailer: Apple Mail (2.3731.700.6)
X-OutGoing-Spam-Status: No, score=-1.0
X-AntiAbuse: This header was added to track abuse,
please include it with any abuse report
X-AntiAbuse: Primary Hostname - ssd1.hungerhost.com
X-AntiAbuse: Original Domain - cygwin.com
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - callow.im
X-Get-Message-Sender-Via: ssd1.hungerhost.com: authenticated_id:
github AT callow DOT im
X-Authenticated-Sender: ssd1.hungerhost.com: github AT callow DOT im
X-Source:
X-Source-Args:
X-Source-Dir:
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, SPF_HELO_NONE,
SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: =?utf-8?b?44Kt44Oj44Ot44Km44CA44Oe44O844KvIHZpYSBDeWd3aW4=?=
<cygwin AT cygwin DOT com>
Reply-To: =?utf-8?B?44Kt44Oj44Ot44Km44CA44Oe44O844Kv?= <github AT callow DOT im>
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

--===============6179904793562232475==
Content-Type: multipart/signed;
	boundary="Apple-Mail=_D5DBE8AA-7CF1-4D85-B05B-49696975AA7B";
	protocol="application/pgp-signature";
	micalg=pgp-sha512


--Apple-Mail=_D5DBE8AA-7CF1-4D85-B05B-49696975AA7B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=utf-8



> On Aug 15, 2023, at 9:30, Takashi Yano <takashi DOT yano AT nifty DOT ne DOT jp> =
wrote:
>=20
> Your test case does not work in command prompt as well.
>=20
> Try
> type testfile | test-pipe sizeoftestfile
> in command prompt. It will fail.

Interesting.

>=20
> New pipe implementation since cygwin 3.4.x provides the pipes
> more similar to pipe in command prompt for non-cygwin apps.

What are the differences between these pipes? What changed?

>=20
> Since your test case is compiled with cl.exe, it is non-cygwin
> apps.

When the failure first appeared the bash shell included with Git for =
Windows was being used to run the pipe (`bash -c "cat foo | bar=E2=80=9D`)=
. The shell was started by ctest which had been run from PowerShell. Is =
this cygwin or non-cygwin?

in =
https://github.com/git-for-windows/git/issues/4464#issuecomment-1671137446=
 the author provided minimal adaption to the reproducer to compile it =
with g++ and reproduced the failure on Cygwin. It looks like the failure =
happens for both cygwin and non-cygwin. It is probably related to the =
new pipe implementation you mentioned.

Regards

    -Mark

--Apple-Mail=_D5DBE8AA-7CF1-4D85-B05B-49696975AA7B
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - http://gpgtools.org

iQEzBAEBCgAdFiEE7YIgIVSPLJapfaYaETbJ7D8AEGMFAmTazHwACgkQETbJ7D8A
EGNPdAf/Uq6X24PPviH1JfTrxctHi4Bd8G0T0rakpmXVeZIG3JDqmYQx27xMgo+d
Kp1SAxsotqY0HZAN9q2fdfIpx9JK6vbxetJvzakZG1xxAnqTUxZnuTGuAFcIHehf
P6iPFzEzbnVxQ76wlWoalNmhMdUmiWyyEYFMEzmsoPXCm8mQR7GEbbu3HidYE515
C8Kzolmwtsjupqw8JNdyHO4iBAPzrvXEXtc7+uZS5/Y3i9u2yxyXdGuR00E/gCFw
8ShZ3s0NlQRWf8U0tPwbsYpo2kuzhgsXU9rNV8D/XQcb6AgzEKhegFeUkRIDbX2a
6n7ZCBaawY/HopqzL+Axp5y1C1lVAQ==
=c3vh
-----END PGP SIGNATURE-----

--Apple-Mail=_D5DBE8AA-7CF1-4D85-B05B-49696975AA7B--

--===============6179904793562232475==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline


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

--===============6179904793562232475==--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019