Single quotes inside here document

Eric Blake eblake@redhat.com
Tue Jan 18 22:59:00 GMT 2011


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---
> 
> 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...
> 
> 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.

-- 
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://cygwin.com/pipermail/cygwin/attachments/20110118/c0b3a186/attachment.sig>


More information about the Cygwin mailing list