|
From: | Jean-Marc Saffroy |
Subject: | Re: [RFC] Treatment of symbolic link |
Date: | Sun, 13 Jan 2008 15:06:29 +0100 (CET) |
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 -- address@hidden
[Prev in Thread] | Current Thread | [Next in Thread] |