From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10216 invoked from network); 10 May 1999 11:16:19 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 10 May 1999 11:16:19 -0000 Received: (qmail 11954 invoked by alias); 10 May 1999 11:15:55 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2327 Received: (qmail 11946 invoked from network); 10 May 1999 11:15:54 -0000 Date: Mon, 10 May 1999 13:15:52 +0200 (MET DST) Message-Id: <199905101115.NAA15067@beta.informatik.hu-berlin.de> From: Sven Wischnowsky To: zsh-users@sunsite.auc.dk In-reply-to: "Philip J. Hollenback"'s message of Fri, 7 May 1999 10:44:46 -0700 Subject: Re: compctl question Philip J. Hollenback wrote: > 1. How do you get around the fact that the shell grabs the '='? Can > you turn that off for this one command? Just use `-x "s[=]"' or `-x "S[=]"': comcptl -x 's[=]' -W ~/mail -f -- bar > 2. Is there a way to write a completion that rewrites the what is > already on the command line? For instance, if I typed in this: This is a bit tricky: foo() { reply=( ~/mail/${1[2,-1]}*${2}(N:t) ); reply=( \\\=$^reply ); } compctl -x 'S[=],S[\\=]' -UQK foo -- bar But this has the side-effect of turning on menucompletion if automenu is set. Bye Sven -- Sven Wischnowsky wischnow@informatik.hu-berlin.de