On Sun, 13 Jan 2008, Shigio YAMAGUCHI wrote:

2. New Specification

Synbolic link which points to a directory is accepted.

% gtags
% global -x main
main                4 a/main.c         main(int argc, char *argv[])
% ln -s a b
% gtags
% global -x main
main                4 a/main.c         main(int argc, char *argv[])
main                4 b/main.c         main(int argc, char *argv[])


Though I do not remember why to have made it to such a specification,
maybe it was to avoid parsing a file many times.
Anyway, I think it is bad specification or a bug.

Maybe you don't want to follow links that go out of the source tree (eg. /usr/include or whatever), but then you have to check every path component (boring but possible).

But worse, symlinks can create loops:

$ ln -s .. foo


HTH

--
[EMAIL PROTECTED]


_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to