View | Details | Raw Unified | Return to bug 188008
Collapse All | Expand All

(-)rm.1 (+11 lines)
Lines 68-73 Link Here
68
.Fl f
68
.Fl f
69
option overrides any previous
69
option overrides any previous
70
.Fl i
70
.Fl i
71
and
72
.Fl I
71
options.
73
options.
72
.It Fl i
74
.It Fl i
73
Request confirmation before attempting to remove each file, regardless of
75
Request confirmation before attempting to remove each file, regardless of
Lines 77-82 Link Here
77
.Fl i
79
.Fl i
78
option overrides any previous
80
option overrides any previous
79
.Fl f
81
.Fl f
82
and
83
.Fl I
80
options.
84
options.
81
.It Fl I
85
.It Fl I
82
Request confirmation once if more than three files are being removed or if a
86
Request confirmation once if more than three files are being removed or if a
Lines 84-89 Link Here
84
This is a far less intrusive option than
88
This is a far less intrusive option than
85
.Fl i
89
.Fl i
86
yet provides almost the same level of protection against mistakes.
90
yet provides almost the same level of protection against mistakes.
91
The
92
.Fl I
93
option overrides any previous
94
.Fl f
95
and
96
.Fl i
97
options.
87
.It Fl P
98
.It Fl P
88
Overwrite regular files before deleting them.
99
Overwrite regular files before deleting them.
89
Files are overwritten three times, first with the byte pattern 0xff,
100
Files are overwritten three times, first with the byte pattern 0xff,
(-)rm.c (-1 / +5 lines)
Lines 115-126 Link Here
115
		case 'f':
115
		case 'f':
116
			fflag = 1;
116
			fflag = 1;
117
			iflag = 0;
117
			iflag = 0;
118
			Iflag = 0;
118
			break;
119
			break;
119
		case 'i':
120
		case 'i':
120
			fflag = 0;
121
			fflag = 0;
121
			iflag = 1;
122
			iflag = 1;
123
			Iflag = 0;
122
			break;
124
			break;
123
		case 'I':
125
		case 'I':
126
			fflag = 0;
127
			iflag = 0;
124
			Iflag = 1;
128
			Iflag = 1;
125
			break;
129
			break;
126
		case 'P':
130
		case 'P':
Lines 629-635 Link Here
629
{
633
{
630
634
631
	(void)fprintf(stderr, "%s\n%s\n",
635
	(void)fprintf(stderr, "%s\n%s\n",
632
	    "usage: rm [-f | -i] [-dIPRrvWx] file ...",
636
	    "usage: rm [-f | -i | -I] [-dPRrvWx] file ...",
633
	    "       unlink file");
637
	    "       unlink file");
634
	exit(EX_USAGE);
638
	exit(EX_USAGE);
635
}
639
}

Return to bug 188008