Subject: bin/32589: install -d ignores existing non-directories
To: None <,>
From: None <>
List: netbsd-bugs
Date: 01/22/2006 03:30:00
>Number:         32589
>Category:       bin
>Synopsis:       install -d ignores existing non-directories
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Jan 22 03:30:00 +0000 2006
>Release:        NetBSD 3.99.11
System: NetBSD 3.99.11 NetBSD 3.99.11 (THINKPAD) #0: Wed Nov 16 18:29:15 CET 2005 i386
Architecture: i386
Machine: i386

When using -d install is supposed to create the arguments as
directories, recursively creating the parents. NetBSD's install ignores
any already existing non-directories, instead of rising an error.
The latter is the behaviour implemented by FreeBSD and DragonFly.
It is also inconsistent with mkdir.

cd /tmp; touch test; install -d test test2

Observe that test is left alone and test2 created as directory.
None yet.