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

Re: zsh ignores the arguments on its first command.



On Thu, 3 Jun 2010 06:22:57 -0700
Martin Buchholz <martinrb@xxxxxxxxxx> wrote:
> So please change the zsh error to something like
> 
> "Autoloading of module %s failed to define parameter %s"

You're right, it's a specific error for this case, it could be a lot
clearer.

Index: Src/params.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/params.c,v
retrieving revision 1.160
diff -p -u -r1.160 params.c
--- Src/params.c	12 May 2010 10:07:01 -0000	1.160
+++ Src/params.c	3 Jun 2010 13:31:33 -0000
@@ -461,7 +461,8 @@ getparamnode(HashTable ht, const char *n
 	     * stuff to go ahead with the autoload stub with
 	     * no error status we're in for all sorts of mayhem?
 	     */
-	    zerr("unknown parameter: %s", nam);
+	    zerr("autoloading module %s failed to define parameter: %s", mn,
+		 nam);
 	}
     }
     return hn;


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