delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/01/26/17:23:11

From: grantl AT deerinet DOT nb DOT ca ("Grant Leslie")
Subject: Re: Bash bug wth read
26 Jan 1997 17:23:11 -0800 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <B0000001870.cygnus.gnu-win32@nt1.deerinet.nb.ca>
Mime-Version: 1.0
Original-To: "GNU-WIN32" <gnu-win32 AT cygnus DOT com>, "Wayne Davison" <wayne AT clari DOT net>
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1160
Original-Sender: owner-gnu-win32 AT cygnus DOT com

> 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.  

Yup :-( 
The first one seems to come from the bash prompt since it effects any
other programs I might run from bash, ie.. they all get a single <cr>
when I start them, and after that read itself seems to have the same
problem. I assume they both use the GNU readline lib to work, so
there might be some bug in there??? I haven't looked that far into it
myself.

-
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019