From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12796 invoked by alias); 3 Mar 2016 20:44:33 -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: 38081 Received: (qmail 11000 invoked from network); 3 Mar 2016 20:44:31 -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-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=1SZl8JaeHoPQ6QqfcqEmUjxY6WH8dHfC/WcHUu7YAzY=; b=NpzoBYhybV4iEK6YoNdNR+/97UcD4A1MXWwNz3CGDEALLrnCp1+0JKt1tr6EocKwo2 /chjp2HFGoMdgna3R2GuadNwo0/NyBZmqpAvq1MeNgQMTy/8mONFGCvGznTlJsveeY20 pdy0y7lLVvrx0WnIisRZ+AK3e0ZeU2HplM59pJukAGDNdKUJVv6GNh/Kd2k+rxZJkzcj XnCxE7JAKwL8pZ5yKl1AnpVl4pDU2l/AERmPj3IO8R7bF56M1KskpH6TN9ulPiK4K2jq phmqjGC2cH0WO3jXShMQmil4FA8Jcizuvd8VqFbuUFQfXaPOyTAsvp3D7aWKbcnHN6XR Psog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version; bh=1SZl8JaeHoPQ6QqfcqEmUjxY6WH8dHfC/WcHUu7YAzY=; b=ZU9AjGB+2Q/Pxin+e4harEi9bVZAfXfy30+eh+DGjvzM/aQf4PF8e2q4zT8JtUYQC0 SCQgsDm85VUCUCaHNAAAWV0DdkEY9iA/CJHuAQf+0l1J6GMmPvwxouCrVlOSxcpkvutq AionuSkjAc/g7TRdi8EPP289slfTR5oirMnZJJCQ/zzAPsGp6FgMNP0h3ZCwABONVmAy T/s0IVU00n/ygMcT1jtuQo6BYtuD8q0L1Rbi3VsHuQCovWC8qdVRMZs+Hq7QN3jMIrDs BbMxmZiqhZaybQ4ifTEe1NiGdnMlLvcuOEG7IjX15/6SLiMActIOLjFEsuDDwp82q5/G NUOw== X-Gm-Message-State: AD7BkJIcsXW8tSmzK0TbyyUpPgNb/xK9BYV35q4EhWGj2ZSS56rYB8RPYhyIrhVcaWQvAQ== X-Received: by 10.66.251.194 with SMTP id zm2mr6629932pac.131.1457037867513; Thu, 03 Mar 2016 12:44:27 -0800 (PST) From: Bart Schaefer Message-Id: <160303124426.ZM16987@torch.brasslantern.com> Date: Thu, 3 Mar 2016 12:44:26 -0800 In-Reply-To: <87bn6vl5ez.fsf@lwm.klanderman.net> Comments: In reply to Greg Klanderman "Re: ZSH_SCRIPT" (Mar 3, 2:36pm) 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> <871t7s7ev6.fsf@lwm.klanderman.net> <20160303093702.7d28f80e@pwslap01u.europe.root.pri> <87mvqflbgh.fsf@lwm.klanderman.net> <20160303173730.45a8c8ee@pwslap01u.europe.root.pri> <87bn6vl5ez.fsf@lwm.klanderman.net> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: ZSH_SCRIPT MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Mar 3, 2:36pm, Greg Klanderman wrote: } } OK how do you like this? Sorry to seem mercurial, but I don't think there's any real reason that all those set?param() calls need to be inside createparamtable(). It could just as easily be [note precedent exists] diff --git a/Src/init.c b/Src/init.c index 4097327..5bad342 100644 --- a/Src/init.c +++ b/Src/init.c @@ -1089,6 +1089,8 @@ setupvals(char *cmd) if (cmd) setsparam("ZSH_EXECUTION_STRING", ztrdup(cmd)); + if (runscript) + setsparam("ZSH_SCRIPT", ztrdup(runscript)); } /* -- Barton E. Schaefer