From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26744 invoked from network); 22 May 1997 03:11:49 -0000 Received: from euclid.skiles.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 22 May 1997 03:11:49 -0000 Received: (from list@localhost) by euclid.skiles.gatech.edu (8.7.3/8.7.3) id XAA10045; Wed, 21 May 1997 23:04:18 -0400 (EDT) Resent-Date: Wed, 21 May 1997 23:00:57 -0400 (EDT) From: Zoltan Hidvegi Message-Id: <199705220259.WAA04907@hzoli.home> Subject: Re: Ignoring ~ when expanding scripts In-Reply-To: <199705211344.SAA09891@lator.cybercom.net> from Chris Laas at "May 21, 97 06:45:14 pm" To: chrisl@cybercom.net Date: Wed, 21 May 1997 22:59:15 -0400 (EDT) Cc: zsh-users@math.gatech.edu X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Resent-Message-ID: <"ptBpV3.0.zO2.eRxWp"@euclid> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/865 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Chris Laas wrote: > A hack like this: > > compctl -C -g '*[^~](*)' + -c > > when combined with the "hash -f ; unhash -m '*~'" hack, gives something > like the desired result, though it incorrectly completes for matching > executable files in the current directory, even if it is not (and it > should not be) in your PATH. Anyone know how to fix that? compctl -C -c -x 'C[0,*/*]' -g '*[^~](*)' + -g '*(*)' The last *(*) is a fallback. If the typed in prefix does not match anything without a tilde, then, like fignore, it'll try to complete allowing tilde. Zoltan