This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Extra newline with bash read?
- To: Fabio <Fabio at Colorado dot EDU>
- Subject: RE: Extra newline with bash read?
- From: "Richardson,Anthony" <ARichard at stark dot cc dot oh dot us>
- Date: Mon, 2 Jun 1997 12:48:00 -0400
- Cc: "'Gnu-Win32 List'" <gnu-win32 at cygnus dot com>
>>>>> "R" == Richardson,Anthony <ARichard@stark.cc.oh.us> writes:
> R> My shell scripts that use "read" to get user input aren't working.
> R> Here's a simple example:
>
> R> #!/bin/sh echo -n "input a1: " read a1 echo -n "input a2: " read
> R> a2 echo "a1 = " $a1 echo "a2 = " $a2
>
> R> It doesn't wait for input at "read a2" and a2 doesn't get set. Is
> R> the "Enter" key being read as a <CR/NL> pair? Is there a fix?
>
>You may want to try "C-j" instead of "Enter." It's a workaround rather
>than a fix.
I tried that. It doesn't work for me either. What do I need to do? A
workaround would be fine.
Tony Richardson
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".