[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Settor functions and initialization



| Calling settors at startup time shouldn't be necessary at all, since all
| the variables should be inherited from the environment unchanged (modulo
| present bugs in closure preservation).

Not true.  Consider the sequence

; su
Password:
# es
; 

Doing su root changes $PATH. Entering es should then set $path
accordingly. (As I have previously pointed out, exporting both PATH and
path is wrong since in this case the result depends on which of set-path
and set-PATH gets called first.)

I am sure you can think of other cases where an intermediate process
changes the environment so that an inferior es will have to change it back
in order to keep things consistent.

- Harald