From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65993 Path: news.gmane.org!not-for-mail From: Russ Allbery Newsgroups: gmane.emacs.gnus.general,gmane.emacs.bugs Subject: Re: shell-mode flakey Date: Tue, 18 Dec 2007 18:22:04 -0800 Organization: The Eyrie Message-ID: <87odcn1l0z.fsf@windlord.stanford.edu> 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 1198030947 30741 80.91.229.12 (19 Dec 2007 02:22:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 19 Dec 2007 02:22:27 +0000 (UTC) To: ding@gnus.org, bug-gnu-emacs@gnu.org Original-X-From: ding-owner+M14486@lists.math.uh.edu Wed Dec 19 03:22:39 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1J4oZw-00074j-LV for ding-account@gmane.org; Wed, 19 Dec 2007 03:22:36 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1J4oZb-0003rJ-0N; Tue, 18 Dec 2007 20:22:15 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1J4oZZ-0003r6-U8 for ding@lists.math.uh.edu; Tue, 18 Dec 2007 20:22:13 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1J4oZT-0004CH-Vo for ding@lists.math.uh.edu; Tue, 18 Dec 2007 20:22:13 -0600 Original-Received: from smtp3.stanford.edu ([171.67.20.26]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1J4oZS-0001NS-00 for ; Wed, 19 Dec 2007 03:22:06 +0100 Original-Received: from smtp3.stanford.edu (localhost.localdomain [127.0.0.1]) by localhost (Postfix) with SMTP id 7600B60DE98; Tue, 18 Dec 2007 18:22:04 -0800 (PST) Original-Received: from windlord.stanford.edu (windlord.Stanford.EDU [171.64.19.147]) by smtp3.stanford.edu (Postfix) with ESMTP id 56CAB60DE96; Tue, 18 Dec 2007 18:22:04 -0800 (PST) Original-Received: by windlord.stanford.edu (Postfix, from userid 1000) id 52129E914B; Tue, 18 Dec 2007 18:22:04 -0800 (PST) In-Reply-To: (Roland Winkler's message of "Tue\, 18 Dec 2007 17\:19\:32 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65993 gmane.emacs.bugs:17193 Archived-At: Roland Winkler writes: > > 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. Yeah, this is the reason why tcsh implements this in the shell rather than in rm. set rmstar in tcsh will cause tcsh to warn about the command rm with an argument of * before it expands the wildcard, which is far more useful than rm -i because it only prompts for an infrequent operation. I wish bash had that feature; it's one of the main things left that tcsh will do that bash won't (so far as I know). -- Russ Allbery (rra@stanford.edu)