Explain the semantics of exec in more detail.