Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: whence (was Re: local unfunction)



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).



Messages sorted by: Reverse Date, Date, Thread, Author