On Thu, Feb 26, 2009 at 11:49 PM, Ben Fritz <[email protected]> wrote:
>> Attached patch makes it skip symbolic links to directory on unix platform.
>> I don't know how to do the same for other platforms (amiga?/windows?),
>> sorry :)
>>
>
> Well...Windows doesn't have symbolic links. But, it does have the
> possibility of hard links. Are those handled, too, on Unix?

I've thought about this too.

On linux, hard links is not an issue since it is only limited to files
(on my linux, at least, I'm assuming this is true for all UNIX). It's
links to directories that may be problematic due to possible cycle.

> Maybe you just need some sort of limit on the depth of the search,
> possibly controlled by an option.

Limiting the depth is not the solution [1], IMHO, as the cycle may be
present at any depth levels.

nazri

[1] It's already done in {unix,dos}_expandpath functions in misc1.c. The
hard limit is 100.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui