bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#7624: new line in bash 3.00/3.2.49


From: Eric Blake
Subject: bug#7624: new line in bash 3.00/3.2.49
Date: Mon, 13 Dec 2010 08:01:52 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]