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 21:54:16 +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="5987"; 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 19:55:16 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 1lQE5b-0001Po-8T for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 19:55:15 +0100 Original-Received: from localhost ([::1]:36850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQE5Z-0008Gb-BL for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 27 Mar 2021 14:55:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51844) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQE5O-0008GP-3r for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 14:55:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33397) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQE5N-0006uZ-Sq for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 14:55:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQE5N-00041L-Qb for bug-gnu-emacs@gnu.org; Sat, 27 Mar 2021 14:55:01 -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 18:55:01 +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.161687127415419 (code B ref 47432); Sat, 27 Mar 2021 18:55:01 +0000 Original-Received: (at 47432) by debbugs.gnu.org; 27 Mar 2021 18:54:34 +0000 Original-Received: from localhost ([127.0.0.1]:44943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQE4v-00040c-ER for submit@debbugs.gnu.org; Sat, 27 Mar 2021 14:54:34 -0400 Original-Received: from stw1.rcdrun.com ([217.170.207.13]:35353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQE4r-00040K-T8 for 47432@debbugs.gnu.org; Sat, 27 Mar 2021 14:54:32 -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.00000000605F7F5E.00004AA8; Sat, 27 Mar 2021 11:54:21 -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:203134 Archived-At: * Arthur Miller [2021-03-27 17:00]: > How you seen the docs? For example C-h k ! RET: > > Signature > (dired-do-shell-command COMMAND &optional ARG FILE-LIST) > > Documentation > Run a shell command COMMAND on the marked files. > > > > Why should there be attempt to execute non-executable files? > > Because you asked it to by calling ! or & on a file in Dired. I have got a feeling you have not get really what is taking place: 1. Dired mode 2. Come on any file or directory, not executable 3. Press ! or & 4. Press ENTER 5. Get error, it can be different, depending of situation. Like /usr/bin/bash: line 1: admin_Leo: command not found where "admin_Leo" is directory I cannot see in the documentation that ! or & in Dired is supposed to run that specific marked file as COMMAND. I can understand that command is asked and user should enter the command. But I do not see that the marked file is supposed to be executed as COMMAND when command is not manually entered by user. Why is Emacs trying to execute a directory? Why is Emacs trying to execute non-executable file? - documentation of the function should maybe reflect that ! or & is meant to execute the marked file or current file in Dired if no COMMAND is supplied manually. - Emacs should stop trying to execute directories or non executable files.