浏览代码

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

Meco Man 5 年之前
父节点
当前提交
b7bfa04c06
共有 1 个文件被更改,包括 1 次插入0 次删除
  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);
 }