Re: :del and symlinks

Bram Moolenaar <[email protected]> Fri, 17 Sep 2004 20:37:05 +0200
Newsgroups gmane.comp.tools.aap.user
Message-ID <[email protected]>
Tim Hemel wrote:

> I have experienced a problem with symlinks with aap 1.068.
> 
> If i use :del {r}{f} dir  and dir contains a symlink that points to
> a non-existing file, aap complains and stops.

I cannot reproduce this.  For me Aap deletes the directory and
everything in it.

> I do not know what happens when it contains a link that points to its
> parent, creating an endless loop.

I did a simple test and it simply didn't delete the link pointing
upwards.  It runs into some limit and then breaks out of the loop.
Detecting a symlink loop is quite difficult...

-- 
DENNIS: You can't expect to wield supreme executive power just 'cause some
        watery tart threw a sword at you!
                 "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
 \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php