From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3188 invoked by alias); 9 Dec 2015 06:22:41 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37357 Received: (qmail 22552 invoked from network); 9 Dec 2015 06:22:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 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:date:message-id:subject:from:to :content-type; bh=NS3yIUd6BK9IyWpULTCnVDdb3XEwahR3N6a0IdaXVRE=; b=Mr09bTowutfoCHCQeAERr+5tlwoKwm16T1SPveJxvtsdPk3UjE3OYp4gt33u91XRN5 X3OSdHTnSHzfYhFt6tnEr9AOpFV6ICuctSfvjzYrlNomDJ4lu5qzwQw3QC/WpPgphRNA XTfVP2+CmRtJ4W0vUUJgepwZPZafdTw4cDoLdHANF964BpaXH/4Ux6liETQsbWSQlff3 1rHVM6EuFPFVkegM94jsfmHGKPN8sMZQwQlDSbxUdIBBUyR8bkCnZVZPiQ0w0dBQTu5h zK/eFhpIPauHTBbjkupb81XtKOnKT0ozI1JaQM0Vystc8wqIJR9RNpoJImDO6bVVIqJI NJyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=NS3yIUd6BK9IyWpULTCnVDdb3XEwahR3N6a0IdaXVRE=; b=J6Sg3V5QntSrQiOL6WOOSzzk/vi7owXRUvAnxFbNlDQGZ4EG/EOe1BsF9lsoBg5mxk hNAs0MQ4UZavX5sk42+KM6iZKHrHLEs0WQC7FWmMw5XKoQ04YRk2wn9f4eu+He26l7q7 w/8CHWaWbjaVDASFO35qP6jDC/wmH4LtFVi2PtNBf7Qj/QS3Xz9eW1R81wObbwvKiqsV bJ98qwmHQjZKJVOYOWWT7QwYdj+YWAMSY8R/QN8hnHCdxk+uLu2qcmHszz51zh4zPuUH HYRtpCqYfH73H0VgezG76GHshybVzmJ/Lw3fDjGoGrOq2yNheATQ4pspucMeuYv/Px4c FGJA== X-Gm-Message-State: ALoCoQlhP4Y4xDS8nu1Pyx8zIHRpVPV9U6qRC4lF8aGouP/2z9ld3BOQgFzS8C+N8G6CJPQy66Dr+b/MHMM4LkAFq8O4RpYoYA== MIME-Version: 1.0 X-Received: by 10.28.228.214 with SMTP id b205mr9701288wmh.46.1449642156427; Tue, 08 Dec 2015 22:22:36 -0800 (PST) In-Reply-To: References: Date: Tue, 8 Dec 2015 22:22:36 -0800 Message-ID: Subject: Re: ZSH - tab-completion of $PATH won't work with /./ or /../ in it From: Bart Schaefer To: Zsh hackers list Content-Type: text/plain; charset=UTF-8 On Tue, Dec 8, 2015 at 9:24 PM, John Polansky wrote: > > While I realize it's unusual to have . or .. in a path.. it can happen > through scripting and to me this seems like a bug which should be fixed. As is often the case, this is not as obvious as it may appear. Command completion uses the command hash table. Commands that appear in the hash table are, pretty much by definition, the commands that are completed. There is no actual path search during completion, just a hash table lookup. The command hash table has NEVER included commands that appear along any relative path. So the behavior you are describing is technically not a bug; it's standard zsh behavior for the last 20 or so years.