mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-04 07:21:14 -03:00
Clarify comment for resolve
This commit is contained in:
@@ -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'/') {
|
||||
|
||||
Reference in New Issue
Block a user