-static const char *rm_usage = "rm [OPTION]... FILE...\n"
-#ifndef BB_FEATURE_TRIVIAL_HELP
- "\nRemove (unlink) the FILE(s). You may use '--' to\n"
- "indicate that all following arguments are non-options.\n\n"
- "Options:\n"
- "\t-f\t\tremove existing destinations, never prompt\n"
- "\t-r or -R\tremove the contents of directories recursively\n"
-#endif
- ;
-
-
-static int recursiveFlag = FALSE;
-static int forceFlag = FALSE;
-static const char *srcName;
-
-
-static int fileAction(const char *fileName, struct stat *statbuf, void* junk)
-{
- if (unlink(fileName) < 0) {
- perror(fileName);
- return (FALSE);
- }
- return (TRUE);
-}