From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25579 invoked by alias); 15 Mar 2017 03:56:21 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 22574 Received: (qmail 19271 invoked from network); 15 Mar 2017 03:56:21 -0000 X-Qmail-Scanner-Diagnostics: from mail-qk0-f177.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.177):SA:0(0.5/5.0):. Processed in 1.027375 secs); 15 Mar 2017 03:56:21 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.5 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,RCVD_IN_SORBS_SPAM,SPF_PASS, T_DKIM_INVALID autolearn=no autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.220.177 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=gxXaJkohCjaTUxYBxCEV+iyzhVpA9UKCEQhQ4qG3U6c=; b=k7yEST/EYoyzCcoOmimlRTLvFulU6PZclgAI2ApqgGlQEknvAwnuoJsJOv+QCRLQN7 mtaBMSoxMSKb8ZOdr2olX4cMb2kgHEoQfWNxCJplhjf9H7S4RB1lkXZvduHabNmCcVGE WmCostHlUal7rcynh0mTuj2INHyRG/W2+aTk0Lo1SOt8C30iw+XFYhTG6yX6G7nQ87Rx xU6Hs1AJjT4vQXotzElU/OIjQ0r0JlE4pvtlDsJswS8Ip2SLMzT5nGiKvBEE6RvfVYNt yODzvV2MJ0rO2X1pixtdZQJS1UFSH/E9I9nop5c7aXJSwV3/DoONb+S+G4uyYB0h2lY2 fSVg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=gxXaJkohCjaTUxYBxCEV+iyzhVpA9UKCEQhQ4qG3U6c=; b=TfqoK08Aqh24X12rgFe7eGD4p2IGs9rVjRqWXe1jhGfdP3XOCoOcf9zWl5yFSnNQm7 z1G0lDUVsSHM0RchOWV0kDAF8/wEvIYH3ZYRLmufd64iLZ9lI0bQRXoShSA31E64rW3W OiBNx0tqb+rl2G5LMGFUm/AxnkonCM36cdltgYpbJzeUv65hJ/jGsdw00kL3SJv4t+QM QYEEYq7lEl2dOIegJsfXZ1/L96xBn1GTDaFj8GIOMmAZdC6eeCIbC1EmPmsEg46YyBUl hkDiUdMZkvIZyKH2u1OI7V0ndO5sR4pTQDMhlQCOXpQ/k2z6S2R4JKfHGaOJNrpQVItL 8j8Q== X-Gm-Message-State: AFeK/H0mXWlRRXOop4nW0ppBPLcJ9BHQkRzi6nsQ0Z7fORqCFi4D2zLZnAde13Iqq1/ZYc7PFdhN1+NpnC02BA== X-Received: by 10.233.232.21 with SMTP id a21mr1007819qkg.180.1489550174257; Tue, 14 Mar 2017 20:56:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: References: <170314120715.ZM10347@torch.brasslantern.com> From: Bart Schaefer Date: Tue, 14 Mar 2017 20:56:13 -0700 Message-ID: Subject: Re: Completion for cd To: =?UTF-8?Q?Jesper_Nyg=C3=A5rds?= Cc: Zsh Users Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Tue, Mar 14, 2017 at 2:50 PM, Jesper Nyg=C3=A5rds wrote: > Thank you for your help, Bart. I tried your suggestion, but I'm afraid I'= m a > little overwhelmed by the amount of debug info. The clue is at the very end of each file: In the first case [that ignores parents as expected], the _complete function generated the matches, but in the second case the _approximate function generated them. The path search correctly excludes "zaa" but then _approximate puts it back because it is similar enough to the string on the command line.