From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/53078 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 21:43:07 +0200 (CEST) Message-ID: References: <4AB733C9.3050805@wxs.nl> 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 1253562219 23358 80.91.229.12 (21 Sep 2009 19:43:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 21 Sep 2009 19:43:39 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Sep 21 21:43:32 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 1MponI-0003BJ-BB for gctc-ntg-context-518@m.gmane.org; Mon, 21 Sep 2009 21:43:28 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D7996C9AE3; Mon, 21 Sep 2009 21:43:26 +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 4M9-8D1xP1+6; Mon, 21 Sep 2009 21:43:20 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D0895C9A81; Mon, 21 Sep 2009 21:43:19 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3AD92C9A81 for ; Mon, 21 Sep 2009 21:43:17 +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 80olBy7MoLlx for ; Mon, 21 Sep 2009 21:43:09 +0200 (CEST) Original-Received: from smtp2a.orange.fr (smtp2a.orange.fr [80.12.242.139]) by balder.ntg.nl (Postfix) with ESMTP id 6FB57C9A70 for ; Mon, 21 Sep 2009 21:43:09 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2a09.orange.fr (SMTP Server) with ESMTP id E1CA470000AA for ; Mon, 21 Sep 2009 21:43:08 +0200 (CEST) Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf2a09.orange.fr (SMTP Server) with ESMTP id D53E970000A6 for ; Mon, 21 Sep 2009 21:43:08 +0200 (CEST) Original-Received: from gaston.couberia.bzh (ARennes-358-1-19-36.w90-49.abo.wanadoo.fr [90.49.110.36]) by mwinf2a09.orange.fr (SMTP Server) with ESMTP id AFDF170000AA for ; Mon, 21 Sep 2009 21:43:08 +0200 (CEST) X-ME-UUID: 20090921194308720.AFDF170000AA@mwinf2a09.orange.fr Original-Received: by gaston.couberia.bzh (Postfix, from userid 1000) id 2C7D8306A9; Mon, 21 Sep 2009 21:43:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by gaston.couberia.bzh (Postfix) with ESMTP id 18FF2305AC for ; Mon, 21 Sep 2009 21:43:08 +0200 (CEST) X-X-Sender: peter@gaston.couberia.bzh In-Reply-To: <4AB733C9.3050805@wxs.nl> 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:53078 Archived-At: On Mon, 21 Sep 2009, Hans Hagen wrote: > > As I've written yesterday, I suppose, that the following syntax is wanted: > > \getvariable{environment}{myVar} but this does not work... > > how does it look with: > > local flag, value = argument:match("^%-+(.-)=(.-)$") > > .+ -> .- I've changed the line in mtxrun.lua and now it works fine, thanks Hans! There is another occurrence of this line in luatools.lua (line 3426), perhaps it should be changed there too? 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 ___________________________________________________________________________________