HELLO

I Am writin my own shell in linux, and making use of execvp() for handling internal commands but it does not supports cd...plz help

also if anyone can suggest some another way to handle internal calls except using system()

thanks in advance :-)

Well you'll need to call chdir() in the current process.

Each process has it's own "cd", so calling a process to change the current directory will only have a limited and local effect.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.