From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53056 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Peter_M=C3=BCnster?= Newsgroups: gmane.comp.tex.context Subject: Re: setting variable on cmd-line Date: Mon, 21 Sep 2009 07:39:22 +0200 (CEST) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1253511611 21929 80.91.229.12 (21 Sep 2009 05:40:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2009 05:40:11 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 21 07:40:04 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.50) id 1Mpbd6-0007bm-1R for gctc-ntg-context-518@m.gmane.org; Mon, 21 Sep 2009 07:40:04 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9078AC9A9B; Mon, 21 Sep 2009 07:40:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Pd1B1ZR1L1pR; Mon, 21 Sep 2009 07:39:55 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8855DC9A63; Mon, 21 Sep 2009 07:39:54 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3EFE7C9A1F for ; Mon, 21 Sep 2009 07:39:48 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id LKAcvETKFLks for ; Mon, 21 Sep 2009 07:39:43 +0200 (CEST) Original-Received: from smtp19.orange.fr (smtp19.orange.fr [80.12.242.17]) by balder.ntg.nl (Postfix) with ESMTP id A89D6C9A47 for ; Mon, 21 Sep 2009 07:39:25 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1907.orange.fr (SMTP Server) with ESMTP id 5EFB420000A5 for ; Mon, 21 Sep 2009 07:39:25 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1907.orange.fr (SMTP Server) with ESMTP id 520E520000A3 for ; Mon, 21 Sep 2009 07:39:25 +0200 (CEST) Original-Received: from gaston.couberia.bzh (ARennes-358-1-125-243.w92-129.abo.wanadoo.fr [92.129.36.243]) by mwinf1907.orange.fr (SMTP Server) with ESMTP id CFD2F20000A5 for ; Mon, 21 Sep 2009 07:39:22 +0200 (CEST) X-ME-UUID: 20090921053922851.CFD2F20000A5@mwinf1907.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id 5E409300C5; Mon, 21 Sep 2009 07:39:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.couberia.bzh (Postfix) with ESMTP id 5C88B300C0 for ; Mon, 21 Sep 2009 07:39:22 +0200 (CEST) X-X-Sender: peter@gaston.couberia.bzh In-Reply-To: User-Agent: Alpine 2.00 (LNX 1167 2008-08-23) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:53056 Archived-At: On Sun, 20 Sep 2009, luigi scarso wrote: > > test-file: > > > > \starttext > > Value of myVar: \ctxlua{tex.print(document.arguments["arguments=myVar"])} > > \stoptext > > > > cmd-line: > > > > context --arguments=myVar=myValue test > > > > But this syntax is very strange! > Does > context --arguments="myVar=myValue" test > work too ? Yes, I'm using bash, so --arguments="myVar=myValue" is the same as --arguments=myVar=myValue That means, context does not see the quotes. But I've also tried this: context --arguments=\"myVar=myValue\" test Error: MTXrun | unknown script 'context --arguments="myVar=myValue.lua' or 'mtx-context --arguments="myVar=myValue.lua' Cheers, Peter -- Contact information: http://pmrb.free.fr/contact/ ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________