Lines Matching refs:shell_current_path
18 char *shell_current_path = NULL; variable
56 int cwd_len = strlen(shell_current_path); in get_target_filepath()
65 strncpy(file_path, shell_current_path, cwd_len); in get_target_filepath()
135 int current_dir_len = strlen(shell_current_path); in shell_cmd_cd()
150 if (!strcmp("/", shell_current_path)) in shell_cmd_cd()
157 if (shell_current_path[index] == '/') in shell_cmd_cd()
160 shell_current_path[index] = '\0'; in shell_cmd_cd()
188 free(shell_current_path); in shell_cmd_cd()
190 shell_current_path = new_path; in shell_cmd_cd()
192 shell_current_path[dest_len] = '\0'; in shell_cmd_cd()
219 strncpy(new_path, shell_current_path, current_dir_len); in shell_cmd_cd()
227 free(shell_current_path); in shell_cmd_cd()
230 shell_current_path = new_path; in shell_cmd_cd()
257 struct DIR *dir = opendir(shell_current_path); in shell_cmd_ls()
302 if (shell_current_path) in shell_cmd_pwd()
303 printf("%s\n", shell_current_path); in shell_cmd_pwd()