From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from euclid.skiles.gatech.edu (list@euclid.skiles.gatech.edu [130.207.146.50]) by coral.primenet.com.au (8.7.5/8.7.3) with ESMTP id VAA05859 for ; Thu, 25 Jul 1996 21:52:50 +1000 (EST) Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id HAA20906; Thu, 25 Jul 1996 07:50:59 -0400 (EDT) Resent-Date: Thu, 25 Jul 1996 07:49:58 -0400 (EDT) Date: Thu, 25 Jul 1996 15:47:39 +0400 (MOW) From: Andrej Borsenkow X-Sender: bor@itsrm1 Reply-To: borsenkow.msk@sni.de To: Zsh users mailing list Subject: Question about completeion. Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Resent-Message-ID: <"8WbiZ3.0.-55.bzrzn"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/336 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Hi! I have modified multicomp() function to work for cd & Co. (including $cdpath). It works fine; I can say % cd /u/l/l/t and it is expanded to % cd /usr/local/lib/texmf without any problem; `cd T' would expand it to `cd TeX', meaning /home/bor/src/TeX and /home/bor/src in $cdpath. Now I would like to write small wrapper around cd, so that % cd /u/l/l/t would change dir into /usr/local/lib/texmf iff the match is unique; otherweise expand argument and leave me in MENU mode. I am not so skillfull in zsh programming; also, I am not shure if I can call completion from inside of shell function. Is it possible? Thanks for any hint. greetings ------------------------------------------------------------------------- Andrej Borsenkow Fax: +7 (095) 252 01 05 SNI ITS Moscow Tel: +7 (095) 252 13 88 NERV: borsenkow.msk E-Mail: borsenkow.msk@sni.de -------------------------------------------------------------------------