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>, <gnu-win32 at cygnus dot com>
- Subject: Re: read doesn't read the second time
- From: "Larry Hall (RFK Partners Inc)" <lhall at rfk dot com>
- Date: Tue, 22 Sep 1998 12:37:43 -0400
At 12:06 PM 9/21/98 -0700, Steve Kirsch 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"
<<<<
This is a well-known bug that should be in the FAQ by now (especially because
it comes up every few weeks!) I believe the current work-around is to use
CTRL-J rather than enter at the end of the user input...
Larry Hall lhall@rfk.com
RFK Partners, Inc. (781) 239-1053
8 Grove Street (781) 239-1655 - FAX
Wellesley, MA 02482-7797 http://www.rfk.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".