-
Sergey Kosukhin authored
Both 'head -n 1' and 'sed 1q' exit after printing the first line, which closes the pipe and kills the compiler's process leaving it no chance to clean any temporary files it might have created (e.g. Intel compiler creates 'a.out' when it is called with additional flags like -I, -L, etc., which is the case when $CC/$FC is an MPI wrapper.
Sergey Kosukhin authoredBoth 'head -n 1' and 'sed 1q' exit after printing the first line, which closes the pipe and kills the compiler's process leaving it no chance to clean any temporary files it might have created (e.g. Intel compiler creates 'a.out' when it is called with additional flags like -I, -L, etc., which is the case when $CC/$FC is an MPI wrapper.