> Unfortunately, unset isn't portable.  I just don't see this as being a
> serious enough problem to worry about.

Oh c'mon. A portable fix for a confusing problem area is very simple:
        env |sed -e 's/=.*'/=/' >/tmp/clean$$
        for V in PATH HOME TR AWK ... ; do
                eval "save$V=$V"
        done
        . /tmp/clean$$
        for V in PATH HOME TR AWK ... do
                eval "$V=save$V ; export $V"
        done
Save the env vars sanity cares about, then by definition you don't care
what values the other env vars are. :)

_______________________________________________
Info-cvs mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/info-cvs

Reply via email to