Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: rm * with count
- X-seq: zsh-workers 37943
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: "Zsh Hackers' List" <zsh-workers@xxxxxxx>
- Subject: Re: PATCH: rm * with count
- Date: Wed, 10 Feb 2016 13:20:48 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=A/EXn4o60G8jhZEfllNaofYyYMztqC2fgozCLStfn3M=; b=J++zTTbPQp0Oa2CCf/j1lD2CLzIJEIG4eRzHiMcUKPZMrtRtvfXm0E5rj977Jg6mtN lXWc5qImszjJXOXwgdb12krs7t90++VlmwMoJGd6qKSMNWg7rPtyv5Rgk7jFxIgu2l33 b0mlmB5aIjmoni9EsQRD4Q+o1JNngjtCOxKecykOBWz2AXsmV71plEqPHF5FvZO87A87 rIJtRe29tZJfl2LBYd16nDF/DTfrv61QM3k5CPfAnbbmwlDIZDc1bU5d+Wa2hpTorN9P ysNJ/XChh9Wxt0Yl0ag0rNtjhFWD/Ibv76+262K0s8j7wW4KymgZ6hhqk3qAgn8b0ab8 BVOw==
- In-reply-to: <20160210164150.5bef82b2@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author