Subject: Bash bug wth read
From: [email-masked] (Wayne Davison)

26 Jan 1997 13:33:54 -0800
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: "[email-masked]'" <[email-masked]>
Encoding: 32 TEXT
Original-Sender: [email-masked]

Is anyone else having trouble with "read" in a /bin/sh script?  The code is 
apparently reading extra newlines.  When the script starts it will skip 
three prompts, and then one each time after that.  For instance, the 
script:

#!/bin/sh
echo -n "one: "
read ask
echo -n "two: "
read ask
echo -n "three: "
read ask
echo -n "four: "
read ask
echo -n "five: "
read ask
echo -n "six: "
read ask
echo -n "seven: "
read ask
echo -n "eight: "
read ask
echo done

Runs like this:

one: two:
three: four:		[User presses return]
five: six:			[User presses return]
seven: eight:		[User presses return]
done

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