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

Re: PATCH: Re: Segmentation fault 3.1.7-pre-3/4



On May 23,  4:10pm, Bart Schaefer wrote:
} Subject: Re: PATCH: Re: Segmentation fault 3.1.7-pre-3/4
}
} } +	    } else if (!shout) {
} } +		haso = 1;
} } +		oshout = shout;
} } +		init_shout();
} }  	    }
} 
} What horrible things would happen if `haso' were simply left as 0 here?

No one has had anything to say about this, so I've committed the following
patch.

Index: builtin.c
===================================================================
@@ -3406,6 +3406,9 @@
 		    oshout = shout;
 		    init_shout();
 		}
+	    } else if (!shout) {
+		/* We need an output FILE* on the tty */
+		init_shout();
 	    }
 	    /* We should have a SHTTY opened by now. */
 	    if (SHTTY == -1) {

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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