[Top][All Lists]

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

Re: shell-mode flakey

From: Andreas Röhler
Subject: Re: shell-mode flakey
Date: Tue, 18 Dec 2007 20:51:52 +0100
User-agent: KMail/1.9.5

Am Dienstag, 18. Dezember 2007 17:19 schrieb Roland Winkler:
> jidanni@jidanni.org writes:
> > And of course for we Geritol clubbers, what if one becomes deceased
> > and one's chin hits SPC and nose hits RET. Do you want to be
> > remembered by your community club as that guy who deleted all the
> > files?
> Somewhat off-topic: I once discussed the following on
> bug-coreutils@gnu.org.
> I have
>   alias rm='rm --interactive'
> But what I really would like was an interactive query that was
> restricted to those cases when I have typed something on the command
> line that doesn't tell me what rm will really do. Usually, this is
> the case when the shell did some filename expansion. Unfortunately,
> to the best of my knowledge it is not possible for a command like rm
> to figure out whether the command shell performed some kind of
> filename expansion or not.
> 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.
> How is emacs' shell mode implemented? I use it more and more often
> instead of a "plain terminal". Could it distinguish between these
> cases?
> Roland

Probably dired delivers what you are looking for.

Andreas Röhler

reply via email to

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