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

(-)cp/cp.1 (-1 / +10 lines)
Lines 77-82 Link Here
77
.Pp
77
.Pp
78
The following options are available:
78
The following options are available:
79
.Bl -tag -width flag
79
.Bl -tag -width flag
80
.It Fl a
81
Same as specifying the
82
.Fl R
83
.Fl P
84
and
85
.Fl p
86
flags.
80
.It Fl H
87
.It Fl H
81
If the
88
If the
82
.Fl R
89
.Fl R
Lines 226-232 Link Here
226
.Pp
233
.Pp
227
The
234
The
228
.Fl v
235
.Fl v
229
option is non-standard and its use in scripts is not recommended.
236
and
237
.Fl a
238
options are non-standard and use in scripts is not recommended.
230
.Sh SEE ALSO
239
.Sh SEE ALSO
231
.Xr mv 1 ,
240
.Xr mv 1 ,
232
.Xr rcp 1 ,
241
.Xr rcp 1 ,
(-)cp/cp.c (-1 / +5 lines)
Lines 102-108 Link Here
102
	char *target;
102
	char *target;
103
103
104
	Hflag = Lflag = Pflag = 0;
104
	Hflag = Lflag = Pflag = 0;
105
	while ((ch = getopt(argc, argv, "HLPRfiprv")) != -1)
105
	while ((ch = getopt(argc, argv, "aHLPRfiprv")) != -1)
106
		switch (ch) {
106
		switch (ch) {
107
		case 'H':
107
		case 'H':
108
			Hflag = 1;
108
			Hflag = 1;
Lines 112-117 Link Here
112
			Lflag = 1;
112
			Lflag = 1;
113
			Hflag = Pflag = 0;
113
			Hflag = Pflag = 0;
114
			break;
114
			break;
115
		case 'a':
116
			Rflag = 1;
117
			pflag = 1;
118
			/* FALLTHROUGH */
115
		case 'P':
119
		case 'P':
116
			Pflag = 1;
120
			Pflag = 1;
117
			Hflag = Lflag = 0;
121
			Hflag = Lflag = 0;
(-)cp/utils.c (-2 / +2 lines)
Lines 312-318 Link Here
312
{
312
{
313
313
314
	(void)fprintf(stderr, "%s\n%s\n",
314
	(void)fprintf(stderr, "%s\n%s\n",
315
"usage: cp [-R [-H | -L | -P]] [-f | -i] [-pv] src target",
315
"usage: cp [-R [-H | -L | -P]] [-f | -i] [-apv] src target",
316
"       cp [-R [-H | -L | -P]] [-f | -i] [-pv] src1 ... srcN directory");
316
"       cp [-R [-H | -L | -P]] [-f | -i] [-apv] src1 ... srcN directory");
317
	exit(EX_USAGE);
317
	exit(EX_USAGE);
318
}
318
}

Return to bug 34744