From 4e2ce0af4e1155b64305fbc244c3f571d35a7955 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 16 Mar 2022 19:20:58 +0100 Subject: [PATCH] pwd: Add newline to error message This would keep the cursor on the same line, which is annoying. --- src/builtins/pwd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtins/pwd.cpp b/src/builtins/pwd.cpp index 7e4de3f8d..6fd11b77e 100644 --- a/src/builtins/pwd.cpp +++ b/src/builtins/pwd.cpp @@ -61,7 +61,7 @@ maybe_t builtin_pwd(parser_t &parser, io_streams_t &streams, const wchar_t pwd = std::move(*real_pwd); } else { const char *error = std::strerror(errno); - streams.err.append_format(L"%ls: realpath failed: %s", cmd, error); + streams.err.append_format(L"%ls: realpath failed: %s\n", cmd, error); return STATUS_CMD_ERROR; } }