Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rfc patch, abort rm instead of only removing the * from the cmdline
- X-seq: zsh-users 13153
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users <zsh-users@xxxxxxxxxx>
- Subject: Re: rfc patch, abort rm instead of only removing the * from the cmdline
- Date: Thu, 21 Aug 2008 22:17:35 -0700
- In-reply-to: <20080821165814.0f107293@pws-pc>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <237967ef0808151649j1d14ce23s1acad02da98fdfdf@xxxxxxxxxxxxxx> <2d460de70808160858p5312805dlf1c9976a9b702a51@xxxxxxxxxxxxxx> <237967ef0808160902p4dbc6d73w6620f6c69471ea20@xxxxxxxxxxxxxx> <2d460de70808160914h2c3706ebs312a0bbd62afbf57@xxxxxxxxxxxxxx> <20080816205209.GA5176@xxxxxxxxxxxxxxx> <237967ef0808161358y5deae840xe3bd399d01d198f@xxxxxxxxxxxxxx> <20080817065717.GA5175@xxxxxxxxxxxxxxx> <080817134217.ZM29726@xxxxxxxxxxxxxxxxxxxxxx> <20080821165814.0f107293@pws-pc>
On Aug 21, 4:58pm, Peter Stephenson wrote:
} Subject: Re: rfc patch, abort rm instead of only removing the * from the c
}
} On Sun, 17 Aug 2008 13:42:15 -0700
} Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
} > Ideally I suppose this prompt should work like the prompt for "correct",
} > giving you "nyae" as choices so you can choose to abort or to edit
}
} That would certainly make things more consistent; I'm not sure how easy
} that is at this point in the code, however, which I think (without
} checking) is quite late into execution. Does anyone want to look?
It can't be that late, as it has to happen before globbing in order to
find the Star token. However, correction aborts by making hend() return
false, and relative to that in init.c:loop(), checkrmall() is down in
execode() which is after hend() has finished and even after preexec has
been run. So the [yna] part would be easy (use Stephane's patch exept
only on a response of "a"), but it would have to unwind (or re-instate)
a fair bit of state to get back to the same command line for "e".
(This thread should probably move to zsh-workers at this point.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author