On Tue, Jan 9, 2024 at 5:35 PM Paul Smith <psm...@gnu.org> wrote: > Hi Dmitry;
Good morning, Paul. > As an example, for the -e change I experimented with simply going > through the variable database and switching the origin from o_env to > o_env_override or vice versa. Do you mean an alternative fix for https://savannah.gnu.org/bugs/?64803? Do i understand your idea correctly that you want to import all env variables as usual with origin o_env and then decode switches and then look if -e was specified and then go through the db and replace o_env with o_env_override? > > This works great EXCEPT that if we disable the -e option via MAKEFLAGS, > it doesn't actually change the global setting back again; a switch only > "enables" but the _lack_ of a switch never "disables". right. > > In order to make this work we'd need to have a way to reset the global > settings to their default values. Here, i lost track. What do you mean by "this"? Do you mean replacing o_env with o_env_override? > Does this make sense? The idea to update the db makes sense to me. regards, Dmitry