summaryrefslogtreecommitdiffstats
path: root/Etc/FAQ.yo
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2009-07-20 09:02:39 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2009-07-20 09:02:39 +0000
commit7e0ca714695bf22171c1b937899ee42d6afde376 (patch)
tree49ff85ed270b9ca90fca5c22a4d7e99fc903c7fa /Etc/FAQ.yo
parent27159: restore pre-23067 behavior of SIGINT outside a "wait", so that (diff)
downloadzsh-7e0ca714695bf22171c1b937899ee42d6afde376.tar
zsh-7e0ca714695bf22171c1b937899ee42d6afde376.tar.gz
zsh-7e0ca714695bf22171c1b937899ee42d6afde376.tar.bz2
zsh-7e0ca714695bf22171c1b937899ee42d6afde376.tar.lz
zsh-7e0ca714695bf22171c1b937899ee42d6afde376.tar.xz
zsh-7e0ca714695bf22171c1b937899ee42d6afde376.tar.zst
zsh-7e0ca714695bf22171c1b937899ee42d6afde376.zip
27178: FAQ---quoting function names to stop expansion is always safe
Diffstat (limited to 'Etc/FAQ.yo')
-rw-r--r--Etc/FAQ.yo8
1 files changed, 8 insertions, 0 deletions
diff --git a/Etc/FAQ.yo b/Etc/FAQ.yo
index 518f7aae8..a83dc252f 100644
--- a/Etc/FAQ.yo
+++ b/Etc/FAQ.yo
@@ -819,6 +819,14 @@ label(23)
use in the body of a function, but define the function first if the
alias has the same name as the function.
+ If you aware of the problem, you can always escape part or all of the
+ name of the function:
+ verb(
+ 'l'() { /bin/ls -la "$@" | more }
+ )
+ 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.
sect(Similarities with tcsh)