On Wed, 24 Nov 2010, Carl Worth wrote: > Michal, in trying to add a test for that bug, I found that the current > test suite infrastructure can't catch it because the shell's $() > construct doesn't distinguish whether that final newline is present or > not. I don't see an easy way to fix this, (other than making all tests > put results into files and making test_expect_equal accept those > filenames). Do you see any easy fix? Unfortunately no. I did the same in id:"1289384870-15199-1-git-send-email-sojkam1@fel.cvut.cz" In fact I find much easier writing cmd > output cmd2 >> output than output=$(cmd) output+=$(cmd) -Michal