autoconf-patches
[Top][All Lists]
Advanced

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

Re: Avoid unportable nested double-quotes and backquotes.


From: Eric Blake
Subject: Re: Avoid unportable nested double-quotes and backquotes.
Date: Wed, 23 Jun 2010 06:56:24 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Mnenhy/0.8.2 Thunderbird/3.0.4

On 06/22/2010 10:04 PM, Ralf Wildenhues wrote:
> Hi Bruno,
> 
> * Bruno Haible wrote on Wed, Jun 23, 2010 at 02:43:12AM CEST:
>>>  Worse yet, not all shells understand 
>>> @code{"address@hidden"@dots{}\"@dots{}`"}
>>> -the same way.  There is just no portable way to use double-quoted
>>> +the same way (@pxref{pdksh}).
>>
>> Here I would refer to both 'ksh' and 'pdksh', because 'ksh' has a bigger
>> problem than 'pdksh'.
> 
> What is ksh's bigger problem with "`...\"...\"...`"?  Your previous
> emails in this thread don't seem to describe it, so far I've been
> of the opinion that, were it not for pdksh, this expression would be
> portable.

Furthermore, "`...\"...\"...`" is specified by POSIX.  Were it not for
pdksh, that would be the only compliant way to write it.

> 
> My patch adds an example for ksh's issue with "`..."..."...`",

Remember that POSIX says that "`..."..."...`" is unspecified - maybe we
should add a sentence to that effect.

> the pdksh
> reference was to avoid repeating an example for its issue with
> "`...\"...\"...`" here.

I agree that it's nice to have only one mention of the bug, and the
other location link to it.  But maybe it would be better to move things
in the other direction, and have the pdksh section link to the ``
section, so that all the pitfalls of `` are contained in one section.

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