From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12324 invoked from network); 8 Mar 2007 17:54:50 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,FORGED_RCVD_HELO autolearn=ham version=3.1.8 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 8 Mar 2007 17:54:50 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 36478 invoked from network); 8 Mar 2007 17:54:40 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 8 Mar 2007 17:54:40 -0000 Received: (qmail 23679 invoked by alias); 8 Mar 2007 17:54:31 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 11243 Received: (qmail 23670 invoked from network); 8 Mar 2007 17:54:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 8 Mar 2007 17:54:30 -0000 Received: (qmail 35268 invoked from network); 8 Mar 2007 17:54:30 -0000 Received: from vms048pub.verizon.net (206.46.252.48) by a.mx.sunsite.dk with SMTP; 8 Mar 2007 17:54:23 -0000 Received: from torch.brasslantern.com ([71.116.117.231]) by vms048.mailsrvcs.net (Sun Java System Messaging Server 6.2-6.01 (built Apr 3 2006)) with ESMTPA id <0JEL00GIQIRBPKF0@vms048.mailsrvcs.net> for zsh-users@sunsite.dk; Thu, 08 Mar 2007 11:47:36 -0600 (CST) Received: from torch.brasslantern.com (localhost.localdomain [127.0.0.1]) by torch.brasslantern.com (8.13.1/8.13.1) with ESMTP id l28HlYke022072; Thu, 08 Mar 2007 09:47:35 -0800 Received: (from schaefer@localhost) by torch.brasslantern.com (8.13.1/8.13.1/Submit) id l28HlYha022071; Thu, 08 Mar 2007 09:47:34 -0800 Date: Thu, 08 Mar 2007 09:47:34 -0800 From: Bart Schaefer Subject: Re: unexpected wildcard issue In-reply-to: <20070308051242.81255.qmail@smasher.org> To: Atom Smasher , zsh-users@sunsite.dk Message-id: <070308094734.ZM22070@torch.brasslantern.com> MIME-version: 1.0 X-Mailer: OpenZMail Classic (0.9.2 24April2005) Content-type: text/plain; charset=us-ascii References: <20070308045130.66826.qmail@smasher.org> <20070308045433.GQ86959@dan.emsphone.com> <20070308051242.81255.qmail@smasher.org> Comments: In reply to Atom Smasher "Re: unexpected wildcard issue" (Mar 8, 12:12am) On Mar 8, 12:12am, Atom Smasher wrote: } } ok... so, should the shell insert an implied "--" before expanding } wildcards or globs? is there an option for that? should there be? There was a long, not-quite-heated discussion of this on the POSIX standards list ("austin-group") late last year. The end result of the discussion was that David Korn (as in ksh) suggested that this should be a line editor operation; that is, you type some key sequence, and the line editor finds the place between the rightmost word that starts with a hyphen and the leftmost word that does not, and inserts "--" there. I believe PWS even wrote a function for this and sent it to zsh-users. No, I'm wrong; I'm thinking of zsh-users/10793, which is for a similar but not quite identical problem. However, it should be easy to adapt that function to do this.