- May
- 13,418
- 190
This works reliably.
If I make the lines 1 character longer it never works correctly, often producing no output at all.
Code:
v:\> (do i=100 to 1 by -1 ( echo %i %@repeat[x,36] )) | wsl sort -n | tail /n 5
96 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
97 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
98 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
99 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
100 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If I make the lines 1 character longer it never works correctly, often producing no output at all.
Code:
v:\> (do i=100 to 1 by -1 ( echo %i %@repeat[x,37] )) | wsl sort -n | tail /n 5
94 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
95 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
96 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
97 xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
98 xxxxxxxxxxxxxxxxxxxxxxxxxxxx
v:\> (do i=100 to 1 by -1 ( echo %i %@repeat[x,37] )) | wsl sort -n | tail /n 5
v:\>