Subject: read doesn't read the second time
From: [email-masked] (Steve Kirsch)

22 Sep 1998 07:16:01 -0700
Message-ID: <[email-masked]>
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0004_01BDE558.52D9CC50"
To: <[email-masked]>

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>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>read -p &quot;enter number: &quot; =
num1<BR>read=20
-p &quot;enter another number: &quot; num2<BR>echo=20
&quot;done&quot;<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_0004_01BDE558.52D9CC50--

-
For help on using this list (especially unsubscribing), send a message to
"[email-masked]" with one line of text: "help".