From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21833 invoked from network); 3 Nov 1998 12:51:27 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 3 Nov 1998 12:51:27 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id HAA16535; Tue, 3 Nov 1998 07:49:21 -0500 (EST) Resent-Date: Tue, 3 Nov 1998 07:49:21 -0500 (EST) Sender: B.Stephens@isode.com To: zsh-workers@math.gatech.edu Subject: Re: PATCH: 3.1.5 - (Sven) Case-insensitive globbing References: <199811030812.JAA23176@beta.informatik.hu-berlin.de> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII From: Bruce Stephens Date: 03 Nov 1998 12:47:14 +0000 In-Reply-To: Bruce Stephens's message of "03 Nov 1998 12:22:47 +0000" Message-ID: X-Mailer: Gnus v5.6.27/XEmacs 20.4 - "Emerald" Resent-Message-ID: <"LSk0x1.0.F24.HllFs"@math> Resent-From: zsh-workers@math.gatech.edu X-Mailing-List: archive/latest/4512 X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu Bruce Stephens writes: > Yes, maybe. I thought of another example: approximate matching. > > Approximate matching could either use the auto-correct code, or could > use something like whatever agrep uses. In the latter case, it would > have an optional integer parameter too, so "(#a1)readme" would match > "Readme" and "read.me", but to match "read", you'd need "(#a2)readme". > > Hmm, maybe this could provide a way to configure the autocorrection > feature too? This would provide useful implementation parts anyway---given some way of specifying a function that could operate on a possibly miss-spelled word, approximate globbing would provide a natural way of generating a sensible alternative (or alternatives).