Explorar el Código

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

Meco Man hace 5 años
padre
commit
b7bfa04c06
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);
 }