From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6368 invoked by alias); 8 Aug 2010 12:49:32 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 15256 Received: (qmail 8348 invoked from network); 8 Aug 2010 12:49:29 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 Received-SPF: none (ns1.primenet.com.au: domain at math.technion.ac.il does not designate permitted sender hosts) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAGBEXkyERHMG/2dsb2JhbACgRHG/IgKFOASEIYUa X-IronPort-AV: E=Sophos;i="4.55,337,1278277200"; d="scan'208";a="665751" X-Authentication-Warning: fermat.math.technion.ac.il: nyh set sender to nyh@math.technion.ac.il using -f Date: Sun, 8 Aug 2010 15:49:24 +0300 From: "Nadav Har'El" To: Dan Nelson Cc: Manuel Presnitz , zsh-users@zsh.org Subject: Re: Problem with "?" symbol Message-ID: <20100808124924.GB14294@fermat.math.technion.ac.il> References: <20100803144657.GC58235@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100803144657.GC58235@dan.emsphone.com> User-Agent: Mutt/1.4.2.2i Hebrew-Date: 28 Av 5770 On Tue, Aug 03, 2010, Dan Nelson wrote about "Re: Problem with "?" symbol": > This can get you into trouble if you happen to have files matching your > wildcard in the current directory. "noglob" completely disables globbing; > "NO_NOMATCH" still tries to match the wildcard but leaves it if there are no > matches. When I last proposed making 'set +o nomatch' the default, like it is in Bourne shell, Ksh, and Bash, I got similar feedback - that it is dangerous because sometimes the wildcards do expand something, and sometimes they don't, etc. But has this ever actually caused problems for anybody? For me, it simply "does the right thing" most (if not all) of the time. The "nomatch" error always reminds of those "you forgot a semicolon at the end of the line" compilation errors in C - if you know I forgot something, why not help me and fix it for me? :-) And considering that people coming from other shells (not including csh, which I wonder who continues to use) assume this feature, I still wonder why it's not the default in zsh. -- Nadav Har'El | Sunday, Aug 8 2010, 28 Av 5770 nyh@math.technion.ac.il |----------------------------------------- Phone +972-523-790466, ICQ 13349191 |A diplomat thinks twice before saying http://nadav.harel.org.il |nothing.