Hi,
I am implementing a shell and would like to call specifically execv in the forked childs according to user input.
The user input however does not provide the extension for the commands that he inputs. For example, he provides "cat" but NOT "/bin/cat".
How should the extension be programmed into the execv system call? What is the manner most common manner?
Thanks.