Browse Source

[dfs] cat命令执行后增加\n 与linux行为一致

Meco Man 4 years ago
parent
commit
b7bfa04c06
1 changed files with 1 additions and 0 deletions
  1. 1 0
      components/dfs/src/dfs_file.c

+ 1 - 0
components/dfs/src/dfs_file.c

@@ -615,6 +615,7 @@ void cat(const char *filename)
         }
         }
     }
     }
     while (length > 0);
     while (length > 0);
+    rt_kprintf("\n");
 
 
     dfs_file_close(&fd);
     dfs_file_close(&fd);
 }
 }