From 6ed2396a2e41a184aa4aba7515a4fb381b518179 Mon Sep 17 00:00:00 2001 From: Patryk Obara Date: Sat, 28 Dec 2019 19:06:04 +0100 Subject: [PATCH] Print a newline after 'path' command --- src/shell/shell_cmds.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/shell/shell_cmds.cpp b/src/shell/shell_cmds.cpp index 8c9d8a85..95a6f594 100644 --- a/src/shell/shell_cmds.cpp +++ b/src/shell/shell_cmds.cpp @@ -1389,11 +1389,10 @@ void DOS_Shell::CMD_PATH(char *args){ return; } else { std::string line; - if(GetEnvStr("PATH",line)) { - WriteOut("%s",line.c_str()); - } else { - WriteOut("PATH=(null)"); - } + if (GetEnvStr("PATH", line)) + WriteOut("%s\n", line.c_str()); + else + WriteOut("PATH=(null)\n"); } }