From c6bffe7ceb80a9ed6132837a0edbe3be6dee5a68 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Sun, 29 May 2022 17:43:03 +0200 Subject: [PATCH] Clarify comment for resolve --- src/builtins/path.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/builtins/path.cpp b/src/builtins/path.cpp index c220bec4f..7e9071b0e 100644 --- a/src/builtins/path.cpp +++ b/src/builtins/path.cpp @@ -673,8 +673,8 @@ static int path_resolve(parser_t &parser, io_streams_t &streams, int argc, const auto real = wrealpath(*arg); if (!real) { - // The path doesn't exist, so we go up until we find - // something that does. + // The path doesn't exist, isn't readable or a symlink loop. + // We go up until we find something that works. wcstring next = *arg; // First add $PWD if we're relative if (!next.empty() && next[0] != L'/') {