Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Bug#537596: regression: parse error near `()' in function definition



You're right, it's not absolutely guaranteed to be safe.

Index: Etc/FAQ.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Etc/FAQ.yo,v
retrieving revision 1.48
diff -u -r1.48 FAQ.yo
--- Etc/FAQ.yo	20 Jul 2009 09:02:41 -0000	1.48
+++ Etc/FAQ.yo	20 Jul 2009 09:15:07 -0000
@@ -826,7 +826,9 @@
   )
   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)
 

-- 
Peter Stephenson <pws@xxxxxxx>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


'member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom'



Messages sorted by: Reverse Date, Date, Thread, Author