[bug #68404] Line continuation without whitespace when warnings flags are enabled

Jon Purdy <[email protected]> Wed, 27 May 2026 14:21:19 -0400 (EDT)
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <[email protected]>
--8323329-1714636915-1779906078=:563296
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

URL:=0A  <https://savannah.gnu.org/bugs/?68404>=0A=0A                 Summa=
ry: Line continuation without whitespace when warnings=0Aflags are enabled=
=0A                   Group: make=0A               Submitter: evincar=0A   =
            Submitted: Wed 27 May 2026 06:21:15 PM UTC=0A                Se=
verity: 3 - Normal=0A                Priority: 5 - Normal=0A              I=
tem Group: Enhancement=0A                  Status: None=0A                 =
Privacy: Public=0A             Assigned to: None=0A             Open/Closed=
: Open=0A         Discussion Lock: Unlocked=0A       Component Version: Non=
e=0A        Operating System: None=0A           Fixed Release: None=0A     =
      Triage Status: None=0A=0A=0A    _____________________________________=
__________________=0A=0AFollow-up Comments:=0A=0A=0A-----------------------=
--------------------------------=0ADate: Wed 27 May 2026 06:21:15 PM UTC By=
: Jon Purdy <evincar>=0AThe current manual (4.4.1 at the time of this writi=
ng) recommends using '$\'=0Aat the end of a line for "Splitting Without Add=
ing Whitespace".=0A=0Avar :=3D one$\=0A       word=0A=0AThis is very useful=
 for controlling precisely where whitespace is inserted,=0Abut as documente=
d, it relies on the fact that the undefined variable '$ ' has=0Aan empty ex=
pansion. Since I want to enable warnings about undefined variables,=0AI def=
ine this variable.=0A=0Aempty:=3D=0Aspace:=3D$(empty) $(empty)=0A$(space):=
=3D$(empty)=0A=0AHowever, I also want to enable warnings about otherwise in=
valid variable=0Anames, available in recent development versions. So I woul=
d suggest one of the=0Afollowing.=0A1. Make '$ ' predefined and empty=0A2. =
Exempt '$ ' from the invalid name warning=0A3. Allow selectively disabling =
this warning for a single variable, or a=0Arestricted scope=0A4. Add some o=
ther facility for line continuations with no whitespace, such as=0Aadopting=
 '$\' as syntax; this could allow preceding whitespace like '\'=0Aoutside o=
f POSIX mode=0A=0A=0A=0A=0A=0A=0A=0A    ___________________________________=
____________________=0A=0AReply to this item at:=0A=0A  <https://savannah.g=
nu.org/bugs/?68404>=0A=0A_______________________________________________=0A=
Message sent via Savannah=0Ahttps://savannah.gnu.org/=0A
--8323329-1714636915-1779906078=:563296
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCahc2HgAKCRCqLAuaBUf3
TuKHAP97dhBpKBCSG5jCgdg0Q4bHqRKX7z11akWtOdElpyoE8gEAtOUs/gyKWtQr
XBsrrEP1Sh6DcWCIhWRp2h6FcgEK2gA=
=fy2I
-----END PGP SIGNATURE-----

--8323329-1714636915-1779906078=:563296--