delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/10/28/01:22:07

From: iarnhem AT nl DOT oracle DOT com (Ineke van Arnhem)
Subject: HELP: Read in bash gives extra new-line
28 Oct 1997 01:22:07 -0800 :
Message-ID: <3455B301.247ADA01.cygnus.gnu-win32@NL.ORACLE.COM>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com

I use the usertools from cygnus v. 1.8 as in a shell script I use
something like

echo -n "Text"
read var
echo -n "Text2"
read var2

If I type a value for var followed by Enter then the next read-statement
is not correctly executed.

If  I type a value for var followed by a "\" then the second
read-statement is correctly executed.

What solutions are there?


-
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