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)