bug-global
[Top][All Lists]
Advanced

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

Re: global -u can't parse file path with spaces.


From: Shigio YAMAGUCHI
Subject: Re: global -u can't parse file path with spaces.
Date: Wed, 19 Jun 2013 10:29:42 +0900

Hello,
I have recognized reappearance of the bug in my UNIX too.
I have made a patch to fix it. It works well in my UNIX.
If possible, would you please try the patch?
It will be included in the next release.

Thank you for your report.

Index: global.c
===================================================================
RCS file: /sources/global/global/global/global.c,v
retrieving revision 1.268
diff -c -r1.268 global.c
*** global.c    8 Feb 2013 05:28:58 -0000       1.268
--- global.c    19 Jun 2013 01:09:27 -0000
***************
*** 645,657 ****
                                        die("rel2abs failed.");
                                single_update = regular_path_name;
                        }
!                       strbuf_puts(sb, " --single-update=");
!                       strbuf_putc(sb, '"');
!                       strbuf_puts(sb, single_update);
!                       strbuf_putc(sb, '"');
                }
                strbuf_putc(sb, ' ');
!               strbuf_puts(sb, dbpath);
                if (system(strbuf_value(sb)))
                        exit(1);
                strbuf_close(sb);
--- 645,656 ----
                                        die("rel2abs failed.");
                                single_update = regular_path_name;
                        }
!                       strbuf_puts(sb, " --single-update");
!                       strbuf_putc(sb, ' ');
!                       strbuf_puts(sb, quote_shell(single_update));
                }
                strbuf_putc(sb, ' ');
!               strbuf_puts(sb, quote_shell(dbpath));
                if (system(strbuf_value(sb)))
                        exit(1);
                strbuf_close(sb);

On Tue, 18 Jun 2013 18:17:14 +0800
yun sheng <address@hidden> wrote:

> What is your environment(OS)?
> Windows XP SP3
> 
> Which version of GLOBAL are you using?
> GLOBAL 6.2.8 Win32
> 
> What did you do? (command line)
> 1, generate gtags for a project which path contains spaces
>     C:\sheng yun\project
> 2, run global -u
> 
> What did you expect from it?
> The gtags database should be updated.
> 
> What was occurred?
> the database was not updated because of the spaces in the path.
> And the following error occured:
> 
> `gtags: directory 'c:/sheng' not found.`
> 
> 
> Best regards,
> Sheng Yun
> 


-- 
Shigio YAMAGUCHI <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3



reply via email to

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