From unknown Tue Jun 17 20:13:27 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#7624 <7624@debbugs.gnu.org> To: bug#7624 <7624@debbugs.gnu.org> Subject: Status: new line in bash 3.00/3.2.49 Reply-To: bug#7624 <7624@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:13:27 +0000 retitle 7624 new line in bash 3.00/3.2.49 reassign 7624 coreutils submitter 7624 agneray christian severity 7624 normal tag 7624 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sun Dec 12 11:25:43 2010 Received: (at submit) by debbugs.gnu.org; 12 Dec 2010 16:25:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRok2-0004lr-Mx for submit@debbugs.gnu.org; Sun, 12 Dec 2010 11:25:43 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PRni4-0003Ec-Sp for submit@debbugs.gnu.org; Sun, 12 Dec 2010 10:19:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRno0-00007y-Dk for submit@debbugs.gnu.org; Sun, 12 Dec 2010 10:25:45 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:43831) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PRno0-00007u-B3 for submit@debbugs.gnu.org; Sun, 12 Dec 2010 10:25:44 -0500 Received: from [140.186.70.92] (port=45634 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PRnnz-0000YN-2A for bug-coreutils@gnu.org; Sun, 12 Dec 2010 10:25:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PRnnt-00006n-O1 for bug-coreutils@gnu.org; Sun, 12 Dec 2010 10:25:42 -0500 Received: from nm2-vm0.bullet.mail.ird.yahoo.com ([77.238.189.199]:46505) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PRnnt-00006H-Df for bug-coreutils@gnu.org; Sun, 12 Dec 2010 10:25:37 -0500 Received: from [77.238.189.232] by nm2.bullet.mail.ird.yahoo.com with NNFMP; 12 Dec 2010 15:25:36 -0000 Received: from [212.82.108.248] by tm13.bullet.mail.ird.yahoo.com with NNFMP; 12 Dec 2010 15:25:36 -0000 Received: from [127.0.0.1] by omp1013.mail.ird.yahoo.com with NNFMP; 12 Dec 2010 15:25:36 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 276119.55378.bm@omp1013.mail.ird.yahoo.com Received: (qmail 27518 invoked by uid 60001); 12 Dec 2010 15:25:36 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.fr; s=s1024; t=1292167536; bh=vHU4KykkbiTmH39SNhIy4KQIvancAU0zR/CRWJJAYEo=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=BWmfeqb1gyoSscRlLq3ESdaVRTyskc4HARAuAzP+NrwMI1d70OBOgCmtAP/NfrXa1COTreaQQFTSKUeT8hLstym7tLSZookzpeH1Utc5TfGJuMEl5NkEn7wBldoNwDruo9DEWmCVcPeGE8s4qKbvZnB4tn+x2T98KkEBAsqWCqk= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.fr; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=O6hqWiopIsgmrMTzREWMyG97PE6WrkWuYuwDM+DljGFXeTy9RyA+R/iSd5SlU5rGs0s6dnCJd/6zH2SyAHpJmiK2d/VRPYf+vFkk40WhA0codto7uLEAPS2Q2u7/eXCUPwOTMyx/aVDiYedI5p4lgsIi0YCdJxaqJE4Ljca9KdI=; Message-ID: <64505.27501.qm@web29709.mail.ird.yahoo.com> X-YMail-OSG: FLdjk4oVM1nTVzl.k8HvhFZiHa1IuB0HjUvGUezDEc6PukC VzC7GgZ5AQ5BLmsHTOHOOoiqrwDcB6MUbFci.jcPJYA_Xnx4l0MBF2V1zwEF t_ZgXRB0Qu3SR3bvH7DWIZAWIZCyhzHZSQMer8wTDNzrnELdeIJx2U9kh8Tg MMlPZZFg0hr72FgXrV5xaGfE7ElNNz4Dtgrt1czoWrfk6SmIefYOZLUeKrfq Bc1IJkh74D8oRd79Sf0GjlCgMnvMkhVsK7Pp8wVHefjk2ylW867YFJN2TAzd hUbKAGdmIk9_ENHHkmjSmondQFE26YMNYluJRzQJkoFqR2lmJJrAmkV7Wi1f VM13pm5y6eFinuAtWGtQ- Received: from [88.167.77.130] by web29709.mail.ird.yahoo.com via HTTP; Sun, 12 Dec 2010 15:25:35 GMT X-Mailer: YahooMailClassic/11.4.20 YahooMailWebService/0.8.107.285259 Date: Sun, 12 Dec 2010 15:25:35 +0000 (GMT) From: agneray christian Subject: new line in bash 3.00/3.2.49 To: bug-coreutils@gnu.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1102783006-1292167535=:27501" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sun, 12 Dec 2010 11:25:40 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) --0-1102783006-1292167535=:27501 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, I have 2 new (to me) problems, probably with differents=0Acauses, so I'm po= sting each one separatly:=0A=0A1/ new line in bash 3.00/3.2.49=0A=0A2/ heap= allocation on Windows Vista=0A=0A1/ new line in bash 3.00/3.2.49=0A=0AI'm = using "sh-3.00" since years on my winXP=0Adesktop. I get used to fews bugs = that can be easily avoid ( eg [ ! a file.txt ] ).=0A=0ALately, I tried the = "bash, version 3.2.49" (Latest Cygwin DLL release version is=0A1.7.7-1). = =0A=0ARunning script now stop during the lexical parsing with=0Amessage lik= e:=0A=0A/cygdrive/c/open/wpkg/wa.sh:=0Awa.sh: line 38: syntax error near un= expected token `newline'=0A=0A'cygdrive/c/open/wpkg/wa.sh:=0Awa.sh: line 38= : `;;esac=0A=0AWhen I add en # comment at the end of line, the error=0Avani= shes.=0A=0AThe cause can easily be found. In the meantime (3.00 - 3.2)=0Ath= e newline routine has been changed ; this issue has already been identified= ,=0Awith no fixed decision cf (2006-06/msg00863)=0A=0ASo when I use a windo= ws editor (notepad.exe) to edit my script I won't=0Aescape this limitation.= =0A=0AIs there any action planned ?=0A=0Ahttp://cygwin.com/ml/cygwin/2006-0= 6/msg00863.html=0A=0A/cygdrive/c/Documents: line 48: syntax error near unex= pected=0Atoken `newline'=0A=0AI renamed the local "getline" into=0A"get_lin= e" in all files, and it was enough.=0A=0A Christian =0A=0A=0A --0-1102783006-1292167535=:27501 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
=0A=0A=0A=0A=0A --0-1102783006-1292167535=:27501-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 13 09:55:50 2010 Received: (at 7624) by debbugs.gnu.org; 13 Dec 2010 14:55:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PS9oc-0006c2-KV for submit@debbugs.gnu.org; Mon, 13 Dec 2010 09:55:50 -0500 Received: from mx1.redhat.com ([209.132.183.28]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PS9oZ-0006bo-M3 for 7624@debbugs.gnu.org; Mon, 13 Dec 2010 09:55:49 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oBDF1wZH010699 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 13 Dec 2010 10:01:58 -0500 Received: from [10.3.113.37] (ovpn-113-37.phx2.redhat.com [10.3.113.37]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oBDF1vc8022274; Mon, 13 Dec 2010 10:01:57 -0500 Message-ID: <4D063560.7090008@redhat.com> Date: Mon, 13 Dec 2010 08:01:52 -0700 From: Eric Blake Organization: Red Hat 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 MIME-Version: 1.0 To: agneray christian Subject: Re: bug#7624: new line in bash 3.00/3.2.49 References: <64505.27501.qm@web29709.mail.ird.yahoo.com> In-Reply-To: <64505.27501.qm@web29709.mail.ird.yahoo.com> X-Enigmail-Version: 1.1.2 OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enigAE3F3F7A9A862F0FA040B547" X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Spam-Score: -10.2 (----------) X-Debbugs-Envelope-To: 7624 Cc: 7624@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -10.2 (----------) This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigAE3F3F7A9A862F0FA040B547 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 12/12/2010 08:25 AM, agneray christian wrote: > Lately, I tried the "bash, version 3.2.49" (Latest Cygwin DLL release v= ersion is > 1.7.7-1).=20 You may be better off asking questions related to cygwin on the cygwin mailing list. >=20 > Running script now stop during the lexical parsing with > message like: >=20 > /cygdrive/c/open/wpkg/wa.sh: > wa.sh: line 38: syntax error near unexpected token `newline' >=20 > '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. --=20 Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigAE3F3F7A9A862F0FA040B547 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/ iQEcBAEBCAAGBQJNBjVkAAoJEKeha0olJ0NqB4MH/Awf1NCsjPvrVwDWjmplyASQ Wqe/ZhcFCKNXsetwUxA89s7FiImYCKQw2UlmfEWS47j56WrUUSwkTcj+OyXaKdll ZECAOk0LbcvjeMeu1WyeCyS+2p0hRvLqeII/XOKjzXtZreasf/dhTHtLGEoWGG/B e3z8S2yfFvPNCwJcWNyPsvM87uQRhYSBT9ueiaWC0XHTq/WxLNBkQucBMGvyaeSk Cm5VeYZxYrpc1FZ0vBmaDdk6jgYa1rDVtA78BUj+MOraU1j2ZxgnMkCArR3yAzqa 58jQjHKnuN5Tnrk7yK7oubZWZTAobxyviseQ/EBJxeBOHz21dW9VcY2HvHYXDnk= =4024 -----END PGP SIGNATURE----- --------------enigAE3F3F7A9A862F0FA040B547-- From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 13 11:01:43 2010 Received: (at 7624) by debbugs.gnu.org; 13 Dec 2010 16:01:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSAqN-00088S-6Q for submit@debbugs.gnu.org; Mon, 13 Dec 2010 11:01:43 -0500 Received: from mx.meyering.net ([82.230.74.64]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSAqL-000889-U1 for 7624@debbugs.gnu.org; Mon, 13 Dec 2010 11:01:42 -0500 Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id CE4B16010D; Mon, 13 Dec 2010 17:07:50 +0100 (CET) From: Jim Meyering To: Eric Blake Subject: Re: bug#7624: new line in bash 3.00/3.2.49 In-Reply-To: <4D063560.7090008@redhat.com> (Eric Blake's message of "Mon, 13 Dec 2010 08:01:52 -0700") References: <64505.27501.qm@web29709.mail.ird.yahoo.com> <4D063560.7090008@redhat.com> Date: Mon, 13 Dec 2010 17:07:50 +0100 Message-ID: <87wrndbqqx.fsf@meyering.net> Lines: 10 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: 7624 Cc: 7624@debbugs.gnu.org, agneray christian X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) tags 7634 notabug close 7634 tags 7624 notabug close 7624 tags 7625 notabug close 7625 thanks Hi Eric, Thanks for replying. I've tagged a few as non-bugs and closed them. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 13 11:04:29 2010 Received: (at control) by debbugs.gnu.org; 13 Dec 2010 16:04:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSAt2-0008CY-Rm for submit@debbugs.gnu.org; Mon, 13 Dec 2010 11:04:29 -0500 Received: from mx.meyering.net ([82.230.74.64]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PSAt0-0008CN-Pr for control@debbugs.gnu.org; Mon, 13 Dec 2010 11:04:27 -0500 Received: by rho.meyering.net (Acme Bit-Twister, from userid 1000) id A1C816010D; Mon, 13 Dec 2010 17:10:37 +0100 (CET) From: Jim Meyering To: control@debbugs.gnu.org Subject: close non-bugs Date: Mon, 13 Dec 2010 17:10:37 +0100 Message-ID: <87r5dlbqma.fsf@meyering.net> Lines: 8 MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -5.7 (-----) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.7 (-----) tags 7634 notabug close 7634 tags 7624 notabug close 7624 tags 7625 notabug close 7625 thanks From unknown Tue Jun 17 20:13:27 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Tue, 11 Jan 2011 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator
Hello,
I have 2 new (to me) problems, prob= ably with differents=0Acauses, so I'm posting each one separatly:=0A=0A

1/ new line in bash 3.00/3.2.49

=0A=0A

2/ heap allocation on Windows Vista

=0A=0A

1/ new line in bas= h 3.00/3.2.49

=0A=0A

I'm using "sh-3.00" since ye= ars on my winXP=0Adesktop. I get used to fews bugs that can be easily avoid= ( eg [ ! a file.txt ] ).

=0A=0A

Lately, I tried t= he "bash, version 3.2.49" (Latest Cy= gwin DLL release version is=0A1.7.7-1).

=0A=0A

Ru= nning script now stop during the lexical parsing with=0Amessage like:

= =0A=0A

/cygdrive/c/op= en/wpkg/wa.sh:=0Awa.sh: line 38: syntax error near unexpected token `newlin= e'

=0A=0A

'= cygdrive/c/open/wpkg/wa.sh:=0Awa.sh: line 38: `;;esac

=0A=0A

When I add en # comment at the end of line, the error=0Av= anishes.

=0A=0A

The cause can easily be found. In = the meantime (3.00 - 3.2)=0Athe newline routine has been changed ; this iss= ue has already been identified,=0Awith no fixed decision cf (2006-06/msg008= 63)

=0A=0A

So when I use a windows editor (notepad= .exe) to edit my script I won't=0Aescape this limitation.

=0A=0A

Is there any action planned ?

=0A=0A

http://cygwin.com= /ml/cygwin/2006-06/msg00863.html

=0A=0A

/cygdrive= /c/Documents: line 48: syntax error near unexpected=0Atoken `newline'

= =0A=0A

I renamed the local "getline" into=0A"get_line= " in all files, and it was enough.

=0A=0A
Christian