From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.bugs Subject: bug#28969: 27.0.50; dired: Confirmation prompt for wildcard not surrounded by whitespace Date: Sun, 14 Jul 2019 18:38:01 -0400 Message-ID: <871rys1bue.fsf@gmail.com> References: <87she833e1.fsf@web.de> <877e8kwbsn.fsf@mouse.gnus.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="118793"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2.90 (gnu/linux) Cc: Michael Heerdegen , 28969@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 00:39:12 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hmn9A-000Uhm-DR for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 00:39:08 +0200 Original-Received: from localhost ([::1]:34462 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmn98-0005vb-Pb for geb-bug-gnu-emacs@m.gmane.org; Sun, 14 Jul 2019 18:39:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52338) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hmn95-0005uz-9M for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 18:39:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hmn94-00062W-5l for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 18:39:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37359) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hmn93-00062Q-VN for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 18:39:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hmn93-0008QA-PQ for bug-gnu-emacs@gnu.org; Sun, 14 Jul 2019 18:39:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Noam Postavsky Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 14 Jul 2019 22:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 28969 X-GNU-PR-Package: emacs Original-Received: via spool by 28969-submit@debbugs.gnu.org id=B28969.156314389032308 (code B ref 28969); Sun, 14 Jul 2019 22:39:01 +0000 Original-Received: (at 28969) by debbugs.gnu.org; 14 Jul 2019 22:38:10 +0000 Original-Received: from localhost ([127.0.0.1]:46180 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmn8E-0008Ox-3w for submit@debbugs.gnu.org; Sun, 14 Jul 2019 18:38:10 -0400 Original-Received: from mail-io1-f49.google.com ([209.85.166.49]:36274) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hmn8C-0008Og-Jq; Sun, 14 Jul 2019 18:38:09 -0400 Original-Received: by mail-io1-f49.google.com with SMTP id o9so31288190iom.3; Sun, 14 Jul 2019 15:38:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=gVd6MgjY2f5nyK1eMu92+mm51aecyGVgcihQnyVBH9s=; b=Pf1m5KvElGbAx8EAnJsptkp1CUkypMB9eXRGL9eJwku7MUkZYwtKbYhpIMfYvXYc1+ S4Rya/ffp47JttzQ4JT3ke6PTwQY94LeCzm/myt0YiTq11kGKEhWobkv7bqxlPiwK3X2 a4PHFzA1rw8k1XUNMkQbudRz2gCy6OyCnFSeE1ylBWO0GZGw3poAhphDuFuq7/m/d2gO z6Fz25jiEXS820Ty3guuaeVSEzDP2NX77RrOtanDerS5D16gbw1XeoHxCsJedyHKeank G2GMiRKedwQEkMZR7qjM59ItTgz1J9+ida0hb8S6V9nOs3RDEwfEOGPafr45PmSo23AG /MQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=gVd6MgjY2f5nyK1eMu92+mm51aecyGVgcihQnyVBH9s=; b=X8JnenhMP/JMAQ8vAWew0NH8FWwy2tdwJZKLq9zbGEJqddhsQ01WnDaZkgWr+tCyMg 6Afo06zBBRZkN4FutfoNwCz5Z0lMh8bvldFFfvKAmj7dsvXECkSQjDrnW02gqjoejRif LTJFwVSaknV2KFkf3eqr4bk+ZwrvqnOvvh4L3izaim2AFp5Y5EA/8V7k2UCBOr5w/Sdz xwuvstP8HLKXljLYRrn7CHWFWr9o4PvRbxb6C1pyhGxT1b0sPwpnM2Nl9MKBAUTfyMrA Ua8wJm6D9Qd1YZanq6N++4q9zuXj6yYt9F7brtAtNIHcODitg2uEhOb6R+H3CvbKGmMj vF6Q== X-Gm-Message-State: APjAAAXH+uxLZr1NYjBjFHZPhDsFe4NfQ7tDhzAGR0jiKFvyb6UA5IE4 OL+Hwe4J1Q1mHTZ85K2ucVW7YNOs X-Google-Smtp-Source: APXvYqwW6ALUciZbBZWaPhvGURlWP+R76RkGbwM/uPJseDSbiIxh3es1VkpHHXXC5+/sBHzAxAgT9A== X-Received: by 2002:a02:cb4b:: with SMTP id k11mr24103469jap.109.1563143882804; Sun, 14 Jul 2019 15:38:02 -0700 (PDT) Original-Received: from minid (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.gmail.com with ESMTPSA id y20sm12797465iol.34.2019.07.14.15.38.02 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 14 Jul 2019 15:38:02 -0700 (PDT) In-Reply-To: <877e8kwbsn.fsf@mouse.gnus.org> (Lars Ingebrigtsen's message of "Sun, 14 Jul 2019 23:23:20 +0200") 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: 209.51.188.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:163057 Archived-At: merge 28969 35564 quit Lars Ingebrigtsen writes: > Michael Heerdegen writes: > >> the docstring of `dired-do-shell-command' says: >> >> | `*' and `?' when not surrounded by whitespace nor `\\=`' have no special >> | significance for `dired-do-shell-command', and are passed through >> | normally to the shell, but you must confirm first. >> >> However, the `y-or-n-p' prompts asks: >> >> "Confirm--do you mean to use `*' as a wildcard? " >> >> and >> >> "Confirm--do you mean to use `?' as a wildcard? " >> >> and you must answer with 'y' to let these not be treated as wildcards - >> if you answer with 'n' as the docstring suggests, the operation is >> aborted. So, with other words, I think the questions must be inverted. > > Hm... I don't quite follow you here... It says it has no significance > for the command, but just passes it through to the shell. Where, of > course, it has great significance. > > If you create the file 1-1, put "bar" in it, and say "! cat 1*1" on the > file, after you've answered "y", you'll get a buffer with "bar bar" in > it. > > So I think all this is correct? Unless I'm misreading you. The meaning of "wildcard" is a bit ambiguous in the prompt itself. There is another report about this in #35564, and patches to greatly enhance the prompt. https://debbugs.gnu.org/35564#104