delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD |
X-Spam-Check-By: | sourceware.org |
Message-ID: | <4D35AB94.9020005@redhat.com> |
Date: | Tue, 18 Jan 2011 08:02:44 -0700 |
From: | Eric Blake <eblake AT redhat DOT com> |
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: | cygwin AT cygwin DOT com |
Subject: | Re: Single quotes inside here document |
References: | <807he2fysk DOT fsf AT missioncriticalit DOT com> |
In-Reply-To: | <807he2fysk.fsf@missioncriticalit.com> |
OpenPGP: | url=http://people.redhat.com/eblake/eblake.gpg |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
--------------enigEEEEDD1E469D388CF2479105 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 01/18/2011 12:36 AM, Fabrice Niessen wrote: > --8<---------------cut here---------------start------------->8--- > sh: line 2: unexpected EOF while looking for matching `'' > sh: line 10: syntax error: unexpected end of file > --8<---------------cut here---------------end--------------->8--- >=20 > This is due to the apostrophe in the French labels (of the header line of= this > Excel CSV file) -- but people report me that exact same script works under > Linux... >=20 > Any idea on how to: > - circumvent this problem? > - or, eventually, do this better? This is a known bug in $() parsing in older versions of bash that has since been fixed in newer upstream bash. Try using the experimental bash 4.1.9-1 instead. --=20 Eric Blake eblake AT redhat DOT com +1-801-349-2682 Libvirt virtualization library http://libvirt.org --------------enigEEEEDD1E469D388CF2479105 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/ iQEcBAEBCAAGBQJNNauUAAoJEKeha0olJ0NqSD8IAJruJVgSQUA0xCKf8nnMc7BN yN4BTe/Fep6386ZsMcSBoqvm8awoDTJmD/LGUe5D8xKLXHgIDkXil8ICDlUkQ1nf zaMNvmxkuErLZvWy3vt3y60JfrGBZTiBcII/+oVYubnh6DKHobtXloiAHzNvrRR/ NHjgRTRzYshoRWUh547MGh78IOO+zwOu/nNJRWqHLIRSVrr6uDQ6IE7rWrjuJ8wt 3Qi6sxHfzYG0hn7O4LR9cZem9TwXwv/iEAOd7p3ev5WzFsQCOzk1+bGqCBBf1e6r NtHf3tpZi93BFkqzsf14ELU4hfns+Uh1bo4nuKPjINlhY0UXZwXpNuhHjtmsTuA= =FHwi -----END PGP SIGNATURE----- --------------enigEEEEDD1E469D388CF2479105--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |