From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/30859 Path: news.gmane.org!not-for-mail From: "Johan Sandblom" Newsgroups: gmane.comp.tex.context Subject: Re: problem in kpse.rb Date: Sun, 17 Sep 2006 09:45:04 +0200 Message-ID: <97a06f070609170045n4f2e50e9ubbf091a65be9f22c@mail.gmail.com> References: <97a06f070609161923pf190bd4lec69f54159eb04f0@mail.gmail.com> Reply-To: johan.sandblom@ki.se, mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1158479119 28864 80.91.229.2 (17 Sep 2006 07:45:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Sep 2006 07:45:19 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Sun Sep 17 09:45:17 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 ciao.gmane.org with esmtp (Exim 4.43) id 1GOrL1-0005Q1-TO for gctc-ntg-context-518@m.gmane.org; Sun, 17 Sep 2006 09:45:15 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5F0D41FD83; Sun, 17 Sep 2006 09:45:15 +0200 (CEST) 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 04425-05; Sun, 17 Sep 2006 09:45:09 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D9D091FDCF; Sun, 17 Sep 2006 09:45:08 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id F0B571FDCF for ; Sun, 17 Sep 2006 09:45:06 +0200 (CEST) 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 03849-06 for ; Sun, 17 Sep 2006 09:45:04 +0200 (CEST) Original-Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.175]) by ronja.ntg.nl (Postfix) with SMTP id AF5AC1FD83 for ; Sun, 17 Sep 2006 09:45:04 +0200 (CEST) Original-Received: by ug-out-1314.google.com with SMTP id e2so313399ugf for ; Sun, 17 Sep 2006 00:45:04 -0700 (PDT) Original-Received: by 10.67.29.12 with SMTP id g12mr6479248ugj; Sun, 17 Sep 2006 00:45:04 -0700 (PDT) Original-Received: by 10.67.20.20 with HTTP; Sun, 17 Sep 2006 00:45:04 -0700 (PDT) Original-To: "mailing list for ConTeXt users" In-Reply-To: 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:30859 Archived-At: Disappointingly, over here it doesn't work with two backslashes, only with one. Possibly because there are two texmf.cnf (minimal linux distro) which give different answers: ./texmf/web2c/texmf.cnf, which claims % A place for local additions to a "standard" texmf tree. % This tree is not used for local configuration maintained by % texconfig, it uses TEXMFCONFIG below. TEXMFLOCAL = $SELFAUTOPARENT/../texmf-local and ./texmf-local/web2c/texmf.cnf, which claims TEXMFMAIN = $SELFAUTOPARENT/texmf TEXMFLOCAL = $SELFAUTOPARENT/texmf-local TEXMFFONTS = $SELFAUTOPARENT/texmf-fonts Regards, Johan 2006/9/17, Sanjoy Mahajan : > > path = run("--expand-path=\\\$#{varname}") rescue '' > > > > to > > > > path = run("--expand-path=\$#{varname}") rescue '' > > I also ran into this (a few weeks ago on the list) and the patch I > sent Hans after testing it on my Ubuntu Linux laptop was to use two > backslashes: > > run("--expand-path=\\$#{varname}") > > so that Unix sees the command as, for example, > > kpsewhich --expand-path=\$TEXMFLOCAL > > which prevents the shell from expanding TEXMFLOCAL as a shell or > environment variable, leaving it for kpse to find it in texmf.cnf. > Interesting that \$ also works. I guess the \ gets passed unchanged, > so the $ still gets procted from the shell. > > By the way, the rescue '' doesn't do anything, since a failed run of > kpsewhich doesn't throw an exception. I think I have a patch for > that. > > Hans, should I resend those patches? > > -Sanjoy > > `Never underestimate the evil of which men of power are capable.' > --Bertrand Russell, _War Crimes in Vietnam_, chapter 1. > _______________________________________________ > ntg-context mailing list > ntg-context@ntg.nl > http://www.ntg.nl/mailman/listinfo/ntg-context > -- Johan Sandblom N8, MRC, Karolinska sjh t +46851776108 17176 Stockholm m +46735521477 Sweden "What is wanted is not the will to believe, but the will to find out, which is the exact opposite" - Bertrand Russell