From 63dea02c931d188242fd27e2b175235938188a70 Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Sun, 4 May 2025 01:31:46 +0800 Subject: [PATCH 1/2] python3Packages.pytestCheckHook: fix Bash heredoc EOF outside subshell Fix the unterminated here document of the pytest-check-hook.sh error mesage by moving the EOF of the here document between the parenthesis of the process substitution. --- .../development/interpreters/python/hooks/pytest-check-hook.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh index bbdc066d48b24..ab4381b0e2721 100644 --- a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh @@ -38,7 +38,7 @@ function pytestCheckPhase() { else # The `|| kill "$$"` trick propagates the errors from the process substitutiton subshell, # which is suggested by a StackOverflow answer: https://unix.stackexchange.com/a/217643 - readarray -t -O"${#flagsArray[@]}" flagsArray < <(@pythonCheckInterpreter@ - "$path" < Date: Sun, 4 May 2025 01:36:44 +0800 Subject: [PATCH 2/2] python3Packages.pytestCheckHook: format with shfmt --- .../development/interpreters/python/hooks/pytest-check-hook.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh index ab4381b0e2721..84643a3b50ca7 100644 --- a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh @@ -38,7 +38,8 @@ function pytestCheckPhase() { else # The `|| kill "$$"` trick propagates the errors from the process substitutiton subshell, # which is suggested by a StackOverflow answer: https://unix.stackexchange.com/a/217643 - readarray -t -O"${#flagsArray[@]}" flagsArray < <(@pythonCheckInterpreter@ - "$path" <