3379. [bug] nsupdate terminated unexpectedly in interactive mode

if built with readline support. [RT #29550]
This commit is contained in:
Mark Andrews
2012-08-22 13:38:51 +10:00
parent 1427cd7373
commit d1f43359e4
4 changed files with 70 additions and 20 deletions

View File

@@ -481,5 +481,28 @@ if [ $ret -ne 0 ]; then
status=1
fi
n=`expr $n + 1`
ret=0
echo "I:check command list ($n)"
(
while read cmd
do
echo "$cmd" | $NSUPDATE > /dev/null 2>&1
if test $? -gt 1 ; then
echo "I: failed ($cmd)"
ret=1
fi
echo "$cmd " | $NSUPDATE > /dev/null 2>&1
if test $? -gt 1 ; then
echo "I: failed ($cmd)"
ret=1
fi
done
exit $ret
) < commandlist || ret=1
if [ $ret -ne 0 ]; then
status=1
fi
echo "I:exit status: $status"
exit $status