Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: 'rm foo * bar' and answering 'n' runs 'rm foo bar'
- X-seq: zsh-workers 42062
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: 'rm foo * bar' and answering 'n' runs 'rm foo bar'
- Date: Thu, 30 Nov 2017 09:41:08 +0000
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20171130094113euoutp01a977b03c4171762aa11df0415f6ef069~707S8WDRq3116531165euoutp01X
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1512034873; bh=OZb2QQ+ky7RFTV8fuM5b9Cgj2aNCkOH1e4kdJ2CuHNM=; h=Date:From:To:Subject:In-reply-to:References:From; b=mJpXLbXTUicRE8DaVJIHIsOMP07+yWHo8l2axgmjHzTcPl6E8YNuSMfpoRrj+uVsw wiXSWAweQl3RNKkNpMVij/TwVzUnJmZkW7hT+a/WDlka8pQkhyZHfCaHvv0RHzzL1l GJhdYMA7dCbZkSd1h5lNZeZBROogOgEGTJDanIus=
- In-reply-to: <20171129171933.jnctgmvbicuhrf6j@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- Organization: Samsung Cambridge Solution Centre
- References: <CGME20171129172023epcas2p2ad06101e98ecb0ffc5f52b45b8dd8af0@epcas2p2.samsung.com> <20171129171933.jnctgmvbicuhrf6j@tarpaulin.shahaf.local2>
On Wed, 29 Nov 2017 17:19:33 +0000
Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> As the subject says:
>
> $ zsh -f
> % cd $(mktemp -d)
> % touch foo bar baz
> % rm foo * bar
> zsh: sure you want to delete all 3 files in /tmp/tmp.e9ZNT40K4y [yn]? n
> % ls
> baz
> %
>
> This is counter-intuitive: users expect 'n' to abort the command
> entirely.
>
> It was brought up nine years ago:
>
> Thread starts: http://www.zsh.org/cgi-bin/mla/redirect?USERNUMBER=13141
> Stéphane's patch: http://www.zsh.org/cgi-bin/mla/redirect?USERNUMBER=13148
> Review: http://www.zsh.org/cgi-bin/mla/redirect?USERNUMBER=13149
> Review: http://www.zsh.org/cgi-bin/mla/redirect?USERNUMBER=13150
>
> So... Shall we commit users/13148?
>
> Mikael had a rebased version available, I've attached it (with
> permission).
That seems reasonable --- it's hard to think of a negative consequence.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author