diff --git a/lib/spack/env/cc b/lib/spack/env/cc index 6b6073db430..2888c28c489 100755 --- a/lib/spack/env/cc +++ b/lib/spack/env/cc @@ -154,7 +154,7 @@ fi input_command="$@" if [ "$mode" == vcheck ] ; then - exec "${input_command}" + exec ${command} ${input_command} fi #