Subject: bug#7624: new line in bash 3.00/3.2.49

From: Eric Blake <[email-masked]>
Date: Mon, 13 Dec 2010 08:01:52 -0700

On 12/12/2010 08:25 AM, agneray christian wrote:
> Lately, I tried the "bash, version 3.2.49" (Latest Cygwin DLL release version is
> 1.7.7-1). 

You may be better off asking questions related to cygwin on the cygwin
mailing list.

> 
> Running script now stop during the lexical parsing with
> message like:
> 
> /cygdrive/c/open/wpkg/wa.sh:
> wa.sh: line 38: syntax error near unexpected token `newline'
> 
> 'cygdrive/c/open/wpkg/wa.sh:
> wa.sh: line 38: `;;esac

Most likely, you accidentally inserted literal carriage returns (\r)
into your file, but did not tell bash that you want to ignore carriage
returns.  This is a symptom that is typically limited to cygwin
installations, and has nothing to do with coreutils.  Run 'd2u wa.sh' to
remove those carriage returns.

-- 
Eric Blake   [email-masked]    +1-801-349-2682
Libvirt virtualization library http://libvirt.org