From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10957 invoked by alias); 9 Feb 2011 00:46:36 -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: 28720 Received: (qmail 26304 invoked from network); 9 Feb 2011 00:46:22 -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: Tue, 08 Feb 2011 19:37:49 -0500 In-Reply-To: <20110208172056.6a985c90@pwslap01u.europe.root.pri> (Peter Stephenson's message of "Tue, 8 Feb 2011 17:20:56 +0000") 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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii >>>>> On February 8, 2011 Peter Stephenson wrote: > You can test if [[ $0 == zsh ]]. If it is, either you're running a > script helpfully called zsh, or you're not running a script at all. /bin/zsh -c 'echo $0' prints '/bin/zsh' so that's not exactly right I guess. Isn't there some case where it can end up '-zsh' as well? thanks, Greg