From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24187 invoked from network); 18 Sep 2001 12:54:59 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 18 Sep 2001 12:54:59 -0000 Received: (qmail 27338 invoked by alias); 18 Sep 2001 12:54:41 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 4244 Received: (qmail 27327 invoked from network); 18 Sep 2001 12:54:40 -0000 Date: Tue, 18 Sep 2001 14:54:01 +0200 From: Goran Koruga To: zsh-users@sunsite.dk Subject: Re: Question about completion Message-ID: <20010918145401.J31900@isis.hermes.si> References: <20010918143251.I31900@isis.hermes.si> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.12i In-Reply-To: ; from daniel.brahneborg@clinitrac.com on Tue, Sep 18, 2001 at 02:46:53PM +0200 Sender: Goran Koruga X-AntiVirus: scanned for viruses by AMaViS 0.2.1 (http://amavis.org/) On Tue, Sep 18 2001, Daniel Brahneborg wrote: Hi, I have tried this already, but it doesn't quite work. The thing is, that you have to call opendir() with "foo@@/" in order to get all the matches from readdir() and that doesn't seem to be the case here. Goran > Hi, > > > My second question is more complicated. In ClearCase, one can access > > different version of file with syntax like this : filename@@version, > > where version is /main/1 for example. So full path for a file may look > > like "foo@@/main/1". Right now, my completion lists only the > > filenames, > > that is, only "foo" is listed. Is there a way to program completion so > > that if a strng ends with "@@", I could run a custom function > > which would > > list all the versions available ? I have looked at the manual > > pages and > > examples, but I can't figure this out. > > Try foo@@/, and press tab. The overloaded readdir() in mvfs will > sort it out, and give the list of versions. Works in 4nt too. > > /Basic > -- _______________________________________________________________ Goran Koruga goran.koruga@hermes.si HERMES Softlab Litijska 51 phone: +386 1 5865 524 1000 Ljubljana, Slovenia