bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#16862: Feature Request for rm


From: Marc Perkel
Subject: bug#16862: Feature Request for rm
Date: Sun, 23 Feb 2014 22:42:50 -0800
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0

Wow! I'm blind - thanks!

On 2/23/2014 10:28 PM, Bob Proulx wrote:
severity 16862 wishlist
close 16862
thanks

Hello Marc,

Marc Perkel wrote:
Minor feature request
Suggest -q (for quiet) for rm command. No error code if file doesn't exist.
rm -q file
rather tham
rm file 2> /dev/null
The 'rm' program already handles this feature using the -f option.  It
is a standard idiom.  Instead of -q you want -f.

   rm -f file

This is much better than 'rm file 2> /dev/null' because errors are
properly reported to the caller.

The documentation says:

   -f
   --force
      Ignore nonexistent files and missing operands, and never prompt
      the user.  Ignore any previous --interactive (-i) option.

Since this is a standard feature I am marking the ticket closed.
Please feel free to add further discussion into the bug log.

Bob







reply via email to

[Prev in Thread] Current Thread [Next in Thread]