mcandre / toys

code demos for newbies
https://github.com/mcandre/toys
30 stars 6 forks source link

env var linter #350

Closed mcandre closed 7 months ago

mcandre commented 1 year ago

Scan all running processes for nonstandard environment variable names that lack an underscore.

Because non-prefixed names are likely to collide with other applications.

Best when run as root.

Allowlist industry standard legacy names like C/C++ library and header include, PATH, HOME, IFS, etc.

mcandre commented 7 months ago

Note that it's a rather long, probably unmaintainable list of existing environment variables.