From: Jim Meyering Date: Sun, 28 Mar 1993 16:29:03 +0000 (+0000) Subject: (main): If -f is given, don't complain if no file args are given. X-Git-Tag: FILEUTILS-3_8_3b~91 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7735ccac5eb6addc960d4f0988cdd380c4188927;p=thirdparty%2Fcoreutils.git (main): If -f is given, don't complain if no file args are given. --- diff --git a/src/rm.c b/src/rm.c index 0d0ce7c4ca..7e711dd997 100644 --- a/src/rm.c +++ b/src/rm.c @@ -130,7 +130,12 @@ main (argc, argv) } if (optind == argc) + { + if (ignore_missing_files) + exit (0); + else usage (); + } stdin_tty = isatty (0);