From 8e38ee884f3c11f5edf4884553757d4931116558 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Thu, 19 May 2022 22:55:42 +0200 Subject: [PATCH] Undo "+=" thing oh no this made no sense given that it was *prepending* to `rest`. --- src/builtins/path.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/builtins/path.cpp b/src/builtins/path.cpp index 4ddfbba96..5e09cbcfa 100644 --- a/src/builtins/path.cpp +++ b/src/builtins/path.cpp @@ -691,9 +691,7 @@ static int path_resolve(parser_t &parser, io_streams_t &streams, int argc, const real = normalize_path(*real, false); break; } - rest = wbasename(next); - rest += L'/'; - rest += rest; + rest = wbasename(next) + L'/' + rest; } if (!real) { continue;