|
|
|
|
|
by IshKebab
383 days ago
|
|
Yeah I think this is a big flaw of declarative systems. I see a Nix derivation that contains `foo: bar`. How do I know what this does? It's pretty much impossible to know without learning all of Nix, because anything can access it. If it was a function call you could just go-to-definition. Environment variables have a similar issue. It's often hard to know what they do because they could be used by basically anything at any time. |
|
I am trying to create a tool to help see exactly where and by which program any environment variable was set/exported since boot.
This is still in the conceptual phase but I'm looking into linux' ftrace to achieve this. Any ideas or pointers are welcome.