From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11902 invoked by alias); 7 Mar 2012 06:38:20 -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: 30325 Received: (qmail 11910 invoked from network); 7 Mar 2012 06:38:18 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at closedmail.com does not designate permitted sender hosts) From: Bart Schaefer Message-id: <120306223806.ZM11578@torch.brasslantern.com> Date: Tue, 06 Mar 2012 22:38:06 -0800 In-reply-to: <20120306202201.GD4383@yahoo.fr> Comments: In reply to Stephane Chazelas "Re: Regarding emulate: a thought, and refresh my memory?" (Mar 6, 8:22pm) References: <120303172521.ZM11549@torch.brasslantern.com> <20120306200652.1617879b@pws-pc.ntlworld.com> <20120306202201.GD4383@yahoo.fr> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: Regarding emulate: a thought, and refresh my memory? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Mar 6, 8:22pm, Stephane Chazelas wrote: } Subject: Re: Regarding emulate: a thought, and refresh my memory? } } 2012-03-06 20:06:52 +0000, Peter Stephenson: } [...] } > Can't see why not. I often do "emulate -L zsh; setopt extendedglob } > cbases", it would be sensible to put that in one command. } [...] } } What about special parameters like: } } zsh_options=(noshwordsplit noposixstrings...) } } emulate -L $zsh_options extendedglob Yes, that's the idea, just not the precise formulation. The first word (that doesn't begin with a hyphen) seen by "emulate" has to be the name of the emulation mode. So, based on PWS's feedback I've just committed 30320, which enables for example this: zsh_options=(noshwordsplit noposixstrings ...) emulate -L zsh --$^zsh_options --extendedglob Hmm, I should probably add a bit of doc to the description of the -c flag pointing out that only the emulation mode is sticky, not the full set of options one might throw in. Unless PWS, who knows more about how the sticky emulation works than I do, has a clever idea about that?