I'm new to programming. I have this loop (it's part of a data processing script) and I have it all good until this section cause I can't figure out why it stay looping in the second 'while'
Take a look:
while [ $cdp -le $cdpmax ]
while [ ok=false ]
echo "It's correct? (y/n)" | tr -d "\012" >/dev/tty
case $response in n*) ok=false ;; *) ok=true ;; esac
Thanks a lot