Mail Archives: cygwin/1997/01/26/13:33:54
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
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".
- Raw text -