setenv — set an environment variable then chain
C-shells have a built-in setenv command that does not chain. See the manual for each individual shell for its built-in command.
setenv is a chain-loading utility that sets the environment variable
to the value
and then chain loads to
next-prog with the execvp(3) function.
next-prog may contain its own command line options, which setenv will ignore.
val is not the same as unsetting the variable.
For that, see unsetenv(1).
val contain an equals
character, counter-intuitive things will happen to the environment.
As of version 1.34 this program no longer employs the GNU C library nor the BSD C library for environment variable handling. The previously documented workaround for those libraries' having memory leaks in their setenv(3) and clearenv(3) functions, is therefore no longer necessary.