zsh-users
 help / color / mirror / code / Atom feed
From: Ray Andrews <rayandrews@eastlink.ca>
To: Zsh Users <zsh-users@zsh.org>
Subject: priority of execution
Date: Tue, 25 Oct 2022 08:47:42 -0700	[thread overview]
Message-ID: <04b0ce6b-be24-66f0-44e6-0183280e19cf@eastlink.ca> (raw)

So far I'm aware of these categories of actionable entities:

alias, autoload, builtin, function, executable script, binary.

Any others?  Or any other discriminations possible within those 
categories?  IOW, what's the total list of species that whence might 
report?  And when I have a complete list of such species, what's their 
precedence?  I believe aliases always come first but in case of name 
conflicts I'd like to be sure who has first go. And:

$ whence -v declare
declare is a reserved word

$ whence -av declare
declare is a reserved word
declare is a shell builtin

... isn't the main point that it's a builtin and thus it's a reserved 
word automatically?  I'm not sure that's correct, but it seems to me 
that the name of a builtin must be protected so I'd expect:

$ whence -v declare
declare is a shell builtin   # Which is what I really want to know, and 
that it's reserved is redundant.





             reply	other threads:[~2022-10-25 15:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-25 15:47 Ray Andrews [this message]
2022-10-25 16:08 ` Peter Stephenson
2022-10-25 17:17   ` Ray Andrews
2022-10-25 18:36     ` Peter Stephenson
2022-10-25 21:58       ` 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=04b0ce6b-be24-66f0-44e6-0183280e19cf@eastlink.ca \
    --to=rayandrews@eastlink.ca \
    --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).