autoconf-patches
[Top][All Lists]
Advanced

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

Re: [PATCH 1/2] Fix detection of GNU M4 on mksh


From: Zack Weinberg
Subject: Re: [PATCH 1/2] Fix detection of GNU M4 on mksh
Date: Tue, 17 Oct 2023 09:31:43 -0400
User-agent: Cyrus-JMAP/3.9.0-alpha0-1019-ged83ad8595-fm-20231002.001-ged83ad85

On Sun, Oct 15, 2023, at 2:58 AM, KO Myung-Hun wrote:
> Zack Weinberg wrote:
>> On Sat, Oct 14, 2023, at 9:19 AM, KO Myung-Hun wrote:
>>> * m4/m4.m4 (AC_PROG_GNU_M4): Double-quotes $ac_snip2.
>> Please explain why it isn't also necessary to add double quotes
>> around all the other variable expansions in this check, particularly
>> $ac_snippet and $ac_path_M4.
>
> Because this test fails due to $ac_snip2

Details please?

> Anyway I've double-quoted $ac_snippet, too.

I think that's the right thing just as a general defensive measure.

> However, not required to $ac_path_M4, which does not contain NL.

Hmm. I want to say "how do you know it will _never_ contain an IFS
character" but probably Autoconf doesn't handle whitespace in the full
pathnames of programs reliably _anywhere_ and in fact that feature would
conflict with being able to do things like

    M4="gm4 -E" autoconf

so let's leave $ac_path_M4 as is.


zw



reply via email to

[Prev in Thread] Current Thread [Next in Thread]