From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#47432: 28.0.50; Dired using ! or & on file should fail without command supplied Date: Sun, 28 Mar 2021 16:03:32 +0200 Message-ID: <877dlrs7d7.fsf@gnus.org> References: <86sg4hnkdo.fsf@protected.rcdrun.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5603"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 47432@debbugs.gnu.org To: Jean Louis Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Mar 28 16:04:10 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 1lQW1R-0001Jm-Qx for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 16:04:09 +0200 Original-Received: from localhost ([::1]:55346 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQW1Q-00044L-P3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 28 Mar 2021 10:04:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQW1K-00043t-Jf for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 10:04:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35122) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQW1K-0000GH-BC for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 10:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQW1K-0001Td-6e for bug-gnu-emacs@gnu.org; Sun, 28 Mar 2021 10:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 28 Mar 2021 14:04: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.16169402255639 (code B ref 47432); Sun, 28 Mar 2021 14:04:02 +0000 Original-Received: (at 47432) by debbugs.gnu.org; 28 Mar 2021 14:03:45 +0000 Original-Received: from localhost ([127.0.0.1]:46665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQW12-0001Sr-Hj for submit@debbugs.gnu.org; Sun, 28 Mar 2021 10:03:44 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:56094) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQW10-0001Sd-Je for 47432@debbugs.gnu.org; Sun, 28 Mar 2021 10:03:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=+ADaiChFyZXapGG9dlJycJQSzSMDCWBm+VemSjZwC98=; b=bxtXx0iJieCca24Gt6W9eTM+40 HEBwPqfiHisSLbDGwEw08WrbPnfIYjk1b0VvDcWDO8D8K+JOAnrgd+pikF7mVwYjVzEXgqq+f1PJ8 9ILAk1YDkvH+4oYfplwcB3wGCATxGNYSPnj+XvzqMdcmPXrPyJVqxfx5g9YmP2Vxc8d0=; Original-Received: from cm-84.212.220.105.getinternet.no ([84.212.220.105] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lQW0r-00032G-Ko; Sun, 28 Mar 2021 16:03:36 +0200 X-Now-Playing: The Style Council's _The Complete Adventures (2)_: "The Big Boss Groove" In-Reply-To: <86sg4hnkdo.fsf@protected.rcdrun.com> (Jean Louis's message of "Sat, 27 Mar 2021 10:09:07 +0300") 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:203164 Archived-At: 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. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no