zsh-workers
 help / color / mirror / code / Atom feed
* Aliases that ignore "noaliases"
@ 2024-04-01 19:59 Bart Schaefer
  2024-04-01 20:18 ` Stephane Chazelas
  0 siblings, 1 reply; 4+ messages in thread
From: Bart Schaefer @ 2024-04-01 19:59 UTC (permalink / raw)
  To: Zsh hackers list

There are some cases where it would be nice to be able to declare an
alias that "always works".  The most obvious recent example would be
  alias nameref='typeset -n'
but also some hackiness in zsh/param/private could be avoided with
  alias private='local -P'

This is important when the alias invokes a keyword rather than a builtin, e.g.
  function private { local -P "$@" }
doesn't parse its argument list the same way.  There are some other
instances where an internally-defined alias that (in particular)
survives "autoload -U" might be useful.

Any thoughts?


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-04-02  0:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-01 19:59 Aliases that ignore "noaliases" Bart Schaefer
2024-04-01 20:18 ` Stephane Chazelas
2024-04-01 20:20   ` Stephane Chazelas
2024-04-02  0:28   ` Bart Schaefer

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