From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10943 invoked by alias); 11 Feb 2011 19:25:32 -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: 28749 Received: (qmail 19591 invoked from network); 11 Feb 2011 19:25:25 -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: pass (ns1.primenet.com.au: SPF record at ntlworld.com designates 81.103.221.47 as permitted sender) Date: Fri, 11 Feb 2011 19:25:17 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: loading user startup files for zsh scripts Message-ID: <20110211192517.2f16b49b@pws-pc.ntlworld.com> In-Reply-To: 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> <110210192945.ZM31349@torch.brasslantern.com> X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.0; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Cloudmark-Analysis: v=1.1 cv=R50lirqlHffDPPkwUlkuVa99MrvKdVWo//yz83qex8g= c=1 sm=0 a=SCtnctIZPpwA:10 a=kj9zAlcOel0A:10 a=0QhtZkFNAAAA:8 a=NLZqzBF-AAAA:8 a=wlZirZTbwrKdo580kj0A:9 a=hWNabg-vCu8UD3i0c0WW237jh0cA:4 a=CjuIK1q_8ugA:10 a=KLYB3oV4TgcA:10 a=_dQi-Dcv4p4A:10 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 On Fri, 11 Feb 2011 11:28:43 -0500 Greg Klanderman wrote: > This appears to be due to support for the (undocumented) PATHSCRIPT > option, whereby the path is searched for the runscript, and therefore > the startup files must be read first so that PATH can be set properly. It's not undocumented. pindex(PATH_SCRIPT) pindex(NO_PATH_SCRIPT) pindex(PATHSCRIPT) pindex(NOPATHSCRIPT) cindex(path search, for script argument to shell) item(tt(PATH_SCRIPT) )( If this option is not set, a script passed as the first non-option argument to the shell must contain the name of the file to open. If this option is set, and the script does not specify a directory path, the script is looked for first in the current directory, then in the command path. See ifnzman(noderef(Invocation))\ ifzman(the section INVOCATION in zmanref(zsh)). ) -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/