Console output hangs in the middle of a line
Sun Feb 20 14:34:00 GMT 2022
On Sun, 20 Feb 2022 23:22:07 +0900
Takashi Yano wrote:
> If the script
> 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
Takashi Yano <firstname.lastname@example.org>
More information about the Cygwin