From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8249 invoked from network); 22 Jun 2006 10:48:27 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.3 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 22 Jun 2006 10:48:27 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 72233 invoked from network); 22 Jun 2006 10:48:20 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 22 Jun 2006 10:48:20 -0000 Received: (qmail 11231 invoked by alias); 22 Jun 2006 10:48:12 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 10411 Received: (qmail 11214 invoked from network); 22 Jun 2006 10:48:12 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 22 Jun 2006 10:48:12 -0000 Received: (qmail 71091 invoked from network); 22 Jun 2006 10:48:12 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 22 Jun 2006 10:48:10 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly12d.srv.mailcontrol.com (MailControl) with ESMTP id k5MAlvTA009045 for ; Thu, 22 Jun 2006 11:48:07 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Thu, 22 Jun 2006 11:44:18 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.4/8.13.4) with ESMTP id k5MAiILA011337 for ; Thu, 22 Jun 2006 11:44:18 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.4/8.13.4/Submit) with ESMTP id k5MAiIrS011334 for ; Thu, 22 Jun 2006 11:44:18 +0100 Message-Id: <200606221044.k5MAiIrS011334@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-users@sunsite.dk (Zsh users list) Subject: Re: Accidently wrote a command in CAPS LOCK In-reply-to: References: <200606221025.k5MAPD8f010975@news01.csr.com> Date: Thu, 22 Jun 2006 11:44:18 +0100 From: Peter Stephenson X-OriginalArrivalTime: 22 Jun 2006 10:44:18.0054 (UTC) FILETIME=[CFF52A60:01C695E8] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-00-10 (www.mailcontrol.com) on 10.68.0.122 zzapper wrote: > I was hoping for a history modifier eg > ^^^ or !!:s/// > but they don't seem to support wildcards? You should have said that earlier... !!:l will turn the whole previous line into lower case. Do you only want a certain range of words? You can do tricks like: % ECHO THIS NEXT WORD IS UPPERCASE zsh: command not found: ECHO % !!:-:l !!:$ % echo this next word is UPPERCASE The word selector - is short for 1- which is short for 1 to the word before the last. The word selector $ is the last word. So you get all but the last word in lower case, then the next word as it was. -- Peter Stephenson Software Engineer CSR PLC, Churchill House, Cambridge Business Park, Cowley Road Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070 To access the latest news from CSR copy this link into a web browser: http://www.csr.com/email_sig.php