tools/guard.sh: keep the command's stdin (a backgrounded job got /dev/null, silently emptying stdin-fed lucisv runs)
ci / checks (push) Successful in 1m7s
ci / corpus (push) Successful in 31s

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
lucioandClaude Fable 5 committed 2026-09-04 03:09:29 -05:00
1 parent 7c4bdbcfea
commit 8c61570a04
1 file changed
+4 -1
+4 -1
View File
@@ -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)