bug-global
[Top][All Lists]
Advanced

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

Re: GLOBAL 5.9.5 DOS/Win Patch


From: Jason Hood
Subject: Re: GLOBAL 5.9.5 DOS/Win Patch
Date: Thu, 19 May 2011 15:01:44 +1000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10

On 18/05/2011 16:53, Shigio YAMAGUCHI wrote:

About single quotes, I have modified them like follows:
since there is a possibility that command and variable substitutions
(`pwd`, $PATH) happen.

Ah, right, I knew there'd be a reason for it.  In that case, there's no
need to test djgpp, since it handles quotes itself.  And why not use a
character rather than a string?  That makes it:

        [gtags-cscope/find.c]

        #if defined(_WIN32) && !defined(__CYGWIN__)
        #define QUOTE '"'
        #else
        #define QUOTE '\''
        #endif

        snprintf(comline, sizeof(comline), "%s -d %c%s%c > %s", COMMON, QUOTE, 
pattern, QUOTE, temp1);

--
Jason.



reply via email to

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