User input problem in a ksh script
Hello,
I have a code below where I want to get a user input. It seems to be trivial, but as there is a loop with read -r so the inside read doesn't work properly. It means that the function doesn't wait for an enter. Any idea how can I solve this? Code:
while read -r line |
Try:
Code:
read userInput < /dev/tty |
All times are GMT -5. The time now is 03:49 PM. |