is this known bug in 'mkdir -p'
807559Aug 10 2004 — edited Aug 11 2004The 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.
***