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=-1.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7312 invoked from network); 11 Sep 2020 16:33:38 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Sep 2020 16:33:38 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1599842018; b=Dy4PAJzcSuP2jC9CsBsPbJpHDtUdNxrSy8fQI/jndydNzp/tG/Tx41Zi5jkWa7HLBKlkipRyKT sUZ4bmRjUo9LEPtFgV2BRRmo/EAEuKQI1i0yS9RomCS1s3f04q9iA+HHRO2EtPeAOuj2Iq2Nqy C4KXNlnEnoIC7nqezGj4OI8QXZyGX2tTkDThbway1ZDu0CIi6iB7gQdoNa9uNOzNNjTJ5D+nwQ CP3jYUjUH6IHDX3GJnvaFrbjRh5bAET0dzsneZg1bS4x1aIphuVwITY21KgnjI7whu7MLfdS77 hrHYyTKaKdIuuysF9JNFLp3gNLcXADi/Uovjp9IERIiOjQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f52.google.com) smtp.remote-ip=209.85.166.52; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1599842018; bh=jcrBliNwQXysIl9oRCtMGO7tU5sjMdycwmwMXk2mFpw=; 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=vurZVYTWGSqFse9nhFTflDnQKsD+MrvPHOzmexe+Qn//fKwrWhwFpm0qg/A8NITY0KFyIjKE22 EG8J2wcfn+JBm5lCSIv/JjqKbaTiH8NXrzk0fRMbqTEYVQnGlKO6W+mp2BR71Wd0XG002v5H/w +DnelN0Rrq/ODuOSDKaO/h3pdXvbyOB+pjNzsfqVQTsRZY35HXPXkOUGBxwOWh44kUnax00gRh B2X5ZNt2x0aCMdklXibcmX9Ht7peUGtFADtSx7jkattoveg0JMp+mv9x/UWjrYnULYA4v+GcJh 5JkZ2pYZTPW1eepG2mtJLpIsuF4qcds9pLezd+75Q27m6g==; 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=5dXX6YYXx7DNaAEdqouKP2Rp1bR0GAOx2vE4zCOt9fM=; b=pJY5wyvlzKGlI1VmWpL+NDF+qg QnGz6GRwFOMnpvB8MybXfrnVn4EaCPJxM7ps5ZKD8/gsGgAyFDjnLp4BgWdx5jGsh5kN/0Lhg7KPy 6r8CmkrKha6HmMHR6DRFg2Rnh3j/GAPdhQOftHoO026UCtJkmu2RGfTgDVIY/rYrDsQiW4+QAn3lF Po+bXQRaw/2x49AnBuOaxKbuY/GmrgWlg1s6qn8gDz9MC+ReWpatfVP6kUFvW0uZGnZHa+tl12bDj 6plVrXmdyeO28t8lahgvjMwFs2vq7uBXbwNhrJCbfxyFHP9xwLTAdrwFyB4G7AI1WIUc3rtub2by+ 7lQIs/Cw==; Received: from authenticated user by zero.zsh.org with local id 1kGlzV-000JRm-Gr; Fri, 11 Sep 2020 16:33:37 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f52.google.com) smtp.remote-ip=209.85.166.52; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f52.google.com ([209.85.166.52]:44526) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kGlzE-000JI8-6G; Fri, 11 Sep 2020 16:33:20 +0000 Received: by mail-io1-f52.google.com with SMTP id g128so11648033iof.11 for ; Fri, 11 Sep 2020 09:33:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5dXX6YYXx7DNaAEdqouKP2Rp1bR0GAOx2vE4zCOt9fM=; b=Pv/KFgrvd1mGW6ORtlNOeE4cCdg1ME76v+tm0tOigw0NpsPPheGSREJj1gmnQycXi/ RiqBh2+VLs4vdjP+GgVkd6ivGgCrwM6teLaFBzH8BcdjCKmUHx8poMC6CXiNAdT4SIm0 pLpcENxGh5UP7P159mase18enAhDZO8/pXjhe/3B7pERnd8s6GMUZ/qYqAFNMsXFxjlE K1TD82nHLkJ3D2koTzSIuSosbn1IPoD83W0nl+np2ZmFKYZm/06PTFxVKTBtQI5Og8TF wH2nqQIDOqLFD8SkXxnJiTM2UAL/wPFYFluwX6QizoH4PTur3Dj8AWJfKiruvLt8cuub xWCg== 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=5dXX6YYXx7DNaAEdqouKP2Rp1bR0GAOx2vE4zCOt9fM=; b=ZbJvJjvwWY1db2lMuKAeUUOYJ0MrL8vd57Rrkiedux48d6VJW5KyK2n7HmLd9Kqzp4 iHoPx8mfvh/OmxNL8RgZJKrqsaKP6Ij6boeHJDLZ8dgvKW/7+vL8wm6N1BDbv60/jah1 4o9HCkgLBwQ6Aq+rouDaemja2bH0q4fYPieaGD1c5/sAO8va0jxMAmIjwgx3IFsvzlm6 oA5JEE0bVQ++/j5HvJvHrCv6s/FWZ5dlxblpJr0XNv8CJzBkrWIGV6hUq3MdyjpC5xkv LFB8Whsy/ecQy9mSq578NTmNemWaqYrDfbM+NbHbunz93S9+MrDcO16wgCU7dWQf4ZIZ XpBA== X-Gm-Message-State: AOAM531EHR+Q5bnJHKAgpQ2gq2xxorFUjClI+B/2waG8e5lGSA927xLR vgewFK8UflxsLO7/kYDYlqsf2jVzAmpeOrGfXbc= X-Google-Smtp-Source: ABdhPJzbWWlu+78zzxAvM9DDz8UpLhBpn+GJTta1Fr4pmelhoczW+AMVOtivmdYKJCpnfhYX/X0TswUJaIoAmrzhFCU= X-Received: by 2002:a05:6638:3b5:: with SMTP id z21mr2728334jap.33.1599841998784; Fri, 11 Sep 2020 09:33:18 -0700 (PDT) MIME-Version: 1.0 References: <20200911144852.GA1669764@fullerene.field.pennock-tech.net> <20200911161000.GA1679994@fullerene.field.pennock-tech.net> In-Reply-To: <20200911161000.GA1679994@fullerene.field.pennock-tech.net> From: Roman Perepelitsa Date: Fri, 11 Sep 2020 18:33:07 +0200 Message-ID: Subject: Re: Possible bug: HASH_CMDS has no observable effect To: Phil Pennock Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 47370 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: On Fri, Sep 11, 2020 at 6:10 PM Phil Pennock wrote: > > On 2020-09-11 at 17:01 +0200, Roman Perepelitsa wrote: > > Could you clarify how this statement is related to my bug report? > > Sure thing. You quoted documentation which also covered a combination > not in effect, reported Zsh's behavior, and wrote: > > } I took this to mean that after installing rsync and invoking it, > } ${commands[rsync]} will be set and running `hash` will display an > } entry for rsync. This, however, is not the case. > > I explained the observed behavior, relative to the quoted documentation, > and what was going on. Thanks for the clarification. I've read your post once again and I don't understand how it explains the observed behavior. Firstly, let's dispense with the long option description to avoid the red herring of CORRECT. Here's a shortened version that removes clauses that don't apply: Note the location of each command the first time it is executed. Subsequent invocations of the same command will use the saved location, avoiding a path search. If this option is unset, [irrelevant because this option is set]. However, when CORRECT is set, [irrelevant because CORRECT is not set]. And here are the important parts of the commands I ran: 1. The first execution of rsync. It prints version plus help; I've truncated the latter. # rsync rsync version 3.1.2 protocol version 31 2. Check whether rsync is hashed. It appears not to be. # print $+commands[rsync] 0 # hash | grep rsync # Why isn't rsync hashed the first time it's executed? Roman.