Hi Shigio, On Fri, May 15, 2009 at 07:43:05AM +0900, Shigio YAMAGUCHI wrote: > > My proposal is to introduce new 'nofollow' option for gtags that would > > make gtags not to descend to symbolic links pointing to directories. > ... > > It should detect and ignore recursive links (like find,ctags,cscope,.... > > do). > > What is the 'recursive links'? > (I understand that it is a symbolic link to a directory.) > > Does it mean a symbolic link which points to '.' or one of the parent > directories?
By recursive link, I mean a link (pointing to a directory) which creates a loop in directory structure, like this: ls -lR dir/ dir/: total 0 lrwxrwxrwx 1 puzel users 2 May 15 09:32 link -> .. -rw-r--r-- 1 puzel users 0 May 15 09:32 main.c Try running 'strace gtags' in 'dir' to see what happens. > > For example, making a symbolic link '/home/user/src/lib/recursive', > > Current directory: /home/user/src/lib > parent directories: /, /home, /home/user, /home/user/src Sorry, I'm afraid I don't understand this example. > Otherwise, the "ignoring recursive links" means simply not to trace same > directory twice? With proposed nofollow option, which I've describe in previous post, the recursive links should not make any troubles at all. When following symbolic links to directories (now default), gtags should detect the loop somehow. If I'm not mistaken, ctags does this by checking that a directory we are going into isn't parent of the current directory. -- Best regards / s pozdravem Petr Uzel, Packages maintainer --------------------------------------------------------------------- SUSE LINUX, s.r.o. e-mail: [email protected] Lihovarská 1060/12 tel: +420 284 028 964 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz _______________________________________________ Bug-global mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-global
