Well, the HTML which htags generated with cgi option can't search on Win32
Platform.

I dig into the problem, I found that :

htags/global.cgi :
open(PIPE, "-|") || exec '@globalpath@', '--result=ctags-xid', '-e',
$pattern;

The problem is, the "-|" is not supported on Win32.

So, I wrote this patch.

Please review it.
Index: global-5.4/htags/global.cgi.tmpl.in
===================================================================
--- global-5.4.orig/htags/global.cgi.tmpl.in
+++ global-5.4/htags/global.cgi.tmpl.in
@@ -128,9 +128,9 @@ local(%ctab) = ('&', '&amp;', '<', '&lt;
 #
 $flags = $flag . $iflag . $oflag;
 if ($flags eq '') {
-	open(PIPE, "-|") || exec '@globalpath@', '--result=ctags-xid', '-e', $pattern;
+	open(PIPE, "@globalpath@ --result=ctags-xid -e $pattern |");
 } else {
-	open(PIPE, "-|") || exec '@globalpath@', '--result=ctags-xid', '-'.$flags, '-e', $pattern;
+	open(PIPE, "@globalpath@ --result=ctags-xid -$flags -e $pattern |");
 }
 if ($?) {	
 	print "@[EMAIL PROTECTED]@[EMAIL PROTECTED]";
_______________________________________________
Bug-global mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-global

Reply via email to