brucify and add comment about -v being non-standard to manpage

Reviewed by:	obrien
This commit is contained in:
Michael Haro 1999-09-04 03:19:38 +00:00
parent acd0dd6ce1
commit 2f5f84c566
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50870
2 changed files with 10 additions and 6 deletions

View File

@ -43,9 +43,8 @@
.Nd make directories
.Sh SYNOPSIS
.Nm mkdir
.Op Fl p
.Op Fl pv
.Op Fl m Ar mode
.Op Fl v
.Ar directory_name ...
.Sh DESCRIPTION
.Nm Mkdir
@ -89,6 +88,10 @@ The
utility exits 0 on success, and >0 if an error occurs.
.Sh SEE ALSO
.Xr rmdir 1
.Sh COMPATIBILITY
The
.Fl v
option is non-standard and its use in scripts is not recommended.
.Sh STANDARDS
The
.Nm

View File

@ -74,15 +74,15 @@ main(argc, argv)
mode = NULL;
while ((ch = getopt(argc, argv, "m:pv")) != -1)
switch(ch) {
case 'm':
mode = optarg;
break;
case 'p':
pflag = 1;
break;
case 'v':
vflag = 1;
break;
case 'm':
mode = optarg;
break;
case '?':
default:
usage();
@ -203,6 +203,7 @@ build(path, omode)
void
usage()
{
(void)fprintf(stderr, "usage: mkdir [-p] [-m mode] [-v] directory ...\n");
(void)fprintf(stderr, "usage: mkdir [-pv] [-m mode] directory ...\n");
exit (EX_USAGE);
}