From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16318 invoked by alias); 2 Mar 2016 21:25:10 -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: 38070 Received: (qmail 8558 invoked from network); 2 Mar 2016 21:25:07 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:subject:reply-to:in-reply-to:references:mime-version:content-type; s=smtpapi; bh=TztJH7D4OpFhO2YukQ6uT7ls08I=; b=RHu/U4GuRmRunsJgMJ 5RDSoemVIZhENZqPd6kmoASYKhmsKMO3svORv5u1BL3zyndQRowtK1OTBzUPsn89 DQIW7Q5C9ZI6kdMaKH0AdJ2AOzulgg2rDpYT6W6URmQ7xR6o27bp1uInioJbquin KQfgFd9U7ceCe20/m+Rk+skO8= From: Greg Klanderman To: zsh-workers@zsh.org Subject: Re: ZSH_SCRIPT Reply-To: Greg Klanderman Date: Wed, 02 Mar 2016 16:24:13 -0500 In-Reply-To: <56D74063.6020202@inlv.org> (Martijn Dekker's message of "Wed, 02 Mar 2016 20:34:59 +0100") Message-ID: <871t7s7ev6.fsf@lwm.klanderman.net> User-Agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.22 (linux) References: <22221.59800.803540.618862@lwm.klanderman.net> <160224143153.ZM28994@torch.brasslantern.com> <20160225093344.0d2499d5@pwslap01u.europe.root.pri> <87r3g08ycp.fsf@lwm.klanderman.net> <160225150425.ZM14095@torch.brasslantern.com> <87lh6384y5.fsf@lwm.klanderman.net> <20160301092746.1472ae95@pwslap01u.europe.root.pri> <87fuwa8dpk.fsf@lwm.klanderman.net> <20160301150707.2ee18f01@pwslap01u.europe.root.pri> <56D74063.6020202@inlv.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SG-EID: i+zOheVB0lMUqP0z3X/8PPLe+C1hDfxH7g5ommK/LCpQg8IILxrxmL/5TOmt/QrGIMDVyZmRNStf80 eJKcWY87TonnWgh3kkOhq0mqj7iqRdhAMkFduhrZl/wChAMQD3OUul/Wi70mAK2VZ8FFY/ELI+K2rf sgdhRaD0IayENDYfA1V9GnWqGGvGUIzLhloWASqDqron7SUOCMMADnIuBoDW8YMmELN2aPdxguXv1Z Y= X-SendGrid-Contentd-ID: {"test_id":"1456953861"} >>>>> On March 2, 2016 Martijn Dekker wrote: > Is there a particular reason why it should be empty rather than unset? > Unset seems more logical; if we're not running a script, the script name > is not the empty string but it doesn't exist. This would also make it > possible to do > [[ -v ZSH_SCRIPT ]] > to check if you're in a script. Hi Martijn, I'm happy to do it either way, but went with what had been discussed about 5 years ago when both Bart and Peter seemed to prefer empty to unset: http://www.zsh.org/mla/workers/2011/msg00183.html Bart> I think empty is OK, but let's hear from PWS. PWS> I think empty is much more Zen-like, so fits perfectly. Bart and Peter, can you let me know if that still holds? Greg