From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from gatech.edu (gatech.edu [130.207.244.244]) by werple.mira.net.au (8.6.12/8.6.9) with SMTP id PAA28555 for ; Mon, 29 May 1995 15:55:41 +1000 Received: from math (math.skiles.gatech.edu) by gatech.edu with SMTP id AA25597 (5.65c/Gatech-10.0-IDA for ); Mon, 29 May 1995 01:55:03 -0400 Received: by math (5.x/SMI-SVR4) id AA00431; Mon, 29 May 1995 01:53:16 -0400 Resent-Date: Mon, 29 May 1995 07:52:36 +0200 Message-Id: <199505290552.AA11581@phys.uva.nl> Old-Return-Path: Date: Mon, 29 May 1995 07:52:36 +0200 From: bas@phys.uva.nl (Bas V. de Bakker) To: csdayton@midway.uchicago.edu Cc: zsh-workers@math.gatech.edu In-Reply-To: <199505290510.AAA15728@woodlawn.uchicago.edu> (message from Soren Dayton on Mon, 29 May 95 00:10:20 -0500) Subject: Re: strange completion Resent-Message-Id: <"GAc0y.0.f6.B5Mol"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/49 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Soren Dayton writes: > This makes no sense to me... > compctl -x 'C[-1,-*d*]' -g '*.gz *.Z *.z' -g '*(-/)' -- gzip > here, I am in a directory with a directory and a tar.gz file > gzip -d > will complete to > gzip -d > Am I misunderstanding this? I want this to complete to .gz files. The two -g flags are used simultaneously, expanding to one set of completions. So if the directory is before the .gz file alphabetically, it will complete first. To use the second flag only if the first one does not generate any completions, put a '+' between them. Hope this helps, Bas.