From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2471 invoked from network); 12 Mar 2005 20:04:34 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Mar 2005 20:04:34 -0000 Received: (qmail 47896 invoked from network); 12 Mar 2005 20:04:29 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Mar 2005 20:04:29 -0000 Received: (qmail 6958 invoked by alias); 12 Mar 2005 20:04:21 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8589 Received: (qmail 6944 invoked from network); 12 Mar 2005 20:04:20 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Mar 2005 20:04:20 -0000 Received: (qmail 46836 invoked from network); 12 Mar 2005 20:04:20 -0000 Received: from vms046pub.verizon.net (206.46.252.46) by a.mx.sunsite.dk with SMTP; 12 Mar 2005 20:04:17 -0000 Received: from candle.brasslantern.com ([4.11.1.68]) by vms046.mailsrvcs.net (Sun Java System Messaging Server 6.2 HotFix 0.04 (built Dec 24 2004)) with ESMTPA id <0ID900F1Z92Y3KZ0@vms046.mailsrvcs.net> for zsh-users@sunsite.dk; Sat, 12 Mar 2005 14:04:12 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id j2CK4AeP012000 for ; Sat, 12 Mar 2005 12:04:10 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id j2CK492n011999 for zsh-users@sunsite.dk; Sat, 12 Mar 2005 12:04:10 -0800 Date: Sat, 12 Mar 2005 20:04:09 +0000 From: Bart Schaefer Subject: Re: Tab completion and '{' In-reply-to: <20050312100023.GA988@s> To: zsh-users@sunsite.dk Message-id: <1050312200409.ZM11998@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20050312100023.GA988@s> Comments: In reply to Haakon Riiser "Tab completion and '{'" (Mar 12, 11:00am) X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Mar 12, 11:00am, Haakon Riiser wrote: } Subject: Tab completion and '{' } } Is it possible to make the completion system treat '{' as a normal } character? The short answer is, no. The long answer is that this seems to be a real bug in completion: The expansion of brace expressions is handled in the builtin commands that support compsys, e.g. "comptry". And within "comptry", there is no test of the IGNORE_BRACES setopt that I can see, so effectively the brace handling behavior is hardwired in at a low level and cannot be turned off. It might be possible to rewrite _files to work around this, but I'm not feeling like attempting it just now ... Oliver, perhaps? The idea would be to check for a possible literal match of the brace(s) and then insert backslashes if necessary, before calling the builtins to parse the string.