I was going through exec command. The function of exec command is to replace the current shell process with command supplied as arguments.

But I was wondering why would anyone want to do that?