> I don't have the answer, but I'm just wondering whether order makes any > difference here: what if you write "export private" > rather than "private export"?
I had wondered and tested that too. It does not make a difference. > Might it be that "export" and "private" are just sort of semantic opposites > that > don't make sense? Kind of like combining "static extern" in C? > > You can always do this to give a specific command its needed environment > variable: > > BASH_ENV=$(bash_env) recipe command ... > > I.e. have an unexported bash_env variable which is then injected into the > specific command that needs it. You don't even have to make it private, since > the prerequisites don't reference it.