From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22928 invoked from network); 28 Feb 2000 19:13:08 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 28 Feb 2000 19:13:08 -0000 Received: (qmail 5206 invoked by alias); 28 Feb 2000 19:13:02 -0000 Mailing-List: contact zsh-workers-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9915 Received: (qmail 5177 invoked from network); 28 Feb 2000 19:12:59 -0000 From: "Bart Schaefer" Message-Id: <1000228191253.ZM17217@candle.brasslantern.com> Date: Mon, 28 Feb 2000 19:12:53 +0000 In-Reply-To: <200002281308.OAA03686@beta.informatik.hu-berlin.de> Comments: In reply to Sven Wischnowsky "PATCH: RMSTARSILENT" (Feb 28, 2:08pm) References: <200002281308.OAA03686@beta.informatik.hu-berlin.de> X-Mailer: Z-Mail (5.0.0 30July97) To: zsh-workers@sunsite.auc.dk Subject: Re: PATCH: RMSTARSILENT MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Feb 28, 2:08pm, Sven Wischnowsky wrote: } Subject: PATCH: RMSTARSILENT } } ... or, more precisely, getquery() and noquery(). } } Doing `rm *' didn't work for me any more because getquery() always } retunred immediatly with `n'. } } #ifdef FIONREAD } ioctl(SHTTY, FIONREAD, (char *)&val); } if (purge) { } while(val--) } read(SHTTY, &c, 1); } } } #endif } } So, with FIONREAD and purge!=0, we always returned -1. That was wrong, } wasn't it? Oops, yes. I meant to write "if (purge && val)". Sorry about that. Your fix is of course equivalent. -- Bart Schaefer Brass Lantern Enterprises http://www.well.com/user/barts http://www.brasslantern.com