Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

is this known bug in 'mkdir -p'

807559Aug 10 2004 — edited Aug 11 2004
The following seems to be buggy behaviour on the part of 'mkdir -p' (both Solaris 9 and
Solaris 8), here is how to reproduce the bug:
1. cd $HOME # or to any writable dir
2. rm -rf a b
3. mkdir a
4. ln -s a b
5. mkdir -p b
mkdir: "b": Exists but is not a directory
hmmm ?
6. test -d b && echo b is directory
b is directory
again:
mkdir -p b
mkdir: "b": Exists but is not a directory

In other unixes, this works as expected.
***
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2004
Added on Aug 10 2004
3 comments
170 views