zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: zsh-workers@zsh.org
Subject: Re: 'rm foo * bar' and answering 'n' runs 'rm foo bar'
Date: Thu, 30 Nov 2017 09:41:08 +0000	[thread overview]
Message-ID: <20171130094108.4e14da88@pwslap01u.europe.root.pri> (raw)
In-Reply-To: <20171129171933.jnctgmvbicuhrf6j@tarpaulin.shahaf.local2>

On Wed, 29 Nov 2017 17:19:33 +0000
Daniel Shahaf <d.s@daniel.shahaf.name> 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


      reply	other threads:[~2017-11-30 14:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20171129172023epcas2p2ad06101e98ecb0ffc5f52b45b8dd8af0@epcas2p2.samsung.com>
2017-11-29 17:19 ` Daniel Shahaf
2017-11-30  9:41   ` Peter Stephenson [this message]

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=20171130094108.4e14da88@pwslap01u.europe.root.pri \
    --to=p.stephenson@samsung.com \
    --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).