From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18875 invoked by alias); 16 Mar 2012 00:27:23 -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: 16893 Received: (qmail 16811 invoked from network); 16 Mar 2012 00:27:21 -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=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Received-SPF: none (ns1.primenet.com.au: domain at mi.fu-berlin.de does not designate permitted sender hosts) Date: Fri, 16 Mar 2012 01:11:33 +0100 From: "Christoph (Stucki) von Stuckrad" To: zsh-users@zsh.org Subject: Re: Why is this happening in zsh? Message-ID: <20120316001132.GB692@localhost.mi.fu-berlin.de> References: <8982dc10f425e9b329d9c257cc586c62@dizum.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) Sender: "Chr. von Stuckrad" X-Originating-IP: 160.45.113.41 On Thu, 15 Mar 2012, Kyle Partridge wrote: > So I alias these type of commands to use `noglob`. > Does this solution make sense? > > Ex: > alias find="noglob find" This depends on what you really want to do and whether you alias such command for a spcific case (good) or generally (bad). Personally I prefer zsh's 'calling a missing * expansion an error', because I normally tell the shell exactly what to do: - eighter I write a simple * and 'globbing nothing' then IS an error - or I use quoting, so I KNOW that the program called, will get the '*' On the command line I mostly quote stars like: find ... -name \*foo\* By doing this I keep the possibillity to do both in one comand, like: find some/tree/*/branches -name leaf\* -print And the errormessage of the zsh keeps me from accidentally working with real '*' in filenames or empty parameters, which can have VERY strange results in daily work as a sysadmin :-) Stucki -- Christoph von Stuckrad * * |nickname |Mail \ Freie Universitaet Berlin |/_*|'stucki' |Tel(Mo.,Mi.):+49 30 838-75 459| Mathematik & Informatik EDV |\ *|if online| (Di,Do,Fr):+49 30 77 39 6600| Takustr. 9 / 14195 Berlin * * |on IRCnet|Fax(home): +49 30 77 39 6601/