From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65987 Path: news.gmane.org!not-for-mail From: Roland Winkler Newsgroups: gmane.emacs.bugs,gmane.emacs.gnus.general Subject: Re: shell-mode flakey Date: Tue, 18 Dec 2007 17:19:32 +0100 Message-ID: References: <87zlxfhztn.fsf@windlord.stanford.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1197994808 13671 80.91.229.12 (18 Dec 2007 16:20:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Dec 2007 16:20:08 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, ding@gnus.org To: jidanni@jidanni.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Dec 18 17:20:19 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4fAp-0008Lv-6J for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 17:20:03 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4fAV-0001VL-SI for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Dec 2007 11:19:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J4fAP-0001Ss-Si for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 11:19:37 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J4fAP-0001Qr-0C for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 11:19:37 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J4fAO-0001Qh-OC for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 11:19:36 -0500 Original-Received: from tfkpsv.physik.uni-erlangen.de ([131.188.164.197]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J4fAO-0002vl-Fd for bug-gnu-emacs@gnu.org; Tue, 18 Dec 2007 11:19:36 -0500 Original-Received: from tfkp07.physik.uni-erlangen.de (tfkp07.physik.uni-erlangen.de [131.188.164.207]) by tfkpsv.physik.uni-erlangen.de (Postfix) with ESMTP id BBA4321485; Tue, 18 Dec 2007 17:19:33 +0100 (CET) In-Reply-To: (jidanni@jidanni.org's message of "Tue\, 18 Dec 2007 13\:24\:30 +0800") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:17187 gmane.emacs.gnus.general:65987 Archived-At: 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