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

PATCH: pws-22: ambiguous brace warning



The following patch fixes an ambiguous brace warning that is present
in pws-22:

Index: Src/exec.c
--- zsh-3.1.5-pws-22/Src/exec.c	Mon Jun 14 09:14:30 1999
+++ ./Src/exec.c	Wed Jun 16 13:21:38 1999
@@ -1006,11 +1006,12 @@
     oldlineno = lineno;
     lineno = pline->left->lineno;
 
-    if (pline_level == 1)
+    if (pline_level == 1) {
 	if (!sfcontext)
 	    strcpy(list_pipe_text, getjobtext((void *) pline->left));
 	else
 	    list_pipe_text[0] = '\0';
+    }
     if (pline->type == END)
 	execcmd(pline->left, input, output, how, last1 ? 1 : 2);
     else {

..wayne..



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