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: Sat, 27 Mar 2021 11:42:17 +0300 Message-ID: References: <86sg4hnkdo.fsf@protected.rcdrun.com> 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="5300"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/2.0.6 (2021-03-06) Cc: 47432@debbugs.gnu.org To: Arthur Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 27 09:44: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 1lQ4YG-0001H5-6m for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 09:44:12 +0100 Original-Received: from localhost ([::1]:40860 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQ4YF-0006et-4i for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 04:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQ4Y6-0006eY-Jz for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 04:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60082) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQ4Y6-0008W6-D5 for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 04:44:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQ4Y6-0007kq-Ak for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 04:44: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: Sat, 27 Mar 2021 08:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47432 X-GNU-PR-Package: emacs Original-Received: via spool by 47432-submit@debbugs.gnu.org id=B47432.161683459329718 (code B ref 47432); Sat, 27 Mar 2021 08:44:02 +0000 Original-Received: (at 47432) by debbugs.gnu.org; 27 Mar 2021 08:43:13 +0000 Original-Received: from localhost ([127.0.0.1]:43395 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQ4XJ-0007jF-FG for submit@debbugs.gnu.org; Sat, 27 Mar 2021 04:43:13 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:45877) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQ4XG-0007iz-Qc for 47432@debbugs.gnu.org; Sat, 27 Mar 2021 04:43:11 -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 000000000001E0AB.00000000605EF017.000002DE; Sat, 27 Mar 2021 01:43:02 -0700 Content-Disposition: inline In-Reply-To: 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:203110 Archived-At: * Arthur Miller [2021-03-27 10:52]: > 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. > > Why is "Command not entered" to prefer to "Command not found"? It is meant as example, I leave those decisions to developers. Now I can see that ! and & without command are acting on the file as the file should be executed. Let us say I have Screenshot.pl executable file, if I run ! on it, the file is executed. This means there was attempt to execute ~/.asoundrc -- I find that insecure and not logical. And I do not understand it quite how it works. Was there an attempt to execute program with bash? Why should there be attempt to execute non-executable files?