hledger/hledger/test/cli/pipe.test
Simon Michael eb6b48dded fix:cli: don't raise an error if output is truncated in a pipe [#2405]
This broke in 1.43.

Now we ignore any IOException whose message contains "broken pipe".
Hopefully this matches pre-1.43 behaviour and doesn't hide real errors.
2025-06-12 17:55:13 -10:00

5 lines
233 B
Plaintext

# Tests related to using hledger in piped commands.
# ** 1. Truncating output (including largeish output) in a pipe doesn't cause an error. (#2405)
$ hledger -f bcexample.hledger print | head
> /Opening Balance for checking account/