On Wed, 2008-12-31 at 01:03 +0000, Smylers wrote:
> Gerry Lawrence writes:
>
> > It gets worse. In newer versions, rm does this behavior by default,
> > without being aliased to rm -i.
> >
> > In this case, you'll need to unset rmstar to get rm to not annoy you.
>
> rmstar appears to be a shell feature, not part of the rm command. In
> particular, tcsh appears to be the guilty party:
>
> http://manpages.ubuntu.com/manpages/intrepid/man1/tcsh.1.html
This has long been a feature of zsh, although with the setopt/unsetopt
command:
# setopt | grep rm
rmstarsilent on
rmstarwait off
#
Yes, that's right, in zsh it's a negative option, and rmstartwait goes
one even better than that:
RM_STAR_SILENT (-H) <K> <S>
Do not query the user before executing `rm *' or `rm path/*'.
RM_STAR_WAIT
If querying the user before executing `rm *' or `rm path/*', first
wait ten seconds and ignore anything typed in that time. This
avoids the problem of reflexively answering `yes' to the query
when one didn't really mean it. The wait and query can always be
avoided by expanding the `*' in ZLE (with tab).
Cheers,
Martin