Red Hat Bugzilla – Bug 83741
rm command from fileutils-4.1.9-11 when used with -i option behaves a rm -ri
Last modified: 2007-04-18 12:50:51 EDT
Description of problem:
rm removes directories and its contents interactively when given -i
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. mkdirhier foor/bar/foo/bar
2. rm -i foo
removes directories and its contents interactively.
should refuse to unlink directories. rmdir is their for that. Or should
take -r flag to behave this way.
coreutils has the behaviour you want.