From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12174 invoked by alias); 5 Dec 2014 07:57:07 -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: 33852 Received: (qmail 27950 invoked from network); 5 Dec 2014 07:57:06 -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 X-CMAE-Score: 0 X-CMAE-Analysis: v=2.1 cv=IOK10brD c=1 sm=1 tr=0 a=FT8er97JFeGWzr5TCOCO5w==:117 a=kj9zAlcOel0A:10 a=q2GGsy2AAAAA:8 a=oR5dmqMzAAAA:8 a=-9mUelKeXuEA:10 a=A92cGCtB03wA:10 a=OrdFXKQm-QUVd-xU388A:9 a=CjuIK1q_8ugA:10 From: Bart Schaefer Message-id: <141204235649.ZM9615@torch.brasslantern.com> Date: Thu, 04 Dec 2014 23:56:49 -0800 In-reply-to: Comments: In reply to Mikael Magnusson "%? glob hack" (Dec 5, 8:46am) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh workers Subject: Re: %? glob hack MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Dec 5, 8:46am, Mikael Magnusson wrote: } Subject: %? glob hack } } ... If someone really uses [ %? ] a lot and is bothered by having } to quote the ?, they could just alias fg/bg to noglob fg/bg, or use } whatever the bash-esque option to keep failed globs is called. Or am I } missing something here? What you're missing is that you can use history search syntax in command name position, i.e. without any fg/bg in front of it to which to attach the "noglob" alias. That is, if "torch$ " is my prompt, torch$ %?Src will search for a job with "Src" in it and bring it to the foreground. It's true this was used a lot more often before there was a key binding for history-search-backward (and by people moving to zsh from csh, of which there is a steadily decreasing supply). On the other point: Just because you want %?string to work for history search does not mean you want nonomatch behavior on other globs.