This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: read doesn't read the second time
- To: "Steve Kirsch" <stk at infoseek dot com>
- Subject: Re: read doesn't read the second time
- From: Tony Pires <t_pires at fox dot nstn dot ca>
- Date: Wed, 23 Sep 1998 19:20:12 -0700
- Cc: <gnu-win32 at cygnus dot com>
Try this:
#! /bin/sh
echo -e "enter yes/no: \c"; read answer; echo $answer
echo -e "enter yes/no: \c"; read answer; echo $answer
At 12:06 PM 9/21/98 -0700, you wrote:
>This script fails to wait for the second number to be input:
>
>read -p "enter number: " num1
>read -p "enter another number: " num2
>echo "done"
>
>
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".