mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-31 23:28:45 +00:00
Clarify comment for resolve
This commit is contained in:
parent
1d4d238577
commit
c6bffe7ceb
1 changed files with 2 additions and 2 deletions
|
@ -673,8 +673,8 @@ static int path_resolve(parser_t &parser, io_streams_t &streams, int argc, const
|
||||||
auto real = wrealpath(*arg);
|
auto real = wrealpath(*arg);
|
||||||
|
|
||||||
if (!real) {
|
if (!real) {
|
||||||
// The path doesn't exist, so we go up until we find
|
// The path doesn't exist, isn't readable or a symlink loop.
|
||||||
// something that does.
|
// We go up until we find something that works.
|
||||||
wcstring next = *arg;
|
wcstring next = *arg;
|
||||||
// First add $PWD if we're relative
|
// First add $PWD if we're relative
|
||||||
if (!next.empty() && next[0] != L'/') {
|
if (!next.empty() && next[0] != L'/') {
|
||||||
|
|
Loading…
Reference in a new issue