From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Allen Li Newsgroups: gmane.emacs.bugs Subject: bug#29465: 25.3; Confusing message for dired-do-shell-command substitution Date: Sun, 26 Nov 2017 23:16:59 -0800 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1511767091 3821 195.159.176.226 (27 Nov 2017 07:18:11 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Nov 2017 07:18:11 +0000 (UTC) To: 29465@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 27 08:18:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJDg2-0000PI-UV for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 08:18:03 +0100 Original-Received: from localhost ([::1]:59505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJDgA-0003uR-5U for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Nov 2017 02:18:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJDg3-0003sv-JM for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 02:18:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJDg2-00078A-LO for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 02:18:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51277) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJDg2-000780-HH for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 02:18:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eJDg2-0007ee-8V for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 02:18:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Allen Li Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Nov 2017 07:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 29465 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.151176703229366 (code B ref -1); Mon, 27 Nov 2017 07:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 27 Nov 2017 07:17:12 +0000 Original-Received: from localhost ([127.0.0.1]:59958 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJDfE-0007da-K9 for submit@debbugs.gnu.org; Mon, 27 Nov 2017 02:17:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46100) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eJDfD-0007dN-0R for submit@debbugs.gnu.org; Mon, 27 Nov 2017 02:17:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJDf6-0006pU-UI for submit@debbugs.gnu.org; Mon, 27 Nov 2017 02:17:05 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59374) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eJDf6-0006pQ-Qx for submit@debbugs.gnu.org; Mon, 27 Nov 2017 02:17:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37050) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eJDf4-0003kg-BY for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 02:17:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eJDf3-0006n5-A7 for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 02:17:02 -0500 Original-Received: from mail-qk0-x244.google.com ([2607:f8b0:400d:c09::244]:46154) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eJDf3-0006mc-4z for bug-gnu-emacs@gnu.org; Mon, 27 Nov 2017 02:17:01 -0500 Original-Received: by mail-qk0-x244.google.com with SMTP id b85so31189489qkc.13 for ; Sun, 26 Nov 2017 23:17:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=CVLo3rkjs0YXPdH1YyQoFW5ILaxNq8xJ/SMARDvk9gk=; b=SHCTCuabf1nexs8xTqS6mVok/btUpPcBUp9sP7MHGljt7c0WukjnX7/U6EtykvsFQb 71Nvb0bXVGSFFb/gtjOCmDU1u17PaHWKGRcQtkULYtRCtfMhYiQrS7Bj4HOUv+8VKTUr eI72RsAVByiH3SZBaxfXpb5swTQm46eAGPpcXmniBFoeurCiYJ15dvPN5sPA8cnQRIpN fHcdjrYFD6sg1d603oplElZOVHX0iz68vGP0hcg3KB6Zwsyf6EmK2XFlTP4dxvgSa2ec DRMO1swZWcMoxlP06Ry0TkHrdou9RdmRm0Qf1XYpZsTfCZDZ1GjkazPIMnF94iBX+Bps oEcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=CVLo3rkjs0YXPdH1YyQoFW5ILaxNq8xJ/SMARDvk9gk=; b=bhPLfbHxiGMyocbSunWRCnxWH3lNRGihXPe63Ps+e4vODS0glE8zr9JZRu3c7X+crW h0qGtMIfji0rfgY3JjSohTs3qRnzBJWVGN76PsG55Hrgfg47AAjTgirW2xsS1uaj0Ftj fw+mfpyyzDgkMIL96XoepLknxbm9U7dXv/hoBc77Ns78/6h43MDfGEIk3udQzQimPh4r YNXDYbDz5B9M/ppBGjvTdwM9mX+9PD09QmaH0kYsARw2WDy7F7h3qQ+gtaTrFBJU1yD1 HY4BdNpcFw2Djt9nuafLwe2bZK2/Jix2MNuYOCmnhdgCNFVvC7lNiH3ONKmYzObAcJHT u5xg== X-Gm-Message-State: AJaThX7ha49j4d737q3luSpR/g974MkNPLKQs4us0RcGKakPZjb/ZGhO xwT+5Aqj8LYxidRlIxBV7XAz2x+xMpPB+NByvUcyHCOW X-Google-Smtp-Source: AGs4zMZjk/ZxkFiiSBuWea9s1KBKPgzm9LIJL+rWG4reNbQJsW+4QGGCrRoMoqK5245pGMUCrye+9lDvOdmqxOcktwM= X-Received: by 10.55.112.6 with SMTP id l6mr10877639qkc.329.1511767020082; Sun, 26 Nov 2017 23:17:00 -0800 (PST) Original-Received: by 10.237.52.161 with HTTP; Sun, 26 Nov 2017 23:16:59 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:140444 Archived-At: When you use * or ? in dired-do-shell-command without the intent for Dired to replace it, you are prompted with Confirm--do you mean to use `*' as a wildcard? This message is confusing, because there are lots of ways for * to be passed to the shell without globbing. I am also more familiar with the term globbing than wildcard, which makes it doubly confusing, for example if I run find ? -name '*.txt' I get the message: Confirm--do you mean to use `*' as a wildcard? What the question is really asking is, should * be passed to the shell directly, as whether or not it is interpreted as a glob is determined by the shell and the quoting rules in question. I think this confirmation message should be removed entirely. 1. The edge case that it is trying to protect against is not very common. 2. There is no reasonable behavior that the user could expect from this edge case. 3. The documentation string clearly describes how * and ? are interpreted. 4. The confirmation message is not very informative and is possible misleading. 5. This confirmation message shows up every time an advanced user wants to run any command containing * or ?, e.g. for find, grep, sed, or many other tools. 6. The confirmation message is not even shown consistently. For example it is shown for find ? -name '*.txt' but not for find * -name '*.txt' Thus, it isn't even useful for protecting against some hypothetical unwanted behavior. In GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.19) of 2017-09-16 built on juergen Windowing system distributor 'The X.Org Foundation', version 11.0.11905000 Configured using: 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'