Home
last modified time | relevance | path

Searched refs:shell_current_path (Results 1 – 2 of 2) sorted by relevance

/DragonOS-0.1.8/user/apps/shell/
Dcmd.c18 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()
[all …]
Dshell.c24 extern char *shell_current_path;
44 shell_current_path = (char *)malloc(3); in main_loop()
46 memset(shell_current_path, 0, 3); in main_loop()
47 shell_current_path[0] = '/'; in main_loop()
48 shell_current_path[1] = '\0'; in main_loop()
55 printf("[DragonOS] %s # ", shell_current_path); in main_loop()