At 10:57 -0400 10/26/00, Larry Jones wrote:
>
>They aren't random -- there's a well-defined set that the test suite
>uses if they're set:
>
>       TESTDIR - the directory to run the tests in
>       AWK     - the awk program to use
>       EXPR    - the expr program to use
>       ID      - the id program to use
>       TR      - the tr program to use
>
>All of them have default values, but they are not appropriate for some
>people.  (Note that these affect only the test suite itself, not CVS, so
>there's no danger of CVS working for the tester but not for the users
>based on their settings.)  These variables exist because people (plural)
>have needed them -- you're the very first person to report a problem
>running the tests because of a large environment.


Maybe it would be safer to clear the environment at the beginning of sanity.sh.

This is what I have used in the past to clear out unwanted stuff 
inside of a script.

        #! /bin/sh
        for VAR in `set | /usr/bin/sed -e 's/=.*//'`; do
            case $VAR in
                PATH )          ;;
                IFS )           ;;
                SHELL )         ;;
                USER )          ;;
                PS1 )           ;;
                PS2 )           ;;
                MAILCHECK )     ;;
                OPTIND )        ;;
                * )             unset $VAR; export $VAR;;
            esac
        done
        unset VAR
        PATH=/usr/bin
        export PATH

Modify it as you see fit and put it at the beginning of sanity.sh.

Fred
-- 
==
Fred Brehm, Sarnoff Corporation, [EMAIL PROTECTED]

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

Reply via email to