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: 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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: =?utf-8?b?44Kt44Oj44Ot44Km44CA44Oe44O844KvIHZpYSBDeWd3aW4=?= Reply-To: =?utf-8?B?44Kt44Oj44Ot44Km44CA44Oe44O844Kv?= Content-Type: multipart/mixed; boundary="===============6179904793562232475==" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" --===============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 = 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==--