From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29227 invoked from network); 27 Jul 2005 17:35:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 27 Jul 2005 17:35:34 -0000 Received: (qmail 28669 invoked from network); 27 Jul 2005 17:35:27 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 27 Jul 2005 17:35:27 -0000 Received: (qmail 11011 invoked by alias); 27 Jul 2005 17:35:20 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9198 Received: (qmail 11002 invoked from network); 27 Jul 2005 17:35:19 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 27 Jul 2005 17:35:19 -0000 Received: (qmail 27702 invoked from network); 27 Jul 2005 17:35:19 -0000 Received: from cluster-e.mailcontrol.com (HELO rly07e.srv.mailcontrol.com) (217.79.216.190) by a.mx.sunsite.dk with SMTP; 27 Jul 2005 17:35:09 -0000 Received: from iris.logica.co.uk (iris.logica.co.uk [158.234.9.163]) by rly07e.srv.mailcontrol.com (MailControl) with ESMTP id j6RHZ65G020811 for ; Wed, 27 Jul 2005 18:35:06 +0100 Received: from trentino.logica.co.uk ([158.234.142.59]) by iris.logica.co.uk (8.12.3/8.12.3/Debian -4) with ESMTP id j6RHZ6OP002871 for ; Wed, 27 Jul 2005 18:35:06 +0100 Received: from trentino.groupinfra.com (localhost [127.0.0.1]) by trentino.logica.co.uk (Postfix) with ESMTP id 2BA4867248 for ; Wed, 27 Jul 2005 19:35:06 +0200 (CEST) X-VirusChecked: Checked X-StarScan-Version: 5.0.7; banners=.,-,- In-reply-to: <20050725192330.GB30341@blorf.net> From: Oliver Kiddle References: <20050725145737.GA903@os> <20050725192330.GB30341@blorf.net> To: zsh-users@sunsite.dk Subject: Re: default pipe Date: Wed, 27 Jul 2005 19:35:06 +0200 Message-ID: <11991.1122485706@trentino.groupinfra.com> X-Scanned-By: MailControl A-05-01-05 (www.mailcontrol.com) X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 Wayne Davison wrote: > I too have some global aliases for simple pipe commands, but I have > found it a little safer to use a short string of characters that is > more unlikely to ever be a filename than a single capital letter. > I have these that use a leading comma: > > alias -g ,e='|egrep' ,f='|fgrep' ,g='|grep' I tend to prefer bindkey -s instead of global aliases for such sequences. It has the advantage that it is expanded so you can see what it is going to do. Oliver This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.