Change to bash behaviour
Colin Watson
cjwatson at canonical.com
Sun Oct 24 01:26:54 UTC 2004
On Sat, Oct 23, 2004 at 09:37:05PM +0200, Magnus Runesson wrote:
> Put an alias for rm in your .bashrc in your home directory.
>
> alias rm='rm -i'
The main reason Debian and Ubuntu don't do this by default, by the way,
is that it trains bad habits: firstly, if a prompt always appears then
you tend to get overly used to it and answer it without thinking anyway
(the Windows "OK?" problem), and secondly, it carries the awful risk
that as soon as you use a different Unix system that doesn't have these
aliases you'll find yourself removing files by accident because you were
expecting to have the non-default-behaviour prompt as a safety net.
Certainly you can do whatever you like with your own shell configuration
files; I'm sure many people wouldn't like some of the stuff I have - but
I'd personally suggest using 'rm -i' explicitly when you want the
prompt.
Cheers,
--
Colin Watson [cjwatson at canonical.com]
More information about the ubuntu-users
mailing list