From: Patrick Steinhardt Date: Mon, 13 Apr 2026 09:49:32 GMT Subject: [PATCH 11/12] t9902: fix use of `read` with `set -e` Message-ID: <20260413-b4-pks-tests-with-set-e-v1-11-5b83763a0e84@pks.im> In-Reply-To: <20260413-b4-pks-tests-with-set-e-v1-0-5b83763a0e84@pks.im> In t9902 we're using the `read` builtin to read some values into a variable. This is done by using `-d ""`, which cause us to read until the end of the heredoc. There is a gotcha though: when the delimiter isn't found at all, then the read builtin will return an error. This hasn't been an issue until now as we didn't run with `set -e`, but that'll change in a subsequent commit. Prepare for this change by silencing the error. Signed-off-by: Patrick Steinhardt --- t/t9902-completion.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/t9902-completion.sh b/t/t9902-completion.sh index 2f9a597ec7..e3a7df7691 100755 --- a/t/t9902-completion.sh +++ b/t/t9902-completion.sh @@ -590,7 +590,7 @@ test_expect_success '__gitcomp - doesnt fail because of invalid variable name' ' __gitcomp "$invalid_variable_name" ' -read -r -d "" refs <<-\EOF +read -r -d "" refs <<-\EOF || : main maint next -- 2.54.0.rc0.707.g0fbf48f4d6.dirty