3379. [bug] nsupdate terminated unexpectedly in interactive mode
if built with readline support. [RT #29550]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user