13

Bash while loop and user input

view full story
linux-howto

http://ubuntuforums.org – So this one is bugging me. I know exactly why it doesn't work i just don't know how to work around it. Code: #!usr/bin/bash set -e trap "echo 'Exiting...'; sleep 1; clear" EXIT clear Master_Loop () { while [ 1 ];do         answer="x"; read -p "Skip forward? (y) or (n)" -t 3 answer                 if [ $answer = y ];then                         echo 'Skipping...'                 & (Hardware)