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.

_______________________________________________
Bug-global mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to