bug-global
[Top][All Lists]
Advanced

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

failure when searching by complete filename with -P and --color=always o


From: William Xu
Subject: failure when searching by complete filename with -P and --color=always options
Date: Tue, 29 Dec 2015 22:47:19 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)

Hi,

I find a nasty bug that when searching a filename with its complete
path, together with -P and --color=always options, the returned file
path is incorrect, missing a "../" at the front.  Below is steps for
reproducing.

version: global (GNU GLOBAL) 6.5.2
OS: Mac OS 10.11.2

---------------------------------8<------------------------------------- 
$ tree .
.
|-- GPATH
|-- GRTAGS
|-- GTAGS
`-- hi
    |-- bar.cpp
    |-- foo.cpp
    `-- what

2 directories, 5 files

$ cd hi/what
$ global -P --color=always  foo.cpp
../foo.cpp

$ global -P --color=always  hi/foo.cpp
foo.cpp
^^^^^^^ (this is wrong!!)

$ global -P   hi/foo.cpp
../foo.cpp
---------------------------------8<-------------------------------------

-- 
William

Never have so many understood so little about so much.
                -- James Burke




reply via email to

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