Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: 'rm foo * bar' and answering 'n' runs 'rm foo bar'



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