delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/24/03:27:45

From: t_pires AT fox DOT nstn DOT ca (Tony Pires)
Subject: Re: read doesn't read the second time
24 Sep 1998 03:27:45 -0700 :
Message-ID: <1.5.4.16.19980924022012.40cf3178.cygnus.gnu-win32@fox.nstn.ca>
Mime-Version: 1.0
To: "Steve Kirsch" <stk AT infoseek DOT com>
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 AT cygnus DOT com" with one line of text: "help".

- Raw text -


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