From 2f75879bd6e77e6c4eafe21deadb583a9f1e9061 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 8 Jan 2026 13:35:13 +0000 Subject: vrunner: fix file descriptor close syntax for coproc The syntax {SOCAT[0]}<&- is invalid - curly braces are for allocating new file descriptors, not referencing existing ones. Use eval with ${SOCAT[0]} to properly close the coproc file descriptors. Fixes: "SOCAT[0]: ambiguous redirect" error when using daemon mode. Signed-off-by: Bruce Ashfield --- recipes-containers/vcontainer/files/vrunner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'recipes-containers/vcontainer/files') diff --git a/recipes-containers/vcontainer/files/vrunner.sh b/recipes-containers/vcontainer/files/vrunner.sh index c9950618..a2f7a216 100755 --- a/recipes-containers/vcontainer/files/vrunner.sh +++ b/recipes-containers/vcontainer/files/vrunner.sh @@ -454,7 +454,7 @@ daemon_send() { done # Clean up - close FDs and kill socat - exec {SOCAT[0]}<&- {SOCAT[1]}>&- + eval "exec ${SOCAT[0]}<&- ${SOCAT[1]}>&-" kill $SOCAT_PID 2>/dev/null || true wait $SOCAT_PID 2>/dev/null || true -- cgit v1.2.3-54-g00ecf