Explorar el Código

Merge pull request #4493 from mysterywolf/dfs_file

[dfs] cat命令执行后增加\n 与linux行为一致
Bernard Xiong hace 4 años
padre
commit
a7da2794b2
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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);
 }