Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zsh ignores the arguments on its first command.
- X-seq: zsh-workers 27994
- From: Peter Stephenson <Peter.Stephenson@xxxxxxx>
- To: Martin Buchholz <martinrb@xxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: zsh ignores the arguments on its first command.
- Date: Thu, 3 Jun 2010 14:32:20 +0100
- Cc: Joel Ebel <jbebel@xxxxxxxxxx>
- In-reply-to: <AANLkTilx2bOk5hHYLVly8XCIu4xz4hhtFHpgTaP4otN3@xxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Cambridge Silicon Radio
- References: <martinrb@xxxxxxxxxx> <AANLkTikiCBKGaJcuE9s-vMZvK465tTR6WSFIsy6wo7xL@xxxxxxxxxxxxxx> <201006012145.o51LjhGg005724@xxxxxxxxxxxxxxxxxxx> <AANLkTikvkgA0bFLLh7VLVtBbUVMdM64-2iQXjAVbHvaA@xxxxxxxxxxxxxx> <20100602121901.6ce71329@xxxxxxx> <AANLkTimPDymUsBJICkPlnyeFuFLA5Ek80j_aNQH5rXGo@xxxxxxxxxxxxxx> <20100603100109.1b090b4e@xxxxxxx> <AANLkTilx2bOk5hHYLVly8XCIu4xz4hhtFHpgTaP4otN3@xxxxxxxxxxxxxx>
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