Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: zle -F with no arguments
- X-seq: zsh-workers 17295
- From: Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx (Zsh hackers list)
- Subject: PATCH: zle -F with no arguments
- Date: Wed, 05 Jun 2002 21:57:31 +0100
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
The amount of time I waste...
`zle -F' on its own could fail because it looked at an undefined
argument.
Index: Src/Zle/zle_thingy.c
===================================================================
RCS file: /cvsroot/zsh/zsh/Src/Zle/zle_thingy.c,v
retrieving revision 1.5
diff -u -r1.5 zle_thingy.c
--- Src/Zle/zle_thingy.c 21 May 2002 11:10:17 -0000 1.5
+++ Src/Zle/zle_thingy.c 5 Jun 2002 20:55:03 -0000
@@ -697,7 +712,7 @@
if (ops['L'] || !*args) {
/* Listing handlers. */
- if (args[1]) {
+ if (*args && args[1]) {
zwarnnam(name, "too many arguments for -FL", NULL, 0);
return 1;
}
--
Peter Stephenson <pws@xxxxxxxxxxxxxxxxxxxxxxxx>
Work: pws@xxxxxxx
Web: http://www.pwstephenson.fsnet.co.uk
Messages sorted by:
Reverse Date,
Date,
Thread,
Author