Sfoglia il codice sorgente

Merge pull request #4493 from mysterywolf/dfs_file

[dfs] cat命令执行后增加\n 与linux行为一致
Bernard Xiong 4 anni fa
parent
commit
a7da2794b2
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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);
+    rt_kprintf("\n");
 
     dfs_file_close(&fd);
 }