title: Close the shell from fortran
body: <p>I am using the <code>system call("action")</code> routine in a fortran program to execute an external command. I would like to close the shell if the command is called.
  The example code I attached is:</p>
  
  <pre><code>program ai
  implicit none
  integer :: i
  
  i=1
  if (i.eq.1 ) then
       call system("exit")
  end if
  
  end program ai
  </code></pre>
  
  <p>I tried also with <code>CALL EXECUTE_COMMAND_LINE</code> but the result is the same, I can't close the shell in which I am working. I have to type by hand the command <code>exit</code> from the shell itself to close it. Any guess why this command do not work? While for instance, <code>mkdir</code>, <code>gnuplot</code>.. works?</p>
  
  <p>Thanks !</p>