Your message dated Mon, 11 Sep 2017 15:19:15 +0000
with message-id 
<1505143155.3891161.1102263072.1d722...@webmail.messagingengine.com>
has caused the   report #875460,
regarding zsh: RM_STAR warning counts files as though DOT_GLOB is set
to be marked as having been forwarded to the upstream software
author(s) zsh-work...@zsh.org

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
875460: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=875460
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Forwarding from Debian:

Daniel Shahaf wrote on Mon, 11 Sep 2017 15:07 +0000:
> $ zsh -f
> % cd $(mktemp -d)
> % touch ./foo ./.bar 
> % rm *
> zsh: sure you want to delete all 2 files in /tmp/tmp.65xnqgzMAY [yn]? y
> % 
> % ls -A
> .bar
> % echo $ZSH_PATCHLEVEL
> zsh-5.4.2-1-gab6ac7313

The problem is that it says "2 files" but only one file is deleted.

The impedance mismatch is that checkrmall() calls zreaddir(...,
unset(GLOBDOTS)), but the second actual argument to zreaddir() governs
whether the dot and dot-dot entries would be excluded.  Instead,
checkrmall() should pass true for the second argument of zreaddir(),
and dotfiles should be ignored by some other means when ignoredots is true.
(I've just added a docstring to zreaddir() to close the barn door.)

I don't understand the last branch of the if/else in that function: it seems to
prompt "... delete all the files ..." when count == 0?

Cheers,

Daniel

--- End Message ---

Reply via email to