From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15219 invoked by alias); 6 Mar 2012 20:07:14 -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: 30323 Received: (qmail 27007 invoked from network); 6 Mar 2012 20:07:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 Received-SPF: neutral (ns1.primenet.com.au: 209.85.212.171 is neither permitted nor denied by SPF record at ntlworld.com) Received-SPF: pass (google.com: domain of p.w.stephenson@ntlworld.com designates 10.216.131.232 as permitted sender) client-ip=10.216.131.232; Authentication-Results: mr.google.com; spf=pass (google.com: domain of p.w.stephenson@ntlworld.com designates 10.216.131.232 as permitted sender) smtp.mail=p.w.stephenson@ntlworld.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-proxyuser-ip:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding:x-gm-message-state; bh=MV9jUxfL36FUwsE5IZAFygyxpNuEDktTihUvd1ygfhU=; b=FpTmFOgUNt912SQvBQqSEorhbCLRZnC8dMDjGkxAOUDgyg2aVC7hL7kHYuux1qNSAN cTek5Z3PJpKMmNDciBJNxG964y/GPhWNAMCx9jveL5wJNtChUOPNy1EyN8k8Jmxx/rtJ XkaB8KfidAYYDFRJh2YyLAFyDAEcWbxA/wgaLS5IKpbOC+N/rSuS9CIDrvfRcrmikgI2 mOtDXO+HWMIElIeJnPUfjCnT4FgYUmE1nClLC53MwKGm8IHjKBSrJpRoGr6uGZp+w9I2 qNgSuhs94kE+q/g7ooEF/zTkisOBGIaXDviNbEEmulTKADWf0TbrA9Ss+NhJQ08eT/zl Eq2w== X-ProxyUser-IP: 86.6.29.42 Date: Tue, 6 Mar 2012 20:06:52 +0000 From: Peter Stephenson To: zsh-workers@zsh.org Subject: Re: Regarding emulate: a thought, and refresh my memory? Message-ID: <20120306200652.1617879b@pws-pc.ntlworld.com> In-Reply-To: <120303172521.ZM11549@torch.brasslantern.com> References: <120303172521.ZM11549@torch.brasslantern.com> X-Mailer: Claws Mail 3.8.0 (GTK+ 2.24.7; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkRavnu+bMtNHTb6rNH/9k9Yt2C7F8k9CQnEy+yXw0doWpoYzmk5L5WeaFz/38hUp3sgWAh On Sat, 03 Mar 2012 17:25:21 -0800 Bart Schaefer wrote: > The code in bin_emulate dating all the way back to Andrej's patch in > zsh-workers/26425 rejects the combination of -L and -c. The stated > reason for this is "do not confuse user who reads manuals." However, > the -c option always restores everything at the end, and anyway one > can always run > emulate zsh -c 'setopt localoptions; ...' > so I'm hoping someone can remind me why we bother throwing an error > on that combination. I can't imagine there's anything fundamental about it. > The reason I ask is because it suddenly popped into my head that the > emulate command might just as well parse other startup-time options > besides just -c. Can't see why not. I often do "emulate -L zsh; setopt extendedglob cbases", it would be sensible to put that in one command. -- Peter Stephenson Web page now at http://homepage.ntlworld.com/p.w.stephenson/