From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/71288 Path: news.gmane.org!not-for-mail From: Vladimir Lomov Newsgroups: gmane.comp.tex.context Subject: Re: [PATCH] Small improvement for 'setuptex' Date: Fri, 23 Sep 2011 21:37:16 +0900 Message-ID: <20110923123716.GR21773@smoon> References: <20110922134608.GQ21773@smoon> 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: dough.gmane.org 1316781457 28657 80.91.229.12 (23 Sep 2011 12:37:37 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Sep 2011 12:37:37 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Sep 23 14:37:30 2011 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.69) (envelope-from ) id 1R750U-0006Mz-3O for gctc-ntg-context-518@m.gmane.org; Fri, 23 Sep 2011 14:37:30 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3AAE9CAFBD; Fri, 23 Sep 2011 14:37:29 +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 eYA39EYwG726; Fri, 23 Sep 2011 14:37:28 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 58FC7CAFB0; Fri, 23 Sep 2011 14:37:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E33A4CAFB0 for ; Fri, 23 Sep 2011 14:37:24 +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 Wp7SMTnPNygg for ; Fri, 23 Sep 2011 14:37:22 +0200 (CEST) Original-Received: from filter2-nij.mf.surf.net (filter2-nij.mf.surf.net [195.169.124.153]) by balder.ntg.nl (Postfix) with ESMTP id 8CFD7CAF37 for ; Fri, 23 Sep 2011 14:37:22 +0200 (CEST) Original-Received: from mail-bw0-f41.google.com (mail-bw0-f41.google.com [209.85.214.41]) by filter2-nij.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p8NCbLbb010000 for ; Fri, 23 Sep 2011 14:37:22 +0200 Original-Received: by bkbzs2 with SMTP id zs2so4516763bkb.14 for ; Fri, 23 Sep 2011 05:37:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=R2JjnCMDn53N6F/fH4snS1P+m8JPzXNACvTIOqNjy3Q=; b=CEspJQA6n0DwkPb8lsac1WDWt2hDgnB4FL/oEziOk3PR7YjsjRb2N6Nxq7aMlRhXi+ wtWhm2PdUxuh5OnsRr9ess5zdorj2ba7LV2im4c7OwL7HVqWgoI1PGdP/5z58n6c9zwU tqBYlmsSFPt3ubmuPgPvGlOoW+EYrOSsCCdTs= Original-Received: by 10.204.142.144 with SMTP id q16mr2620389bku.268.1316781441388; Fri, 23 Sep 2011 05:37:21 -0700 (PDT) Original-Received: from smoon ([188.168.157.119]) by mx.google.com with ESMTPS id fc13sm11419839bkc.0.2011.09.23.05.37.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 23 Sep 2011 05:37:20 -0700 (PDT) Mail-Followup-To: Vladimir Lomov , mailing list for ConTeXt users Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.214.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0aFAcBl3d - 627d01d39655 - 20110923 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.153 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:71288 Archived-At: Hello, ** Mojca Miklavec [2011-09-23 09:38:40 +0200]: > On Thu, Sep 22, 2011 at 15:46, Vladimir Lomov wrote: >> Hello. >> I'm using standard 'setuptex' file to set apropriate variables for my >> shell. I'd like to suggest small improvement for this file. See >> attached patch. >> P.S. The real use of this file is in my shell initialization scripts. >> It is sourced in specific way so I faced a situation when 'export' is >> required. Besides that unsetting unused variables also good habit to >> interactive session. > Done, thanks. > But I also unset TEXMFOS. I wasn't sure about that variable. Quick search (grep -r 'TEXMFOS' CONTEXT_MINIMAL/*) shows me a lot places where that variable is used. > Out of curiosity: why/when do you need export? In short: for shell session set up. IMHO, this is not right place to disscuss shell sessions, but I use `setuptex' for tmux window initialization (see here: https://github.com/vp1981/scripts/tree/master/tmux/scripts, files smoon{,3,4}, though I didn't test with export yet). --- WBR, Vladimir Lomov -- It is wise to keep in mind that neither success nor failure is ever final. -- Roger Babson ___________________________________________________________________________________ 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________