bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC] Treatment of symbolic link


From: Shigio YAMAGUCHI
Subject: [RFC] Treatment of symbolic link
Date: Sun, 13 Jan 2008 19:19:13 +0900

How about changing the specification of directory traverse with symbolic link?

1. Current Specification

Synbolic link which points to a directory is ignored.

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

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.
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]