Mail Archives: cygwin/1998/09/22/07:16:01
From: | stk AT infoseek DOT com (Steve Kirsch)
|
Subject: | read doesn't read the second time
|
22 Sep 1998 07:16:01 -0700
: | |
Message-ID: | <000701bde592$ff92d240$0bd205c6.cygnus.gnu-win32@topgun.infoseek.com>
|
Mime-Version: | 1.0
|
To: | <gnu-win32 AT cygnus DOT com>
|
This is a multi-part message in MIME format.
------=_NextPart_000_0004_01BDE558.52D9CC50
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
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"
------=_NextPart_000_0004_01BDE558.52D9CC50
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>
<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>This script fails to wait for the =
second number=20
to be input:</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT> </DIV>
<DIV><FONT color=3D#000000 size=3D2>read -p "enter number: " =
num1<BR>read=20
-p "enter another number: " num2<BR>echo=20
"done"<BR></FONT></DIV></BODY></HTML>
------=_NextPart_000_0004_01BDE558.52D9CC50--
-
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 -