Hey everyone, I was tossed a program by one of my instructors to write a cd command in a mini shell he had written for our operating systems class, and the mini shell run on a linux server...

the method chdir(filename) will "change the directory" and return 0 if successful and -1 if the directory isn't found, in the C library however i need to be able to change the prompt of the line to show you are now in the new directory and i need to have the damn thing stay in that directory until i cd again out of it.

so if anyone can help that would be freaking great!