1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] [Bug 8177] rm command can't delete file, unless using the full path for the rm binary "/bin/rm"
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BBug%208177%5D%20rm%20command%20can%27t%20delete%20file%2C%0A%20unless%20using%20the%20full%20path%20for%20the%20rm%20binary%20%22/bin/rm%22&In-Reply-To=%3C50AFFE7D.8030602%40laposte.net%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="020177.html">
<LINK REL="Next" HREF="020168.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] [Bug 8177] rm command can't delete file, unless using the full path for the rm binary "/bin/rm"</H1>
<B>andre999</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20%5BBug%208177%5D%20rm%20command%20can%27t%20delete%20file%2C%0A%20unless%20using%20the%20full%20path%20for%20the%20rm%20binary%20%22/bin/rm%22&In-Reply-To=%3C50AFFE7D.8030602%40laposte.net%3E"
TITLE="[Mageia-dev] [Bug 8177] rm command can't delete file, unless using the full path for the rm binary "/bin/rm"">andre999mga at laposte.net
</A><BR>
<I>Fri Nov 23 23:53:49 CET 2012</I>
<P><UL>
<LI>Previous message: <A HREF="020177.html">[Mageia-dev] [Bug 8177] rm command can't delete file, unless using the full path for the rm binary "/bin/rm"
</A></li>
<LI>Next message: <A HREF="020168.html">[Mageia-dev] [soft-commits] [6500] make clear those functions are not related to macros
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#20197">[ date ]</a>
<a href="thread.html#20197">[ thread ]</a>
<a href="subject.html#20197">[ subject ]</a>
<a href="author.html#20197">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>Colin Guthrie a écrit :
><i> 'Twas brillig, and Michael Wood at 22/11/12 14:45 did gyre and gimble:
</I>>><i>
</I>>><i> Or if you happy to run rm as it was written and risk deleting something
</I>>><i> you didn't want too, then comment out the alias (and any others that get
</I>>><i> on your nerves:) ) from /etc/profile.d/60alias.sh
</I>><i>
</I>><i> While it technically is a config file, it's also numeric which means
</I>><i> that one day, it *might* be renumbered for whatever need at the time.
</I>><i>
</I>><i> I therefore try to always avoid editing such files whenever possible.
</I>><i>
</I>><i> Instead, I'd personally recommend creating your own file:
</I>><i>
</I>><i> /etc/profile.d/999-fsck-the-defaults.sh
</I>><i>
</I>><i> and in it just put:
</I>><i> alias rm=rm
</I>><i>
</I>><i> or similar to "undo" the earlier changes.
</I>><i>
</I>><i> Sure there is a tiny amount more to do at init, but it's pretty minimal
</I>><i> and you likely won't notice.
</I>><i>
</I>><i> Col
</I>><i>
</I>
That's what I do too (creating a custom file) -- for various other
commands. That also ensures that it isn't overwritten by any updates.
For rm, I'd rather have confirmation.
(reminds me of the rm -f 127.0.0.1 joke)
--
André
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="020177.html">[Mageia-dev] [Bug 8177] rm command can't delete file, unless using the full path for the rm binary "/bin/rm"
</A></li>
<LI>Next message: <A HREF="020168.html">[Mageia-dev] [soft-commits] [6500] make clear those functions are not related to macros
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#20197">[ date ]</a>
<a href="thread.html#20197">[ thread ]</a>
<a href="subject.html#20197">[ subject ]</a>
<a href="author.html#20197">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|