delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/09/16/04:38:07

From: kuku AT gilberto DOT physik DOT RWTH-Aachen DOT DE (Christoph Kukulies)
Subject: read in sh scripts (b18)
16 Sep 1998 04:38:07 -0700 :
Message-ID: <199809151600.SAA15528.cygnus.gnu-win32@gilberto.physik.RWTH-Aachen.DE>
To: gnu-win32 AT cygnus DOT com

While testing some shell scripts under b18 I find that

echo -n 'enter yes/no:'
read answer
echo $answer
echo -n 'enter yes/no:'
read answer
echo $answer

skips the second read.

It look too much like a FAQ to me like tty mode, buffering or 
a cr/lf issue that I can't believe it's a bug.


-- 
Chris Christoph P. U. Kukulies kuku AT gil DOT physik DOT rwth-aachen DOT de
Latest feature of Visual C++ 6.0: 'Command-line builds' - 
msdev crc.dsw /MAKE "WinCRC - Win32 Debug" /Rebuild /OUT wincrc.log
Taken from: MSJ Oct 98, p. 19   -- :-O
-
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