On 13/7/24 1:24, Rubén Justo wrote: > Maybe a test like this would be clearer? test_expect_success TTY 'P does not break if pager ends unexpectedly' ' test_when_finished "rm -f huge_file; git reset" && printf "%2500000s" Y >huge_file && git add -N huge_file && test_write_lines P q | GIT_PAGER="head -c 1" test_terminal git add -p '