[CALL FOR TESTING] Cygwin-3.6.0
Corinna Vinschen
corinna-cygwin@cygwin.com
Wed Feb 19 10:40:35 GMT 2025
On Feb 19 09:54, Takashi Yano via Cygwin wrote:
> On 2025年2月19日 01:20:59 +0100
> Lionel Cons wrote:
> > Something is very wrong with bash. If I redirect the output of xcopy
> > or icacls into a bash variable, like stdout="$(icacls "$(cygpath -w
> > "$PWD")")", then sometimes I get only a letter in the middle. Very
> > strange
>> Thanks for the report. But I cannot reproduce that.
> Doesn't this occur with cygwin 3.5.7?
I can't reproduce this either. I ran the above command in a tight loop
a couple of thousand times, checking if the content of $stdout was
truncated, but it runs without trouble:
bash$ let i=0; while true; do let i++; stdout=""; stdout="$(icacls "$(cygpath -w "$PWD")")"; num=$(echo "$stdout" | wc -c); echo $i $num; if [ $num -lt 733 ]; then break; fi; done; echo "$i: $stdout"
(the output has an expected length of 733 bytes)
Corinna
More information about the Cygwin
mailing list