zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: whence (was Re: local unfunction)
Date: Wed, 4 Apr 2018 22:08:25 -0700	[thread overview]
Message-ID: <180404220825.ZM25506@torch.brasslantern.com> (raw)
In-Reply-To: <f41055e7-6ad9-b54f-2b95-0e60f0b98d3c@eastlink.ca>

On Apr 4,  6:41pm, Ray Andrews wrote:
}
} On 04/04/18 05:20 PM, Bart Schaefer wrote:
} >
} > It's important to note that "whence -m" is doing pattern matching on
} > strings, not filename generation.  It's not meant to search for files
} > in $PATH, it's meant to do "hash -m
} 
} But what is the real world relevance of 'hash -m'?

Forty-two?

Seriously, "hash -m" exists because somebody in the past 25 years found
it useful to search the hash tables, and "whence -m" exists because
"hash -m" does and somebody else thought that if anything has a "search
the tables" option then everything should have a "search the tables"
option (which is also why "typeset -m" exists ... in fact I've lost
track of which chicken laid which egg).


  reply	other threads:[~2018-04-05  5:08 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-31 15:25 Bart Schaefer
2018-03-31 17:21 ` Ray Andrews
2018-04-01  1:18   ` Bart Schaefer
2018-04-01  4:29     ` Ray Andrews
2018-04-01 17:33     ` Daniel Shahaf
2018-04-01 18:17       ` Bart Schaefer
2018-04-04 18:10         ` Daniel Shahaf
2018-04-05  0:20           ` Bart Schaefer
2018-04-05  1:41             ` Ray Andrews
2018-04-05  5:08               ` Bart Schaefer [this message]
2018-04-05 14:28                 ` Ray Andrews

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=180404220825.ZM25506@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).