GNU bug report logs - #6561
dired-do-shell-command " *" vs. "*", too close for comfort

Previous Next

Package: emacs;

Reported by: jidanni <at> jidanni.org

Date: Sun, 4 Jul 2010 02:12:02 UTC

Severity: wishlist

Fixed in version 24.0.93

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6561 in the body.
You can then email your comments to 6561 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6561; Package emacs. (Sun, 04 Jul 2010 02:12:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 04 Jul 2010 02:12:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-gnu-emacs <at> gnu.org
Subject: dired-do-shell-command " *" vs. "*", too close for comfort
Date: Sun, 04 Jul 2010 10:11:04 +0800
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.




Reply sent to Glenn Morris <rgm <at> gnu.org>:
You have taken responsibility. (Wed, 11 Jan 2012 02:28:02 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Wed, 11 Jan 2012 02:28:02 GMT) Full text and rfc822 format available.

Message #10 received at 6561-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 6561-done <at> debbugs.gnu.org
Subject: Re: bug#6561: dired-do-shell-command " *" vs. "*",
	too close for comfort
Date: Tue, 10 Jan 2012 21:27:05 -0500
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6561; Package emacs. (Wed, 11 Jan 2012 02:35:02 GMT) Full text and rfc822 format available.

Message #13 received at 6561 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 6561 <at> debbugs.gnu.org
Subject: Re: bug#6561: dired-do-shell-command " *" vs. "*",
	too close for comfort
Date: Tue, 10 Jan 2012 21:34:22 -0500
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.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#6561; Package emacs. (Wed, 11 Jan 2012 03:15:02 GMT) Full text and rfc822 format available.

Message #16 received at 6561 <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: 6561 <at> debbugs.gnu.org
Subject: Re: bug#6561: closed (Re: bug#6561: dired-do-shell-command " *" vs.
	"*", too close for comfort)
Date: Wed, 11 Jan 2012 11:14:22 +0800
Well
GbTS>   `*' and `?' when not surrounded by whitespace have no special
such design is too risky for the general public anyway.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 08 Feb 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 131 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.