revilord
Programmer
- Oct 2, 2003
- 64
The following shile statement fails and I have tried several variations but can seem to get it to work. I'm not a ksh expert and I am trying to fix a program that is migrating from csh. Thanks for any help.
#!/bin/ksh
echo "Start. . ."
read CHOICE
while [[ "$CHOICE"!="q" && "$CHOICE"!="Q" ]]
do
if [ "$CHOICE" == "" ]; then
echo "Choice is blank"
else
echo "Choice is $CHOICE"
echo ""
echo -n 'Press <RETURN> to Continue . . .'
read test
break
fi
break;
done
#!/bin/ksh
echo "Start. . ."
read CHOICE
while [[ "$CHOICE"!="q" && "$CHOICE"!="Q" ]]
do
if [ "$CHOICE" == "" ]; then
echo "Choice is blank"
else
echo "Choice is $CHOICE"
echo ""
echo -n 'Press <RETURN> to Continue . . .'
read test
break
fi
break;
done