GNU bug report logs - #7775
rm -f emits no error message when deleting nonexistent file

Previous Next

Package: coreutils;

Reported by: Jeremy Hetzler <jeremyhetzler <at> gmail.com>

Date: Mon, 3 Jan 2011 15:55:01 UTC

Severity: normal

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jeremy Hetzler <jeremyhetzler <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: rm -f emits no error message when deleting nonexistent file
Date: Mon, 3 Jan 2011 10:12:26 -0500
[Message part 1 (text/plain, inline)]
rm normally produces an error when you delete a nonexistent file. However,
under -f, you get no error message. I would argue this is a bug.

-- Jeremy Hetzler

-------------------------------------

520 $ /bin/rm nonexistent
/bin/rm: cannot remove `nonexistent': No such file or directory

521 $ /bin/rm -f nonexistent

522 $ rm --version
rm (GNU coreutils) 8.5
Packaged by Cygwin (8.5-2)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html
>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Paul Rubin, David MacKenzie, Richard M. Stallman,
and Jim Meyering.
[Message part 2 (text/html, inline)]

This bug report was last modified 14 years and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.