GNU bug report logs - #7624
new line in bash 3.00/3.2.49

Previous Next

Package: coreutils;

Reported by: agneray christian <cagneray_devoteam <at> yahoo.fr>

Date: Sun, 12 Dec 2010 16:26:01 UTC

Severity: normal

Tags: notabug

Done: Jim Meyering <jim <at> meyering.net>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eric Blake <eblake <at> redhat.com>
To: agneray christian <cagneray_devoteam <at> yahoo.fr>
Cc: 7624 <at> debbugs.gnu.org
Subject: bug#7624: new line in bash 3.00/3.2.49
Date: Mon, 13 Dec 2010 08:01:52 -0700
[Message part 1 (text/plain, inline)]
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   eblake <at> redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

[signature.asc (application/pgp-signature, attachment)]

This bug report was last modified 14 years and 159 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.