zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: "Zsh Hackers' List" <zsh-workers@zsh.org>
Subject: Re: PATCH: rm * with count
Date: Wed, 10 Feb 2016 13:20:48 -0800	[thread overview]
Message-ID: <160210132048.ZM3836@torch.brasslantern.com> (raw)
In-Reply-To: <20160210164150.5bef82b2@pwslap01u.europe.root.pri>

On Feb 10,  4:41pm, Peter Stephenson wrote:
} Subject: PATCH: rm * with count
}
} Faced with a "rm *" prompt, it occurred to me it might be a little bit
} more helpful to decide if something has gone really horribly wrong if we
} made the easy tweak to count the number of files in the directory.
} 
} Any comments on the following?

My only comment would be that this can potentially take a long time if
the number of files in the directory is large.  Perhaps stop after some
number (100?) and prompt with

    "sure you want to delete more than %d files in "

Also if the count is zero maybe the prompt should say something about
"no files to remove" or something.


  reply	other threads:[~2016-02-10 21:20 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-10 16:41 Peter Stephenson
2016-02-10 21:20 ` Bart Schaefer [this message]
2016-02-11 11:50   ` Peter Stephenson

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=160210132048.ZM3836@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).