From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10769 invoked from network); 2 Nov 2004 23:43:30 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 2 Nov 2004 23:43:30 -0000 Received: (qmail 26734 invoked from network); 2 Nov 2004 23:43:24 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 2 Nov 2004 23:43:24 -0000 Received: (qmail 7770 invoked by alias); 2 Nov 2004 23:42:36 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8150 Received: (qmail 7760 invoked from network); 2 Nov 2004 23:42:35 -0000 Received: from unknown (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 2 Nov 2004 23:42:35 -0000 Received: (qmail 25354 invoked from network); 2 Nov 2004 23:41:36 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 2 Nov 2004 23:41:34 -0000 Received: from 212.red-80-35-44.pooles.rima-tde.net ([80.35.44.212]:58598 helo=dervishd.net) by ns9.hostinglmi.net with esmtpa (Exim 4.43) id 1CP8HR-00079X-9k for zsh-users@sunsite.dk; Wed, 03 Nov 2004 00:41:38 +0100 Date: Wed, 3 Nov 2004 00:44:09 +0100 From: DervishD To: Zsh Users Subject: Re: Filename expansion within a completion widget Message-ID: <20041102234409.GB21654@DervishD> Mail-Followup-To: Zsh Users References: <20041102233658.GA21654@DervishD> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20041102233658.GA21654@DervishD> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-MailScanner-Information: Please contact the ISP for more information X-MailScanner: Found to be clean X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 2.63 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, hits=0.0 required=6.0 tests=none autolearn=no version=2.63 X-Spam-Hits: 0.0 Hi all :) > compstate[insert]=${compstate[insert]//tab /} > > compset -P '*/' > > Well, it handles both relative and absolute directories > correctly, but doesn't handle named directories :(( I don't > understand why because if I type 'cd ~X' the named dir should be > expanded, shouldn't it? > > If it shouldn't, could anyone hint me how to do it? Should I > bother with any other similar problems (I mean, like mangling IPREFIX > for absolute directories and the like)? Of course, adding something like 'PREFIX=$~PREFIX' just before the compset call solves the problem, but then the named dir is 'translated', which I don't want, and additional code is needed in the compadd call to 'untranslate' it. There is surely another way of doing this... Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 http://www.dervishd.net & http://www.pleyades.net/