Make sure we redirect stdin from /dev/null for RUN and shell()

This commit is contained in:
Dianne Skoll
2025-10-07 14:34:19 -04:00
parent 44dd57e6e3
commit 074feffaab
4 changed files with 51 additions and 6 deletions

View File

@@ -848,6 +848,10 @@ SET $WarningLevel today()
SET $WarningLevel "3.1.4"
EOF
# Make sure shell() and RUN redirect stdin to /dev/null
(echo 'set a shell("cat")'; sleep 1; echo 'rem msg devnull test [a]') | $REMIND - 2025-10-01 >> ../tests/test.out 2>&1
(echo 'REM RUN cat'; sleep 1; echo 'rem msg devnull test b') | $REMIND - 2025-10-01 >> ../tests/test.out 2>&1
cmp -s ../tests/test.out ../tests/test.cmp
if [ "$?" = "0" ]; then
echo "Remind: Acceptance test PASSED"