Hi I've been assigned to make a Shell in C. It works, but I do not get to change a directory with chdir? how should I use it? Should I use and environment variable?
Have you read the man page for chdir? As for an environment variable, I believe that one such variable is the current working directory of your program. You may need to save it if temporary changes are required.
Comment