I'm running zsh from Cygwin. One of my shell functions contains a statement
rm -f somedir/*
(I want to remove all non-hidden files in somedir, but not the directory itself). However, I am always asked:
zsh: sure you want to delete all the files in ... [yn]?
The wording of this message (note the "zsh:" at the beginning) suggests that the question comes from zsh, not rm. However, rm is an external command:
$ type rm
rm is /usr/bin/rm
By the way, the prompt also occurs if I explicitly invoke rm as
$ command rm -f somedir/*
Is there something within zsh, which tries to be too clever?