| 30 | std::list<builtin_t> builtins; |
| 31 | |
| 32 | void LShBuiltin_Cd(int argc, char** argv){ |
| 33 | if(argc > 3){ |
| 34 | printf("cd: Too many arguments"); |
| 35 | } else if (argc == 2){ |
| 36 | if(chdir(argv[1])){ |
| 37 | printf("cd: Error changing working directory to %s\n", argv[1]); |
| 38 | } |
| 39 | } else chdir("/"); |
| 40 | |
| 41 | getcwd(currentDir, PATH_MAX); |
| 42 | } |
| 43 | |
| 44 | void LShBuiltin_Pwd(int argc, char** argv){ |
| 45 | getcwd(currentDir, PATH_MAX); |
nothing calls this directly
no outgoing calls
no test coverage detected