[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell-mode flakey

From: Sven Joachim
Subject: Re: shell-mode flakey
Date: Wed, 19 Dec 2007 17:25:17 +0100
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux)

On 2007-12-19 01:31 +0100, Miles Bader wrote:

> Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> writes:
>> When I discussed this some time ago with one of the bash
>> maintainers, he said that he had just recovered all files of a
>> colleague who had typed "rm foo *" instead of "rm foo*". For those
>> and only those cases I'd like to have a reliable interactive query
>> before rm will do its job.
> One simple possibility might be a "--query-if-multiple" option, which
> would act like -i if there was more than one command-line filename
> argument.
> That wouldn't  help for all cases, but I think it would catch a large
> proportion of common typos...

In coreutils 6.0 and higher, a similar option is implemented.  From the
NEWS file:

|   rm now accepts the -I (--interactive=once) option.  This new option
|   prompts once if rm is invoked recursively or if more than three
|   files are being deleted, which is less intrusive than -i prompting
|   for every file, but provides almost the same level of protection
|   against mistakes.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]