Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Fwd: Problem with RM_STAR_WAIT
- X-seq: zsh-workers 32023
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ismail Donmez <ismail@xxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: Fwd: Problem with RM_STAR_WAIT
- Date: Tue, 19 Nov 2013 08:21:07 -0800
- In-reply-to: <CAJ1KOAhuOPatpOMF1wkbEqHNVi=GhQGHe8czmMbnep1g+1+V2w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAJ1KOAgAQnzge0v02b8KxW8uL3F4T9hxi4kaS5Ws7UKVjX8O-Q@mail.gmail.com> <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();
Messages sorted by:
Reverse Date,
Date,
Thread,
Author