You need to execute the script as: dot, space, setenv.sh:

. setenv.sh