From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79419 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Dash equivalent of $BASH_SOURCE (for setuptex) Date: Wed, 21 Nov 2012 19:45:43 +0100 Message-ID: References: <20121121183531.40d0959d@iram-hb-003386.extra.cea.fr> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1353523557 24585 80.91.229.3 (21 Nov 2012 18:45:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 21 Nov 2012 18:45:57 +0000 (UTC) Cc: mailing list for ConTeXt users To: Alan BRASLAU Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 21 19:46:06 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TbFJB-0003Rd-Fv for gctc-ntg-context-518@m.gmane.org; Wed, 21 Nov 2012 19:46:01 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9F7EA103D7; Wed, 21 Nov 2012 19:45:50 +0100 (CET) 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 fS1q9TaDXsHg; Wed, 21 Nov 2012 19:45:48 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 40B441036F; Wed, 21 Nov 2012 19:45:48 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id D65821036F for ; Wed, 21 Nov 2012 19:45:46 +0100 (CET) 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 m3OilxxFAyXo for ; Wed, 21 Nov 2012 19:45:46 +0100 (CET) Original-Received: from filter3-utr.mf.surf.net (filter3-utr.mf.surf.net [195.169.124.154]) by balder.ntg.nl (Postfix) with ESMTP id 08374102DF for ; Wed, 21 Nov 2012 19:45:45 +0100 (CET) Original-Received: from mail-qc0-f169.google.com (mail-qc0-f169.google.com [209.85.216.169]) by filter3-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qALIjiQB012037 for ; Wed, 21 Nov 2012 19:45:45 +0100 Original-Received: by mail-qc0-f169.google.com with SMTP id t2so6454481qcq.14 for ; Wed, 21 Nov 2012 10:45:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PUXqiKM/8L/eO8e5uSlCDFSnvZBBSYoKDrdGTneDEl0=; b=LFG1tRdYjCnGJXR0Ia85omvs2iGNSrWNz2Bsn260U5ttMp5DXsDGFY9s2WEZPS7Zph ALp2eBxavB3YxP7eo+Ff08qJRUwnSRxfWTWSh+Fo4LZflGoJRWtlFg7OgwpN/vH0mN9/ W645lIgEE/fUW4AYqGOGg1a0WoirjQTZ46xIb4vQ5NThDD9KxVwrtKfdxz0ObjH54Gfo Kaw59xxcDbrH7S07KTq1yMiu+n4Kebq8vvg6KyjWZOV9WK3d23Gr1hRMPauyY2eHFtEl LZ25Yd7yFuzmdNtr5ZcIYluJTdZzaJlr3pkmkJfg18mGhA/+umgbNW+xHnSKCzWpcBCF brog== Original-Received: by 10.49.95.73 with SMTP id di9mr22166038qeb.37.1353523543974; Wed, 21 Nov 2012 10:45:43 -0800 (PST) Original-Received: by 10.49.61.36 with HTTP; Wed, 21 Nov 2012 10:45:43 -0800 (PST) In-Reply-To: <20121121183531.40d0959d@iram-hb-003386.extra.cea.fr> X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.216.169; 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: 08IqiJI36 - 92cf4291fa5e - 20121121 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.154 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79419 Archived-At: On Wed, Nov 21, 2012 at 6:35 PM, Alan BRASLAU wrote: > > 3 Sourcing the script (not calling it as an executable) as > "source script" or ". script" will return as $0 "/bin/bash" or > "/usr/local/bin/bash" or "/bin/sh" or whatever shell is in use. > This is your problem, I believe. True. But Peter's idea is also not that bad. The drawback is that the distribution cannot be moved to a different directory then, but one could also have combination of both approaches somehow. Mojca ___________________________________________________________________________________ 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 ___________________________________________________________________________________