On Feb 19 09:54, Takashi Yano via Cygwin wrote: > On Wed, 19 Feb 2025 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 -- 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