bug-coreutils
[Top][All Lists]
Advanced

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

Re: Please help


From: Eric Blake
Subject: Re: Please help
Date: Fri, 26 Feb 2010 06:33:51 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

According to Voelker, Bernhard on 2/26/2010 6:27 AM:
> 
> This would just be an extension and one could alias rm to use that option.

You can already alias rm to use 'rm -i' to ask always, or even the
less-invasive 'rm -I' to ask only when encountering multiple arguments or
starting recursion.  But some (including myself) will argue that relying
on aliases is already a weak point in your strategy.

Furthermore, GNU rm already refuses to operate on / unless you use
--no-preserve-root.  But that is different than the original problem
reported of using rm in $HOME.

But the point remains - such "helps" can only be enabled via an extension
(since they change the POSIX-specified behavior), and thus do no good if a
user does not request that extension.

-- 
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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