From unknown Mon Jun 16 23:40:13 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#6561 <6561@debbugs.gnu.org> To: bug#6561 <6561@debbugs.gnu.org> Subject: Status: dired-do-shell-command " *" vs. "*", too close for comfort Reply-To: bug#6561 <6561@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:40:13 +0000 retitle 6561 dired-do-shell-command " *" vs. "*", too close for comfort reassign 6561 emacs submitter 6561 jidanni@jidanni.org severity 6561 wishlist thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 03 22:11:18 2010 Received: (at submit) by debbugs.gnu.org; 4 Jul 2010 02:11:18 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVEfu-0003wo-A2 for submit@debbugs.gnu.org; Sat, 03 Jul 2010 22:11:18 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVEfs-0003wj-Ni for submit@debbugs.gnu.org; Sat, 03 Jul 2010 22:11:17 -0400 Received: from lists.gnu.org ([199.232.76.165]:60423) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OVEfp-0007AS-24 for submit@debbugs.gnu.org; Sat, 03 Jul 2010 22:11:13 -0400 Received: from [140.186.70.92] (port=43370 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OVEfn-0006F3-GJ for bug-gnu-emacs@gnu.org; Sat, 03 Jul 2010 22:11:12 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OVEfm-0001mC-7C for bug-gnu-emacs@gnu.org; Sat, 03 Jul 2010 22:11:11 -0400 Received: from caiajhbdcbhh.dreamhost.com ([208.97.132.177]:45414 helo=homiemail-a2.g.dreamhost.com) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OVEfm-0001m4-2C for bug-gnu-emacs@gnu.org; Sat, 03 Jul 2010 22:11:10 -0400 Received: from homiemail-a2.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTP id F0EA7280063 for ; Sat, 3 Jul 2010 19:11:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s=jidanni.org ; b=Dd2wH/UWtKs1y/p9JFJnwrYMpiiSubk8sVkJvwy3q/xPUbmggqdQGcU1N+cg +Mgodvs4y11eK7yZu0zDL7uvD2HFkmCwc8pZmbPwCrhtyw7DWTs83c7g4i0+HQQy PBxW+nBecwY+pdWSHEtqQ5Tjj4KTnWqk0pzllN0hYLGox+s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type; s= jidanni.org; bh=GGtoFfvyvoBBc7N1AooUyBPGI68=; b=o3jXFgfc+Jzfgdc0 c8wAJto23ayQ9osbAFU7MEqDyvUv40Q4dVbeg+ZgVdLN7SOg/AxVn6n1psM0AJ8p MG1DJi1IVoXIiAIQqovxNwM13cUQZ4ueQ/g3fMteef7dYmU5PuOej8z1dPnsC6Wm 6VWzaAHHp0qki+tH5J3v91nD7yY= Received: from jidanni.org (218-163-4-31.dynamic.hinet.net [218.163.4.31]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a2.g.dreamhost.com (Postfix) with ESMTPSA id A3C96280062 for ; Sat, 3 Jul 2010 19:11:08 -0700 (PDT) From: jidanni@jidanni.org To: bug-gnu-emacs@gnu.org Subject: dired-do-shell-command " *" vs. "*", too close for comfort Date: Sun, 04 Jul 2010 10:11:04 +0800 Message-ID: <87y6dsc7yf.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.4 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.4 (-----) Gee, a little slip of the wrist, (dired-do-shell-command "head -c 999 * |sum" nil (quote ("FlashXXV9Z9sz"))) (dired-do-shell-command "head -c 999 *|sum" nil (quote ("FlashXXV9Z9sz"))) and it goes and gets every file in the directory. Yes I know it is all well documented, but I can't think of any computer language where such a tiny difference can make such a big difference. I don't have an exact solution. All I know is it will bite the reader sooner or later. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 10 21:27:31 2012 Received: (at 6561-done) by debbugs.gnu.org; 11 Jan 2012 02:27:31 +0000 Received: from localhost ([127.0.0.1]:53066 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RknuU-0006D0-FP for submit@debbugs.gnu.org; Tue, 10 Jan 2012 21:27:31 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:56320) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RknuS-0006Ct-3s for 6561-done@debbugs.gnu.org; Tue, 10 Jan 2012 21:27:28 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Rknu5-0007gQ-5J; Tue, 10 Jan 2012 21:27:05 -0500 From: Glenn Morris To: 6561-done@debbugs.gnu.org Subject: Re: bug#6561: dired-do-shell-command " *" vs. "*", too close for comfort References: <87y6dsc7yf.fsf@jidanni.org> X-Spook: pipeline Khaddafi Adriatic jihad Ft. Knox chameleon man X-Ran: =&iTJ|G75+uWfb;2En6I,H!q,[cbd1pVZEiP6HXL7f;Fm~ytzE*[oW?.+Q=EOjy}z\:F (jidanni@jidanni.org's message of "Sun, 04 Jul 2010 10:11:04 +0800") Message-ID: User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 6561-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Version: 24.0.93 dired-do-shell-command claims to have a safety feature for this: `*' and `?' when not surrounded by whitespace have no special significance for `dired-do-shell-command', and are passed through normally to the shell, but you must confirm first. AFAICS, due to a logic bug this feature has never worked. Hopefully now it does. I still have no idea what: To pass `*' by itself to the shell as a wildcard, type `*\"\"'. is supposed to mean though. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 10 21:34:48 2012 Received: (at 6561) by debbugs.gnu.org; 11 Jan 2012 02:34:48 +0000 Received: from localhost ([127.0.0.1]:53072 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rko1Y-0006O9-0M for submit@debbugs.gnu.org; Tue, 10 Jan 2012 21:34:48 -0500 Received: from fencepost.gnu.org ([140.186.70.10]:56473) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1Rko1V-0006O1-Re for 6561@debbugs.gnu.org; Tue, 10 Jan 2012 21:34:46 -0500 Received: from rgm by fencepost.gnu.org with local (Exim 4.71) (envelope-from ) id 1Rko18-00085J-HT; Tue, 10 Jan 2012 21:34:22 -0500 From: Glenn Morris To: 6561@debbugs.gnu.org Subject: Re: bug#6561: dired-do-shell-command " *" vs. "*", too close for comfort References: <87y6dsc7yf.fsf@jidanni.org> X-Spook: Yukon Ft. Knox industrial intelligence counter terrorism X-Ran: |$K*bMT|+|>@g4vtp_8$Z3An~Nok\0TI~bp38ZU%6pB^]StX%,"BdqFmJa>j1.:z!6F:UE X-Hue: green X-Debbugs-No-Ack: yes X-Attribution: GM Date: Tue, 10 Jan 2012 21:34:22 -0500 In-Reply-To: (Glenn Morris's message of "Tue, 10 Jan 2012 21:27:05 -0500") Message-ID: <1cobub7ys1.fsf@fencepost.gnu.org> User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -4.2 (----) X-Debbugs-Envelope-To: 6561 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.2 (----) Glenn Morris wrote: > I still have no idea what: > > To pass `*' by itself to the shell as a wildcard, type `*\"\"'. > > is supposed to mean though. I see the manual explains it better: If you want to use `*' as a shell wildcard with whitespace around it, ^^^^^^^^^^^^^^^ write `*""'. In the shell, this is equivalent to `*'; but since the `*' is not surrounded by whitespace, Dired does not treat it specially. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 10 22:14:51 2012 Received: (at 6561) by debbugs.gnu.org; 11 Jan 2012 03:14:51 +0000 Received: from localhost ([127.0.0.1]:53102 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkoeJ-0007Gq-18 for submit@debbugs.gnu.org; Tue, 10 Jan 2012 22:14:51 -0500 Received: from caiajhbdcbbj.dreamhost.com ([208.97.132.119]:43770 helo=homiemail-a61.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RkoeH-0007Gj-3A for 6561@debbugs.gnu.org; Tue, 10 Jan 2012 22:14:50 -0500 Received: from homiemail-a61.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTP id 05A12578077 for <6561@debbugs.gnu.org>; Tue, 10 Jan 2012 19:14:24 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=jidanni.org; h=from:to:subject :references:date:message-id:mime-version:content-type; q=dns; s= jidanni.org; b=THPnu5UuIWr7AH643neVFsDCfRyLp2ubhAktCSIUdfLwPlrxw zLPo/Ss9YujbgMmiU+mLyme8KIEB4MZnmYkzdogJD73C2iHqjj3mgVc5zbd1b67h yQARRy4Y2qKWyt4BjdA/ivNA8K1zRCWaf2fUbkNK+TopGRH2nxSRMrGZ8c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:references:date:message-id:mime-version:content-type; s=jidanni.org; bh=XOucBwobFybavPGUmQsP3hvwRCI=; b=aQaYwPr6O+rdO mazMrCRSDNWUubdXctjnRGzL2544dtYtoxjtKL7JT8IsoR55EVXQ8aTX03kf9P2N tYq8wvpxfEFK2GynytVsalu2ISgOpCU4ftkuTNd7N42P38FTmuwIVSKmxFZHjZTt YGmBtRRC/PyAWZZ+gDVhvO/oQOxVuU= Received: from jidanni.org (218-163-19-153.dynamic.hinet.net [218.163.19.153]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by homiemail-a61.g.dreamhost.com (Postfix) with ESMTPSA id A286F57806C for <6561@debbugs.gnu.org>; Tue, 10 Jan 2012 19:14:24 -0800 (PST) From: jidanni@jidanni.org To: 6561@debbugs.gnu.org Subject: Re: bug#6561: closed (Re: bug#6561: dired-do-shell-command " *" vs. "*", too close for comfort) References: Date: Wed, 11 Jan 2012 11:14:22 +0800 Message-ID: <87k44zrkvl.fsf@jidanni.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -1.9 (-) X-Debbugs-Envelope-To: 6561 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.9 (-) Well GbTS> `*' and `?' when not surrounded by whitespace have no special such design is too risky for the general public anyway. From unknown Mon Jun 16 23:40:13 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 08 Feb 2012 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator