My final question for the year 2015 or (until next week). Would anyone have an example of how to use getenv for FreeBSD. It doesn’t seem to exist, other than for a few ports that creates its own. This is another dedicated search that turn up nothing for FreeBSD. I ask myself many times, why?
https://www.mirbsd.org/htman/i386/man3/getenv.htm
setenv and unsetenv are straight forward, but getenv seems to be a myth.
If I got many environment running, and I want to close a single environment; I first want to fetch the correct environment and operate on it before sunsetting that environment. How do I force getenv to show what it can do?
https://www.mirbsd.org/htman/i386/man3/getenv.htm
setenv and unsetenv are straight forward, but getenv seems to be a myth.
If I got many environment running, and I want to close a single environment; I first want to fetch the correct environment and operate on it before sunsetting that environment. How do I force getenv to show what it can do?
Code:
setenv /my_environment I might have 10 of env of all types open and I want to use local commands, not global commands for each of them. Hosing the system brings upon many unsolved issues. I have been there to many times.
getenv /my_environment maybe I want to give the kernel some additional procedures before closing.
unsetenv /my_environment now it’s safer to close or at least it will provide me, peace of mind.