rm doesn't ask for confirmation

Projet:Trisquel
Version:7.0
Composant:Programs
Catégorie:Demande d'amélioration
Priorité:normal
Attribué:Non assigné
Statut: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.

lun, 11/24/2014 - 17: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.

lun, 11/24/2014 - 18: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.

sam, 12/06/2014 - 19:26
Catégorie:Rapporter un bogue» Demande d'amélioration
Priorité:critical» normal
lun, 12/08/2014 - 01:32

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

mar, 12/09/2014 - 04:51

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

mer, 12/10/2014 - 16: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.

lun, 06/01/2015 - 11: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

ven, 06/12/2015 - 02:49
Statut:active» patch (ready)

Merge request sent here:

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

jeu, 06/18/2015 - 21:07
Statut:patch (ready)» fixed

Merged and built

jeu, 07/02/2015 - 21:10
Statut:fixed» closed

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