On my machine following steps seem to be a reproducible test case:

- create a file "test-file.txt" with 20.000 identical lines with content "This is a line."
- open eshell and insert the command: cat test-file.txt | grep line | wc

This seems to return a different result every time it's run.