make cd respect environment variables

This commit is contained in:
2021-07-17 22:11:11 -04:00
parent 6cbfcaee9a
commit a80bedf135
2 changed files with 60 additions and 8 deletions

View File

@@ -44,6 +44,11 @@ void exit_shell(StringArray *args);
*/
void change_directory(StringArray *args);
/**
* Print the current working directory.
*/
void print_current_directory();
/**
* Print all of the environment variables.
* @param args The arguments the user input.