zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Ismail Donmez <ismail@donmez.ws>, zsh-workers@zsh.org
Subject: Re: Fwd: Problem with RM_STAR_WAIT
Date: Tue, 19 Nov 2013 08:21:07 -0800	[thread overview]
Message-ID: <131119082107.ZM18163@torch.brasslantern.com> (raw)
In-Reply-To: <CAJ1KOAhuOPatpOMF1wkbEqHNVi=GhQGHe8czmMbnep1g+1+V2w@mail.gmail.com>

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();


  reply	other threads:[~2013-11-19 16:21 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJ1KOAgAQnzge0v02b8KxW8uL3F4T9hxi4kaS5Ws7UKVjX8O-Q@mail.gmail.com>
2013-11-19 12:04 ` İsmail Dönmez
2013-11-19 16:21   ` Bart Schaefer [this message]
2013-11-19 16:33     ` Bart Schaefer
2013-11-20 11:27     ` İsmail Dönmez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=131119082107.ZM18163@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=ismail@donmez.ws \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).