I am trying to code, in C, a shell similar to that of Unix, with file execution functionality. I would like my shell to provide a command prompt to the user and if the input was an executable file name, then execute the file (like in any other OS). I know I have to use execv() and fork() as well as the process-id (pid) concept from the unistd.h library, but I am entirely confused on how to approach this problem. Any help is greatly appreciated.
P.S> I just realized I should've posted this in the Linux/Unix forum. Apologies.