rm doesn't ask for confirmation

Project:Trisquel
Version:7.0
Component:Programs
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

In trisquel 6, if you used rm without arguments, it would ask you to confirm.
Trisquel 7 does not.

Add this to .bashrc:
alias rm='rm -i'

Then restart your shell/terminal.

This should be set to the default, on a base install.

Mon, 11/24/2014 - 16:47

No no no no no no no no no no please don't bring it back. Please please please please. I'm glad it doesn't ask. That. Was. So. Annoying.

Mon, 11/24/2014 - 17:48

I agree, this should not be the default behavior. Instead we should discourage people from running commands that they do not fully understand the implications of.

Sat, 12/06/2014 - 18:26
Category:bug report» feature request
Priority:critical» normal
Mon, 12/08/2014 - 00:32

It's gone? I still have that same annoying alias.

Tue, 12/09/2014 - 03:51

I think if you installed from a pre-release version, you might still have it.

Wed, 12/10/2014 - 15:13

Well, I didn't, so that doesn't explain it.

Maybe one of the packages I installed created the alias. I do recall the alias not being there when I first installed.

Mon, 06/01/2015 - 10:44

The package that creates the alias is trisquel-base-data in /etc/bash_completion.d/aliases .
The alias should probably be removed from there.

And this is still happening on Trisquel 7.
https://devel.trisquel.info/trisquel/trisquel-packages/raw/master/7.0/trisquel-base-data/data/etc/bash_completion.d/aliases

Fri, 06/12/2015 - 01:49
Status:active» patch (ready)

Merge request sent here:

https://devel.trisquel.info/trisquel/trisquel-packages/merge_requests/1

Thu, 06/18/2015 - 20:07
Status:patch (ready)» fixed

Merged and built

Thu, 07/02/2015 - 20:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.