I am running zsh from Cygwin. One of my shell functions contains an operator
rm -f somedir/*
(I want to delete all non-hidden files in somedir, but not the directory itself). However, they always ask me:
zsh: sure you want to delete all the files in ... [yn]?
The wording of this post (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, a hint also occurs if I explicitly call rm as
$ command rm -f somedir/*
Is there something inside zsh that is trying to be too smart?
source share