In the solution for #15 a final filter sed 's/\r$//' was added in bin/vspec.
Unfortunately, by default sed buffers its output, so it is no longer possible to add another filter and see the output live.
vspec . t/test.vim | grep '# TODO'
# have to wait until whole test is finished!
Making sed output unbuffered (sed -u) or line-buffered (sed -l) fixes the problem. Unfortunately there are many different sed flavours and not all of them have these flags.
The reason this is a problem for me is that I use a small benchmark wrapper around vspec, and the benchmark tests I run with it can take quite long. For one benchmark, for example, I have to wait 20 seconds until the whole thing is finished and I can see the benchmark results.
In the solution for #15 a final filter
sed 's/\r$//'was added inbin/vspec.Unfortunately, by default sed buffers its output, so it is no longer possible to add another filter and see the output live.
Making sed output unbuffered (
sed -u) or line-buffered (sed -l) fixes the problem. Unfortunately there are many different sed flavours and not all of them have these flags.The reason this is a problem for me is that I use a small benchmark wrapper around
vspec, and the benchmark tests I run with it can take quite long. For one benchmark, for example, I have to wait 20 seconds until the whole thing is finished and I can see the benchmark results.