bug-global
[Top][All Lists]
Advanced

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

Re: Gtags plugin fails at call to system function using vim 6.4


From: Shigio Yamaguchi
Subject: Re: Gtags plugin fails at call to system function using vim 6.4
Date: Sun, 05 Mar 2006 20:59:13 +0900

Hello,

Is it described that redirection is not supported?  Since redirection
is shell's function, there is no need to support it, I think.
However, I cannot say about Windows32 environment, since I don't have it.
You had better inquire about it in the vim mailing list.

Though GLOBAL doesn't support Windows, if the fix code works well in UNIX
environment, I will take it into the master source code of GLOBAL.

> This line in gtags.vim seems to be the problem:
> 
>     let stuff = system(cmd . '>' . tmpfile)
> 
> I am using vim/gvim version 6.4 and ctags 5.5.4.
> The tags file from ctags works just fine.
> If I use the global command from the command line, its seems to work OK.
> The problem is that in the above line, stuff is set with the output of 
> global,
> but the tmpfile is not created, i.e. the output redirection does not 
> happen.
> (I have determined this by running debug and stepping through the :Gtags
> function.) The result is a msg "No errors" and an empty Errors list window
> opens, even though the corresponding global command produces output
> when run from the command line.
> 
> I have experimented using the above form of the system function, and it
> does not redirect to the tmpfile. Looking at the vim help for the system
> function, it appears that the Gtags.vim usage of redirection is not really
> supported, instead it is showing use of the vim 'shellredir' option and
--
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]