Hello

The most recent /etc/init.d/apache2 has a for-loop to clear the environment
starting at line 6:

        for envkey in `env| cut -d'=' -f1`
        do
                unset $envkey
        done

This causes problems, since my root's environment has a multiline entry
(TERMCAP) starting like:

        TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
                :DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
                :cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
        [...]

Naturally this breaks things as env|cut doesn't handle it properly. Why not
use "env -i" to clear the environment?

Sami Kesäniemi


Reply via email to