X-Recipient: archive-cygwin@delorie.com
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9333B3858D28
Authentication-Results: sourceware.org;
 dmarc=fail (p=none dis=none) header.from=nifty.ne.jp
Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=nifty.ne.jp
DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 21KEXueR017121
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.ne.jp;
 s=dec2015msa; t=1645367637;
 bh=IJ6bHIxuGHUJ///0T3/AD9qGv6eK4DzTrPA1Ymcayig=;
 h=Date:From:To:Cc:Subject:In-Reply-To:References:From;
 b=jmY+g+L2jkpUSmsLZ8Uu5cfYa3ku3WFCm+5aQR+BRmaP/rT1CrBe6SD8KuQti7c4m
 KzfOcsxbgjAZy2nw1SztAztNiNpvA4tmbYMC36hcdOldG0X27Gm7j1+2/puGNj6sn/
 cyanhdoQ/XRmFQdTTDQakQjvEm0MffQBVrIpSZoOdwwCmYtUEmcx8pzx/q8i3BRwhw
 yOmaoIorvuqjbiBcUB6efrVwgRZdWD0/KTTEUiWzyOax2fXao1KasSfEmWNUKLX0A3
 yfJc+4myx9+LBnCyujwjTeYiseabG86Zbz1CMpmOxV64cqaxzKLruq7RtE9ESMNlIy
 bFHOWNzfme0vg==
X-Nifty-SrcIP: [119.150.36.16]
Date: Sun, 20 Feb 2022 23:34:00 +0900
From: Takashi Yano <takashi.yano@nifty.ne.jp>
To: cygwin@cygwin.com
Subject: Re: Console output hangs in the middle of a line
Message-Id: <20220220233400.4ddfa98ec32f831fad8b78c2@nifty.ne.jp>
In-Reply-To: <20220220232207.b7fc5f99b324b3e3be95c686@nifty.ne.jp>
References: <CAGHpTBJ1JHS5=3WBNjkRP3f8i2gqQPRU7Kv6jj9gTj1Nc3BrcQ@mail.gmail.com>
 <CAGHpTBKXJ0kPugus36m0Mg55y=Ephd7KJNWV-xgyzNxEdAP6zg@mail.gmail.com>
 <20220220223751.c3434a059a5b54861f54ff1f@nifty.ne.jp>
 <CAGHpTB+firxVjPVjHx9UJ6G4n+fKCXx+z4yt7yqR91WxAGTPgw@mail.gmail.com>
 <20220220232207.b7fc5f99b324b3e3be95c686@nifty.ne.jp>
X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.30; i686-pc-mingw32)
Mime-Version: 1.0
X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, NICE_REPLY_A, RCVD_IN_DNSWL_NONE,
 SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
Cc: Orgad Shaneh <orgads@gmail.com>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Sun, 20 Feb 2022 23:22:07 +0900
Takashi Yano wrote:
> If the script
> 
> #!/bin/sh
> mkdir -p chunked
> cd chunked
> /cygdrive/c/Program\ Files/Git/mingw64/bin/git init
> mkdir -p abc/def/ghi/jkl def
> cd abc/def/ghi/jkl
> touch foo
> /cygdrive/c/Program\ Files/Git/mingw64/bin/git add foo
> seq 1 10000 | xargs touch
> cd ../../../../def
> seq 1 100000 | xargs touch
> cd ..
> time /cygdrive/c/Program\ Files/Git/mingw64/bin/git clean -dfx
> 
> is used, the hang here:
> Removing abc/def/ghi/jkl/9878
> Removing abc/def/ghi/jkl<hangs 15sec>
> is more than 10sec.
> 
> It seems that removing def/ takes the time,
> and the output stops before displying 
> Removing abc/def/ghi/jkl/9879
> [...]
> Removing abc/def/ghi/jkl/9999
> 
> I guess the output is just buffered in somewhere
> which is not flushed.

The same happens in command prompt which started from 'Git CMD'
icon. In this case, not only cygwin but also msys2 is not used.
Therefore, this is the problem of git executable itself in
Git-for-windows.

-- 
Takashi Yano <takashi.yano@nifty.ne.jp>

-- 
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
