From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29519 invoked by alias); 9 Feb 2011 16:01:16 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 28725 Received: (qmail 10891 invoked from network); 9 Feb 2011 16:01:13 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at klanderman.net does not designate permitted sender hosts) From: Greg Klanderman To: zsh-workers@zsh.org Subject: Re: loading user startup files for zsh scripts Reply-To: gak@klanderman.net Date: Wed, 09 Feb 2011 11:01:08 -0500 In-Reply-To: <110208205856.ZM24066@torch.brasslantern.com> (Bart Schaefer's message of "Tue, 08 Feb 2011 20:58:56 -0800") Message-ID: User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.17 (linux) References: <19792.22365.139876.599478@gargle.gargle.HOWL> <110207213357.ZM22407@torch.brasslantern.com> <20110208172056.6a985c90@pwslap01u.europe.root.pri> <110208205856.ZM24066@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> On February 8, 2011 Bart Schaefer wrote: > The ZSH_NAME variable is always constructed from the tail of the path > name of the command interpreter, so if $0 is the same then you are not Is there any way to get the original $0 from within a file that's being source'd from .zshenv and when functionargzero hasn't been unsetopt'd? I've got a lot of people sharing a common set of startup files by having .zshenv simply source the shared top-level file. Much easier to modify the source'd file than getting people to change their .zshenv. Greg