From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16233 invoked from network); 10 Oct 2006 09:33:17 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.6 (2006-10-03) 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.6 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 10 Oct 2006 09:33:17 -0000 Received-SPF: none (ns1.primenet.com.au: domain at sunsite.dk does not designate permitted sender hosts) Received: (qmail 48451 invoked from network); 10 Oct 2006 09:33:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 10 Oct 2006 09:33:11 -0000 Received: (qmail 12060 invoked by alias); 10 Oct 2006 09:33:04 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 22853 Received: (qmail 12051 invoked from network); 10 Oct 2006 09:33:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 10 Oct 2006 09:33:04 -0000 Received: (qmail 47719 invoked from network); 10 Oct 2006 09:33:04 -0000 Received: from cluster-d.mailcontrol.com (217.69.20.190) by a.mx.sunsite.dk with SMTP; 10 Oct 2006 09:33:03 -0000 Received: from cameurexb01.EUROPE.ROOT.PRI ([62.189.241.200]) by rly37d.srv.mailcontrol.com (MailControl) with ESMTP id k9A9WWPD026376 for ; Tue, 10 Oct 2006 10:32:59 +0100 Received: from news01.csr.com ([10.103.143.38]) by cameurexb01.EUROPE.ROOT.PRI with Microsoft SMTPSVC(6.0.3790.1830); Tue, 10 Oct 2006 10:32:58 +0100 Received: from news01.csr.com (localhost.localdomain [127.0.0.1]) by news01.csr.com (8.13.7/8.13.4) with ESMTP id k9A9WuJT030238 for ; Tue, 10 Oct 2006 10:32:56 +0100 Received: from csr.com (pws@localhost) by news01.csr.com (8.13.7/8.13.7/Submit) with ESMTP id k9A9WuSK030235 for ; Tue, 10 Oct 2006 10:32:56 +0100 Message-Id: <200610100932.k9A9WuSK030235@news01.csr.com> X-Authentication-Warning: news01.csr.com: pws owned process doing -bs To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: PATCH: "^" at end of key string Date: Tue, 10 Oct 2006 10:32:56 +0100 From: Peter Stephenson X-OriginalArrivalTime: 10 Oct 2006 09:32:58.0097 (UTC) FILETIME=[12580E10:01C6EC4F] Content-Type: text/plain MIME-Version: 1.0 X-Scanned-By: MailControl A-07-04-02 (www.mailcontrol.com) on 10.68.0.147 Trivial patch... I tried to pass '\e^' to bindkey, not thinking of quoting "^" since it was at the end. The shell had other ideas and bound "\e" instead. I don't see any possible incompatibility by treating "^" literally in this one case. Obviously '\e\^' still works. Index: Src/utils.c =================================================================== RCS file: /cvsroot/zsh/zsh/Src/utils.c,v retrieving revision 1.141 diff -u -r1.141 utils.c --- Src/utils.c 5 Oct 2006 21:53:27 -0000 1.141 +++ Src/utils.c 10 Oct 2006 09:28:02 -0000 @@ -4744,7 +4744,7 @@ } else if ((how & GETKEY_DOLLAR_QUOTE) && *s == Snull) { for (u = t; (*u++ = *s++);); return t + 1; - } else if (*s == '^' && !control && (how & GETKEY_CTRL)) { + } else if (*s == '^' && !control && (how & GETKEY_CTRL) && s[1]) { control = 1; continue; #ifdef MULTIBYTE_SUPPORT -- 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