From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25075 invoked by alias); 11 Feb 2011 01:51:18 -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: 28734 Received: (qmail 19161 invoked from network); 11 Feb 2011 01:51:06 -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: Thu, 10 Feb 2011 20:42:37 -0500 In-Reply-To: <110210095253.ZM30860@torch.brasslantern.com> (Bart Schaefer's message of "Thu, 10 Feb 2011 09:52:52 -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> <110209085358.ZM29014@torch.brasslantern.com> <110210095253.ZM30860@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> On February 10, 2011 Bart Schaefer wrote: > Change your shared file to have it require that $0 be passed as an > argument, e.g. > > source /the/shared/zshenv $0 Hmmm, AFAICT, when loading .zshenv, $0 is /bin/zsh even for shell scripts. It does contain the script path once in the script. Greg