From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15786 invoked from network); 2 Oct 2020 04:43:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 2 Oct 2020 04:43:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1601613835; b=i9ET1PqDMQW7KN3EB6mJ+t2Pa50k/OrdZdCducmWy+QCcdtIanzABbBKCqnOQrd+pvqITVUEt5 xBf92YM8QNnKQ8f+mWgJp7CVELQoZaTPcBKfZrMkcFth2kFXjZCIjR4ijtUEZltv+zXOEUciKm cc0PqBqM3piH6Us9tNZdB2kzCLl2DkIJElj4VDJ9jhDeV4bejqPOMeiGflNepyptSQPxMARjrO 4yJ4pAZzTDHv/vhl+vm+jJbLpIjsTrBJh1NeEIUO2M8IIfDczdRFU5TRzvariLW4sHy10jP8pE nHywOv29F+RFeFBQiu50Iy6TfjGkcVKUDpsUevOmHS/XuA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f46.google.com) smtp.remote-ip=209.85.210.46; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1601613835; bh=q2GLC9X6rOyNs2UJ3r2lAxyxdfzshvDXNKn0uw8Ko+c=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=PZNK5FXyviRv33LcbGWhLYImhdY5VZ0yQySNH7BWxV3gJO1AwqiRaTv2iod7qdSClKdyjstXTX tq5oM2t+cFD+zjZWupKRYX00shoqlFgu/nez37gGKkxU0csg6xWt/FzKv8/zrhVw7EzZQARp15 UgJKouhjWENpM2eQkjav5YB9v64oXVZuX9y3sww1MAuHx30e5x4hPmXvlxhIPOHtboe/z5lDuR vc6zf82WKqlv5k+IWarstV+77UvhJfpjCmXG4fbuNly2SSt2BDKdbXOknqRr+J+jrocIwx5A4R LQJPZD5SWluF0zV4inRuDLjU6lRt6q7AGFbbkyrJ2vgcFw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=S86ULRl9EtLcrIJvG3BNFGbN0VkByyk7J4mIVoyTCng=; b=SKeeqBP6iglyArQGfTdv7fYW+1 oXI7PPQnaeQXLsNb7m9yIas9g7qHHD9vNfRTqsZ9sM2FP4/fc+j3vrklkSklYvxPTmdLOGG+J/4YX VLLcic6j2v7PgzAqSo5QtKrB2a+mgmRXA3TiSVo7UnTdm4OFjN8/OaHoWMGItQIFHyjEugI+hOpcs MGAarRTSsr7UseDvJ+WV6vGDezt6oqBvNpY59H1sKZdNH6XjsVMHNoxyBMji1SbLZb3Cn9n1nDL6C Y0I8iTvZENpb/Kjvxhgm8pbgA3jUAU38qE7pix8l0Da2qAl7zWxniWJ7E6b9dH8ANnEz/edi09NE2 ulHCRb4w==; Received: from authenticated user by zero.zsh.org with local id 1kOCvA-0009em-8p; Fri, 02 Oct 2020 04:43:52 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f46.google.com) smtp.remote-ip=209.85.210.46; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f46.google.com ([209.85.210.46]:39113) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kOCur-0009W2-HI; Fri, 02 Oct 2020 04:43:34 +0000 Received: by mail-ot1-f46.google.com with SMTP id u25so246691otq.6 for ; Thu, 01 Oct 2020 21:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=S86ULRl9EtLcrIJvG3BNFGbN0VkByyk7J4mIVoyTCng=; b=rCq6SV60FGBbzlAfiJlAe/pa8RHKkFdVZYFshoYGcoTPGiUScGOkfplNUpfyF1RizT Z3NT67Ag5MSQLTm9U3BYhth4LLDNjKmTyrMLHCJ1EDqGNe5LXIToeIrc6G1WGxjeJZne uQlky5EEyl6JJ81uXj7R07y63vyS2W9OAGaetOljdCJBkNc3QUQDoNqCM/zdlvMozp6W vyu/BZ8109b4IxTmUGuagEry3Whv7PQMtdyJawrwhUtSQoDko3+hy9kFe5vnmMyrMgUu 6/MtvcYA5s1Vk4XEU5UEiQzqeKyKTxg8MVoUccFqC0OJuuV2k7QjqgPBsnyGelFvR0Qi +kuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=S86ULRl9EtLcrIJvG3BNFGbN0VkByyk7J4mIVoyTCng=; b=fGhwxVhGi7uE+tWIokSCXh8fackoZ/XeOE6S9IxNTyIAd90RocDyOIhaCRP1gBF7ha AyhPWg8H6riZ1tFSnZ+ibjkVHNjgUTsJ6mh/veGNYVmQbZKzTqwel4+YieZr5MA7iacc YmAQffztzABmyn5g3hZ/EGzr9+6UClyz7R2ToMysfmqA3snajaDLwK/6vJ6NPtWDf6k7 5SDWpVi3TlgcmBbIcC17S0+o/uWS5295oYkrRffDmN6kNzgXQ/xszBC43m6JTepDn1sq Tx8R1Tivrv2EOQAJBkwUQta34I4o+UA5wFNzg04rWhUboAtYuvcuVkpjoHn7QhVTVMaa W22w== X-Gm-Message-State: AOAM530TE/j25O+PyVzMg6zGcPjj6IV7lXCyZvNyhSArexo04IsoPbZV RoV9WuWAyJX/Id1kw2L2wYiXSSNxi5kCl2fZm4EhAw== X-Google-Smtp-Source: ABdhPJxwiypc3Y1FvAUud2sWU9MHVlDa9LXPHowOTYKADdBVjvGHZ5Q0rT5BNoNdAzEddn+JZzN1UeugJCjEndF2yH4= X-Received: by 2002:a05:6830:14c1:: with SMTP id t1mr429440otq.229.1601613811978; Thu, 01 Oct 2020 21:43:31 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Thu, 1 Oct 2020 21:43:20 -0700 Message-ID: Subject: Re: [BUG] The commands array contains dirs instead of the actual executables To: Rudi C Cc: "zsh-workers@zsh.org" Content-Type: multipart/alternative; boundary="00000000000054aa4a05b0a8c6d5" X-Seq: 47418 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --00000000000054aa4a05b0a8c6d5 Content-Type: text/plain; charset="UTF-8" Please include at least some expository context in your messages, rather than merely quote a command transcript. The fact that there are multiple slashes in your $commands values indicates to me that you're probably doing something wrong with the setting of $path, but without context I can't guess what. Command hashing does not expect $path to include the names of directories which further contain other subdirectories. For speed, only the names of the items found inside path directories are scanned/cached, rather than examining the items themselves. You can change this by "setopt hash_executables_only" or (I suspect) by placing /Users/evar/scripts at the end of your $path instead of at the beginning. --00000000000054aa4a05b0a8c6d5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Please include at least some expository context in your me= ssages, rather than merely quote a command transcript.=C2=A0 The fact that = there are multiple slashes in your $commands values indicates to me that yo= u're probably doing something wrong with the setting of $path, but with= out context I can't guess what.

Command hashing does not e= xpect $path to include the names of directories which further contain other= subdirectories.=C2=A0 For speed, only the names of the items found inside = path directories are scanned/cached, rather than examining the items themse= lves.

You can change this by "setopt hash_exe= cutables_only" or (I suspect) by placing /Users/evar/scripts at the en= d of your $path instead of at the beginning.
--00000000000054aa4a05b0a8c6d5--