info-cvs
[Top][All Lists]
Advanced

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

Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20


From: Rich Salz
Subject: Re: CVS 1.11 sanity.sh fails at multiroot-log-1 under HPUX 10.20
Date: Thu, 26 Oct 2000 12:41:23 -0400

> 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. :)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]