From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4144 invoked by alias); 19 Nov 2013 16:21:36 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32023 Received: (qmail 10320 invoked from network); 19 Nov 2013 16:21:20 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <131119082107.ZM18163@torch.brasslantern.com> Date: Tue, 19 Nov 2013 08:21:07 -0800 In-reply-to: Comments: In reply to Ismail Donmez "Fwd: Problem with RM_STAR_WAIT" (Nov 19, 2:04pm) References: X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Ismail Donmez , zsh-workers@zsh.org Subject: Re: Fwd: Problem with RM_STAR_WAIT MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Nov 19, 2:04pm, Ismail Donmez wrote: } } Probably this is more important for zsh-workers list. zsh-workers receives everything sent to zsh-users ... I saw this before but didn't have time to do anything with it right then and so left it for someone else. Apparently everyone else did, too. } [/havana/t/z]> rm * } zsh: sure you want to delete all the files in /havana/t/z? (waiting ten } seconds)^C } [yn]? y } } After CTRL-C I think zsh should just stop processing and don't ask the } yes/no, because entering 'y' here has no effect. This is pretty simple to fix. A ctrl+c here must have been effective at some point in the past, I'd think, or there'd be no point in waiting the ten seconds, since we next block forever at the [y/n] prompt. Patch below. } Also, is there a way to change the time interval (default is 10 seconds) ? No, and I'm definitely leaving that for someone else. diff --git a/Src/utils.c b/Src/utils.c index d1d9406..0db9c30 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -2299,6 +2299,8 @@ checkrmall(char *s) sleep(10); fputc('\n', shout); } + if (errflag) + return 0; fputs(" [yn]? ", shout); fflush(shout); zbeep();