Re: \# within quotes

Jan Engelhardt <[email protected]> Thu, 18 Jul 2024 19:50:26 +0200 (CEST)
Newsgroups gmane.comp.sysutils.automake.general
Message-ID <[email protected]>
On Thursday 2024-07-18 15:40, Zack Weinberg wrote:
>On Thu, Jul 18, 2024, at 5:09 AM, Tijl Coosemans wrote:
>> Automake 1.17 produces a warning for the use of \# here:
>>
>> https://github.com/ddclient/ddclient/blob/d88e6438efbc53e977546693f6835f7517072a06/Makefile.am#L22
>
>subst = sed \
>	-e 's|@PACKAGE_VERSION[@]|$(PACKAGE_VERSION)|g' \
>	-e '1 s|^\#\!.*perl$$|\#\!$(PERL)|g' \
>	-e 's|@localstatedir[@]|$(localstatedir)|g' \
>        [etc]
>
>but I think the only portable way to define that variable is from
>outside the Makefile, e.g. by typing
>
>make 'HASH=#'
>
>every single time, ick.

How much if EBCDIC a thing still, or can we assume ASCII and use \x23?