[Top][All Lists]

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

[bug #61805] .ONESHELL causes quoting in .SHELLFLAGS to not work as expe

From: Paul D. Smith
Subject: [bug #61805] .ONESHELL causes quoting in .SHELLFLAGS to not work as expected.
Date: Mon, 24 Jan 2022 01:24:35 -0500 (EST)

Follow-up Comment #4, bug #61805 (project make):

Thanks Dmitry.

There's already a targets/ONESHELL (ONESHELL is a special target, not a
variable) so I added your tests there, except for the first one (we definitely
don't want to use *echo -n* as it's not portable at all; there are no portable
arguments to the *echo* command) which I removed as there are already tests
there that can substitute for it.

This is not working on Windows, however.  Windows has some problems because
construct_command_argv_internal() assumes that any non-POSIX shell is cmd.exe
and creates a cmd.exe batch file which of course does not work with Perl (or
Python or whatever).

Really I cannot understand why the command line construction code is so
incredibly complicated.  However, of course this new behavior doesn't work in
previous versions of make either so it's not a regression.  I'm going to play
with fixing this and if it doesn't seem simple enough I may just disable the
new ONESHELL tests on Windows, for now.


Reply to this item at:


  Message sent via Savannah

reply via email to

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