From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/32286 Path: news.gmane.org!not-for-mail From: "Mojca Miklavec" Newsgroups: gmane.comp.tex.context Subject: Re: \ifshellescape Date: Tue, 26 Dec 2006 23:33:28 +0100 Message-ID: <6faad9f00612261433s6e7da718if20b4d2714f141c9@mail.gmail.com> References: <6faad9f00612260535n7b044a6fq3f690cc16ec30fba@mail.gmail.com> <45919FEF.40602@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1167172441 31057 80.91.229.10 (26 Dec 2006 22:34:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 26 Dec 2006 22:34:01 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Tue Dec 26 23:33:58 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by dough.gmane.org with esmtp (Exim 4.50) id 1GzKro-0004o7-DI for gctc-ntg-context-518@m.gmane.org; Tue, 26 Dec 2006 23:33:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BDBB520019; Tue, 26 Dec 2006 23:31:59 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19448-03-3; Tue, 26 Dec 2006 23:31:49 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 3868C1FF2A; Tue, 26 Dec 2006 23:31:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 6153D20019 for ; Tue, 26 Dec 2006 23:31:46 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 19448-03-2 for ; Tue, 26 Dec 2006 23:31:42 +0100 (CET) Original-Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.187]) by ronja.ntg.nl (Postfix) with SMTP id 087571FEFD for ; Tue, 26 Dec 2006 23:31:41 +0100 (CET) Original-Received: by nf-out-0910.google.com with SMTP id l37so4313516nfc for ; Tue, 26 Dec 2006 14:33:28 -0800 (PST) Original-Received: by 10.49.65.19 with SMTP id s19mr14669401nfk.1167172408756; Tue, 26 Dec 2006 14:33:28 -0800 (PST) Original-Received: by 10.48.209.2 with HTTP; Tue, 26 Dec 2006 14:33:28 -0800 (PST) Original-To: "mailing list for ConTeXt users" In-Reply-To: <45919FEF.40602@wxs.nl> Content-Disposition: inline X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:32286 Archived-At: On 12/26/06, Hans Hagen wrote: > Peter M=FCnster wrote: > > On Tue, 26 Dec 2006, Mojca Miklavec wrote: > > > > > >> is there any command to test for write18/shell escape available in Con= TeXt? > >> > > There is such a command in pdfTeX-1.40 but I don't remember the name > > (I think it's "\ifshellescape"). > > Cheers, Peter > > > > > >grep shellescape *.tex > core-job.tex:\ifx\pdfshellescape\undefined \else > core-job.tex: \chardef\systemcommandmode \ifcase\pdfshellescape > \plusone \else \plustwo \fi > > so \systemcommandmode is your friend Wait! So many alternatives that I'll have to create another function to choose one of them randomly ;) Thanks a lot, (I'll use \systemcommandmode then), Mojca