From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jean Louis Newsgroups: gmane.emacs.bugs Subject: bug#47432: 28.0.50; Dired using ! or & on file should fail without command supplied Date: Mon, 29 Mar 2021 21:34:47 +0300 Message-ID: References: <86sg4hnkdo.fsf@protected.rcdrun.com> <877dlrs7d7.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25740"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.6 (2021-03-06) Cc: 47432@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Mar 29 20:37:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQwlE-0006Yn-F7 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 20:37:12 +0200 Original-Received: from localhost ([::1]:42192 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQwlD-0007IG-H9 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 29 Mar 2021 14:37:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQwl4-0007I6-JK for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 14:37:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38021) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQwl4-0001Xg-Bn for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 14:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQwl4-0000K3-83 for bug-gnu-emacs@gnu.org; Mon, 29 Mar 2021 14:37:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jean Louis Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 29 Mar 2021 18:37:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47432 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 47432-submit@debbugs.gnu.org id=B47432.16170430011213 (code B ref 47432); Mon, 29 Mar 2021 18:37:02 +0000 Original-Received: (at 47432) by debbugs.gnu.org; 29 Mar 2021 18:36:41 +0000 Original-Received: from localhost ([127.0.0.1]:49565 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQwki-0000JT-LA for submit@debbugs.gnu.org; Mon, 29 Mar 2021 14:36:41 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:59747) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQwkg-0000JF-Lk for 47432@debbugs.gnu.org; Mon, 29 Mar 2021 14:36:39 -0400 Original-Received: from localhost ([::ffff:41.202.241.58]) (AUTH: PLAIN securesender, TLS: TLS1.3,256bits,ECDHE_RSA_AES_256_GCM_SHA384) by stw1.rcdrun.com with ESMTPSA id 000000000001E064.0000000060621E2F.00000454; Mon, 29 Mar 2021 11:36:30 -0700 Content-Disposition: inline In-Reply-To: <877dlrs7d7.fsf@gnus.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:203265 Archived-At: * Lars Ingebrigtsen [2021-03-28 17:04]: > Jean Louis writes: > > > In Dired, when using ! or & on a file, it should file if there is no > > command supplied. > > > > This is what happens if I use ! on file ~/.asoundrc but without > > supplying command, just pressing RET: > > > > /bin/bash: line 1: .asoundrc: command not found > > > > But it should not, if command is not supplied in: > > (dired-do-shell-command COMMAND &optional ARG FILE-LIST) -- then it > > shall rather silently fail or tell "Command not entered" or nothing to > > do. > > I think that would be a bit odd. But I see that the doc string doesn't > explicitly say that happens here, so I've added the following sentence > to the doc string in Emacs 28: > > ---- > When executing, FILE-LIST is appended to the COMMAND string. > ---- > > And that's what happening here -- COMMAND is "", and FILE-LIST is > appended to that, and then executed. Yes, as documentation and functionality should be in alignment. Please tell me why is that useful to append the file list when there is no command? For example if I run ! on marked directories: /usr/bin/bash: line 1: admin_Leo: command not found /usr/bin/bash: line 1: babel-6KitXT: command not found /usr/bin/bash: line 1: babel-cyz28q: command not found /usr/bin/bash: line 1: babel-YJWc0L: command not found /usr/bin/bash: line 1: babel-ZlWVex: command not found /usr/bin/bash: line 1: backup: command not found C-x C-g is undefined I would like to know how is that useful. Thanks, Jean Louis Take action in Free Software Foundation campaigns: https://www.fsf.org/campaigns