From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21005 invoked from network); 5 Dec 2005 16:36:33 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Dec 2005 16:36:33 -0000 Received: (qmail 38564 invoked from network); 5 Dec 2005 16:36:15 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Dec 2005 16:36:15 -0000 Received: (qmail 2424 invoked by alias); 5 Dec 2005 16:36:12 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22051 Received: (qmail 2414 invoked from network); 5 Dec 2005 16:36:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Dec 2005 16:36:12 -0000 Received: (qmail 38196 invoked from network); 5 Dec 2005 16:36:12 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 5 Dec 2005 16:36:10 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IR100LJUA0H9C39@vms042.mailsrvcs.net> for zsh-workers@sunsite.dk; Mon, 05 Dec 2005 10:33:54 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id jB5GXqnQ022924 for ; Mon, 05 Dec 2005 08:33:52 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id jB5GXqHM022923 for zsh-workers@sunsite.dk; Mon, 05 Dec 2005 08:33:52 -0800 Date: Mon, 05 Dec 2005 16:33:51 +0000 From: Bart Schaefer Subject: NO_CASE_GLO (Re: history-search + a few new user question) In-reply-to: <20051205103021.0828ce8f.pws@csr.com> To: zsh-workers@sunsite.dk Message-id: <1051205163351.ZM22922@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20051204162658.GA17541@alnagon.localnet.cz> <1051205063532.ZM22228@candle.brasslantern.com> <20051205103021.0828ce8f.pws@csr.com> Comments: In reply to Peter Stephenson "Re: history-search + a few new user question" (Dec 5, 10:30am) [redirected to zsh-workers] On Dec 5, 10:30am, Peter Stephenson wrote: } } Well, there's the option "nocaseglob", which interprets patterns that } way, but the problem is "downloads" is a simple string which isn't } treated as a pattern Here's a possibly wacky and probably hard-to-implement idea: GLOB_EVERYTHING When this option is set, zsh attempts pattern matching on every word on the command line (except the command name), even plain strings containing no pattern metacharacters. Globbing of plain strings is always performed as if all of NOMATCH, BAD_PATTERN, NULL_GLOB and CSH_NULL_GLOB are unset. This is mostly useful in combination with NO_CASE_GLOB or MARK_DIRS. (I go back and forth on whether MARK_DIRS belongs with NOMATCH rather than with CASE_GLOB.) Possibly unwanted side-effects: If a directory contains the files download Download DownLoad then globbing the seemingly plain string "download" yields three words.