Difference between "set" and "env"?
When trying to output a list of all the environment variables, I notice that there is a difference between "set" and "env". An obvious difference is that "set" outputs quoted strings and "env" does not quote. But of more concern is that "env" omits some of the variables that "set" displays.
Why are some variables that are displayed with "set" not displayed with "env"?
Is there a particular method of creating an environment variable that prevents it from being passed to a new environment?