From 06bdda4fb8aa75dcb30c06e8309b89d7557a6931 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 20 Jul 2009 09:17:32 +0000 Subject: 27178: FAQ---quoting function names to stop expansion is always(ish) safe --- ChangeLog | 6 +++--- Etc/FAQ.yo | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index eaab74d22..16ff7d0ae 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,7 @@ 2009-07-20 Peter Stephenson - * 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 @@ -12023,5 +12023,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4747 $ +* $Revision: 1.4748 $ ***************************************************** diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo index a83dc252f..cac842eed 100644 --- a/Etc/FAQ.yo +++ b/Etc/FAQ.yo @@ -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) -- cgit 1.4.1