GNU bug report logs -
#29465
25.3; Confusing message for dired-do-shell-command substitution
Previous Next
Reported by: Allen Li <vianchielfaura <at> gmail.com>
Date: Mon, 27 Nov 2017 07:18:02 UTC
Severity: minor
Found in version 25.3
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #17 received at 29465 <at> debbugs.gnu.org (full text, mbox):
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Allen Li <vianchielfaura <at> gmail.com>
>>
>> find ? -name '*.txt'
>>
>> but not for
>>
>> find * -name '*.txt'
>>
>> Thus, it isn't even useful for protecting against some hypothetical
>> unwanted behavior.
>
> Tino added this confirmation last July, so I will let him defend his
> change.
>
> If we want to remove this confirmation, now is the time, because it
> wasn't yet released with any Emacs version. Once this confirmation is
> out at large, it will be much harder to remove it, as that would be an
> incompatible change.
Thanks for your report Allen!
FWIW the confirmation was added by RMS in 2002
(eab9ed67eb50bab4fc736058a799508d544606a0).
See also commits:
commit e52c37fad057b29d68c51cf3a70b2e0d94f656cb
commit edb8d73e62552cf2f95cbf871050913862dc5f18
My commit "Ask confirmation for all suspicious wildcards"
(6e39940adba7b96dfe520caa52a1b92a1a84a84f)
extends that confirmation to cover Bug#27496.
Before 6e39940adb, not all `?' or `*' were checked for
being between white spaces:
! echo ./? RET ; This ask confirmation
! echo ./? ? RET ; This doesn't
After 6e39940adb, all occurrences of `?' or `*' are checked for
being between white spaces; the user is asked confirmation if
any of them are not surrounded by whites.
I made this change for consistency: I thought it has sense to
check all `?' `*' occurrences, not just one.
In fact, this change causes that you are prompted in your snippet:
! find * -name '*.txt' RET
;; After (before) 6e39940adb you are (not) prompted.
Compare with the following:
! find ? -name '*.txt' RET
;; After and before 6e39940adb you are prompted.
Your second patch disables the confirmation prompts that have
being around since 2002. Since the source of this bug report
seems to be 6e39940adb, I would rather revert just this commit.
This bug report was last modified 3 years and 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.