From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/9728 Path: main.gmane.org!not-for-mail From: "Gregory D. Collins" Newsgroups: gmane.comp.tex.context Subject: Re: [Fwd: Texexec bug] Date: Tue, 05 Nov 2002 14:50:43 -0500 Sender: ntg-context-admin@ref.ntg.nl Message-ID: <3DC82113.6090702@cs.yale.edu> References: <5.1.0.14.1.20021105094510.0365aa10@server-1> <5.1.0.14.1.20021105120531.03385ba8@server-1> Reply-To: ntg-context@ref.ntg.nl NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1036525857 12149 80.91.224.249 (5 Nov 2002 19:50:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2002 19:50:57 +0000 (UTC) Return-path: Original-Received: from ref.vet.uu.nl ([131.211.172.13] helo=ref.ntg.nl) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1899ix-00039n-00 for ; Tue, 05 Nov 2002 20:50:55 +0100 Original-Received: from ref.ntg.nl (localhost.localdomain [127.0.0.1]) by ref.ntg.nl (Postfix) with ESMTP id 6200C10AE7; Tue, 5 Nov 2002 20:52:22 +0100 (MET) Original-Received: from netra.cs.yale.edu (netra.cs.yale.edu [128.36.229.21]) by ref.ntg.nl (Postfix) with ESMTP id 2FC8A10AE6 for ; Tue, 5 Nov 2002 20:51:06 +0100 (MET) Original-Received: from cs.yale.edu (vpn7.its.yale.edu [130.132.120.7]) by netra.cs.yale.edu (8.11.6/8.11.6) with ESMTP id gA5Jp4r30044 for ; Tue, 5 Nov 2002 14:51:04 -0500 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en Original-To: ntg-context@ref.vet.uu.nl X-Enigmail-Version: 0.65.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Errors-To: ntg-context-admin@ref.ntg.nl X-BeenThere: ntg-context@ref.ntg.nl X-Mailman-Version: 2.0.13 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.comp.tex.context:9728 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:9728 Hans Hagen wrote: > At 04:10 AM 11/5/2002 -0500, Gregory D. Collins wrote: > >> The part which is causing the problem is the system() call, when we >> need to escape the "&" under sh, but not when using the Windows shell. >> So perhaps the following: >> >> # If $SHELL contains "sh", it is probably UNIXish >> my $escapeshell = ($ENV{"SHELL"} =~ m/sh/i); >> >> ... >> >> # Then later, instead of: >> unless ($dosish) >> { if ($TeXFormatFlag == "&") { $TeXFormatFlag = "\\&" } >> if ($MpFormatFlag == "&") { $MpFormatFlag = "\\&" } } >> >> # We do: >> unless ($dosish && !$escapeshell) >> { if ($TeXFormatFlag == "&") { $TeXFormatFlag = "\\&" } >> if ($MpFormatFlag == "&") { $MpFormatFlag = "\\&" } } >> >> What do you think? > > > Did you test it? If it works we can do this (i don't have cygwin installed) I just tested it, it works on my system. -- Gregory D. Collins GPG key available at pgp.mit.edu keyserver, id 0xD2EECA60