SO this is my first post in this forums. Hoping to get better feedback than the others I have tried.
I'm currently working on a project. We were assigned to do a simple linux shell in C. I have since improved the code a little, keep in mind I'm not C expert or linux expert, now using "lex" to tokenize the input from the user instead of strtok. I'm also looking to add some more functionality to the shell. I've done some google searches and such around on other forums and would like my own specific help not links to other boards.
Now to the issue at hand. Most of my basic commands are working, the problem is the command "cd" isn't. I thought it would just work with simple execvp() command, but I guess there is more that will have to go into it. I assume it has something to do with creating the path for the desired directory and such using chdir(). I can post my code around noonish to help better understand my logic. I guess what I'm getting at is i need some direction in getting "cd <directory>" to work.