HardenedBSD/bin/mkdir
Jordan K. Hubbard d653487a46 [ From Dave Tweten ]
POSIX.2 looks pretty unequivocal to me, and it agrees with you.

Under the explanation of the "-p" option, it says, "Each dir operand that
names an existing directory shall be ignored without error."  Under the
explanation of exit status zero, it says, "All the specified directories were
created successfully, or the-p option was specified and all the specified
directories now exist."

Seems to me POSIX requires exactly the behavior you want.

[ And I've made the change, which is also now compatible with 1.x - jkh ]

Reviewed by:	jkh
Submitted by:	jkh/tweten
1994-09-08 21:34:33 +00:00
..
Makefile BSD 4.4 Lite bin Sources 1994-05-26 06:18:55 +00:00
mkdir.1 BSD 4.4 Lite bin Sources 1994-05-26 06:18:55 +00:00
mkdir.c [ From Dave Tweten ] 1994-09-08 21:34:33 +00:00