From 8c61570a0470e94e992abaed9a271d512ac90ecd Mon Sep 17 00:00:00 2001 From: Guoliang Chen Date: Fri, 4 Sep 2026 03:09:29 -0500 Subject: [PATCH] tools/guard.sh: keep the command's stdin (a backgrounded job got /dev/null, silently emptying stdin-fed lucisv runs) Co-Authored-By: Claude Fable 5 --- tools/guard.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/guard.sh b/tools/guard.sh index 13fb2d1..88b3821 100755 --- a/tools/guard.sh +++ b/tools/guard.sh @@ -29,7 +29,10 @@ while [ $# -gt 0 ]; do done [ $# -gt 0 ] || { echo "guard.sh: no command" >&2; exit 2; } -"$@" & +# Keep the command's stdin: a plain `cmd &` in a non-interactive shell +# gives the job /dev/null, which silently empties any stdin-fed `lucisv`. +exec 3<&0 +"$@" <&3 & root=$! start=$(date +%s)