1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

27178: FAQ---quoting function names to stop expansion is always(ish) safe

This commit is contained in:
Peter Stephenson 2009-07-20 09:17:32 +00:00
parent 7e0ca71469
commit 06bdda4fb8
2 changed files with 6 additions and 4 deletions

View file

@ -1,7 +1,7 @@
2009-07-20 Peter Stephenson <pws@csr.com>
* 27178: Etc/FAQ.yo: as pointed out by Mikael, quoting
function names to stop alias expansion is always safe.
* 27178, 27180: Etc/FAQ.yo: as pointed out by Mikael, quoting
function names to stop alias expansion is always(ish) safe.
2009-07-19 Barton E. Schaefer <schaefer@zsh.org>
@ -12023,5 +12023,5 @@
*****************************************************
* This is used by the shell to define $ZSH_PATCHLEVEL
* $Revision: 1.4747 $
* $Revision: 1.4748 $
*****************************************************

View file

@ -826,7 +826,9 @@ label(23)
)
Adding the quotes has no effect on the function definition, but
suppresses alias expansion for the function name. Hence this is
guaranteed to be safe.
guaranteed to be safe---unless you are in the habit of defining
aliases for expressions such as tt('l'), which is valid, but probably
confusing.
sect(Similarities with tcsh)