delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/23/03:06:13

From: lhall AT rfk DOT com (Larry Hall RFK Partners Inc)
Subject: Re: read doesn't read the second time
23 Sep 1998 03:06:13 -0700 :
Message-ID: <3.0.5.32.19980922123743.00acbe40.cygnus.gnu-win32@pop.ma.ultranet.com>
References: <000701bde592$ff92d240$0bd205c6 AT topgun DOT infoseek DOT com>
Mime-Version: 1.0
To: "Steve Kirsch" <stk AT infoseek DOT com>, <gnu-win32 AT cygnus DOT com>

At 12:06 PM 9/21/98 -0700, Steve Kirsch wrote: 

>>>>

<excerpt><smaller>This script fails to wait for the second number to be
input:

</smaller>  

<smaller>read -p "enter number: " num1

read -p "enter another number: " num2

echo "done"

</smaller>

</excerpt><<<<<<<<


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 AT rfk DOT 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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019